Skip to content

Instantly share code, notes, and snippets.

Avatar

Jiayao Zhang zjiayao

View GitHub Profile
@zjiayao
zjiayao / download_from_shared_google_drive.py
Created Mar 11, 2018
Download file from shared Google Drive link.
View download_from_shared_google_drive.py
from __future__ import print_function
import os
import requests
URL = "https://docs.google.com/uc?export=download"
ID = "" # the file ID appeared in the shared link
DATAFILE = "" # the name of the file to be downloaded
if __name__ == '__main__':
@zjiayao
zjiayao / viterbi.py
Created Nov 26, 2017
Viterbi Algorithm for Decoding HMM
View viterbi.py
"""
An implementation of Viterbi Algorithm
for decoding Hideen Markov Models.
(C) Jiayao Zhang 2017
"""
from __future__ import (print_function, division)
import numpy as np