Skip to content

Instantly share code, notes, and snippets.


Jiayao Zhang zjiayao

View GitHub Profile
zjiayao /
Created March 11, 2018 14:39
Download file from shared Google Drive link.
from __future__ import print_function
import os
import requests
URL = ""
ID = "" # the file ID appeared in the shared link
DATAFILE = "" # the name of the file to be downloaded
if __name__ == '__main__':
zjiayao /
Created November 26, 2017 16:10
Viterbi Algorithm for Decoding HMM
An implementation of Viterbi Algorithm
for decoding Hideen Markov Models.
(C) Jiayao Zhang 2017
from __future__ import (print_function, division)
import numpy as np