In <a199a9b7-784e-4e12-8030-4e3fffd63...@googlegroups.com> Robert 
<rxjw...@gmail.com> writes:

> 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")

> model.startprob_ = startprob
> model.transmat_ = transmat
> model.means_ = means
> model.covars_ = covars

> # Generate samples
> X, Z = model.sample(50)
> -------------

sample() is a method in the GaussianHMM class.  (In this case, it's
a method in the _BaseHMM class, from which GaussianHMM inherits.)

-- 
John Gordon                   A is for Amy, who fell down the stairs
gor...@panix.com              B is for Basil, assaulted by bears
                                -- Edward Gorey, "The Gashlycrumb Tinies"

-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to