Question about a class member
Steven D'Aprano
steve at pearwood.info
Thu Jan 7 17:05:15 EST 2016
On Fri, 8 Jan 2016 04:23 am, Robert wrote:
> Hi,
>
> I am using a download package. When I read its code, see below please, I
> don't know what 'sample' is:
>
>
> ----------
> model = hmm.GaussianHMM(n_components=4, covariance_type="full")
When I try running that code, I get an error:
py> model = hmm.GaussianHMM(n_components=4, covariance_type="full")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
NameError: name 'hmm' is not defined
What's hmm? Where does it come from? Is it this?
https://hmmlearn.github.io/hmmlearn/generated/hmmlearn.hmm.GaussianHMM.html
It has a sample method here:
https://hmmlearn.github.io/hmmlearn/generated/hmmlearn.hmm.GaussianHMM.html#hmmlearn.hmm.GaussianHMM.sample
You should try googling for help before asking questions:
https://duckduckgo.com/html/?q=hmm.GaussianHMM
or use the search engine of your choice.
--
Steven
More information about the Python-list
mailing list