Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #101348
| From | John Gordon <gordon@panix.com> |
|---|---|
| Newsgroups | comp.lang.python |
| Subject | Re: Question about a class member |
| Date | 2016-01-07 18:37 +0000 |
| Organization | PANIX Public Access Internet and UNIX, NYC |
| Message-ID | <n6mb9p$93n$1@reader1.panix.com> (permalink) |
| References | <a199a9b7-784e-4e12-8030-4e3fffd636a7@googlegroups.com> |
In <a199a9b7-784e-4e12-8030-4e3fffd636a7@googlegroups.com> Robert <rxjwg98@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
gordon@panix.com B is for Basil, assaulted by bears
-- Edward Gorey, "The Gashlycrumb Tinies"
Back to comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Question about a class member Robert <rxjwg98@gmail.com> - 2016-01-07 09:23 -0800
Re: Question about a class member Robert <rxjwg98@gmail.com> - 2016-01-07 09:39 -0800
Re: Question about a class member John Gordon <gordon@panix.com> - 2016-01-07 18:37 +0000
Re: Question about a class member Ian Kelly <ian.g.kelly@gmail.com> - 2016-01-07 11:38 -0700
Re: Question about a class member Steven D'Aprano <steve@pearwood.info> - 2016-01-08 09:05 +1100
Re: Question about a class member Robert <rxjwg98@gmail.com> - 2016-01-07 15:02 -0800
csiph-web