eonu / sequentia

Scikit-Learn compatible HMM and DTW based sequence machine learning algorithms in Python.

Home Page:https://pypi.org/project/sequentia/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Normalize posteriors returned by HMMClassifier

eonu opened this issue · comments

Currently HMMClassifier returns unnormalized posteriors for each class when return_scores=True in predict().

It isn't much work to normalize these posteriors by simply dividing by the sum of all class posteriors, and having a true class distribution as an output is useful.

This cannot be done easily due to how small the log posteriors are.