Skip to content

Instantly share code, notes, and snippets.

View zjiayao's full-sized avatar

Jiayao Zhang zjiayao

View GitHub Profile
@zjiayao
zjiayao / viterbi.py
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
@zjiayao
zjiayao / download_from_shared_google_drive.py
Created March 11, 2018 14:39
Download file from shared Google Drive link.
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__':