Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
from hmmlearn.hmm import GaussianHMM
class StockPredictor(object):
def __init__(self, company, n_latency_days=10, n_hidden_states=4):
self._init_logger() = company
self.n_latency_days = n_latency_days
self.hmm = GaussianHMM(n_components=n_hidden_states) = pd.read_csv(
def fit(self):'>>> Extracting Features')
feature_vector = StockPredictor._extract_features('Features extraction Completed <<<')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment