Hi there,

This issue is a known one - it's being discussed here:
https://github.com/scikit-learn/scikit-learn/issues/871

I'll let you know what happens regarding this - so don't worry, I don't
think you're missing the point with your code :)

Thanks for the feedback

regards,
J

2012/10/8 didier vila <[email protected]>

> Hi all,
>
> By adavance, i am sorry for my naive question.
>
> I tried to apply the MultinomialHMM for a time serie.
>
> I would like to know how I should load the time series in the objet.
>
> from sklearn.hmm import MultinomialHMM
> a=MultinomialHMM(n_components=2)
> x=[0, 0, 0, 4, 5, 6, 6, 6, 0, 0, 0, 0, 9, 10, 12, 45]
> a.fit(x)
>
> Traceback (most recent call last):
>   File "<pyshell#41>", line 1, in <module>
>     a.fit(x)
>   File "C:\Python27\lib\site-packages\sklearn\hmm.py", line 436, in fit
>     self._init(obs, self.init_params)
>   File "C:\Python27\lib\site-packages\sklearn\hmm.py", line 982, in _init
>     self.n_symbols), 1)
> AttributeError: 'MultinomialHMM' object has no attribute 'n_symbols'
>
> Do i miss a point some where ?
>
> Thanks for your help.
>
> Regards.
>
> DV
>
>
> ------------------------------------------------------------------------------
> Don't let slow site performance ruin your business. Deploy New Relic APM
> Deploy New Relic app performance management and know exactly
> what is happening inside your Ruby, Python, PHP, Java, and .NET app
> Try New Relic at no cost today and get our sweet Data Nerd shirt too!
> http://p.sf.net/sfu/newrelic-dev2dev
> _______________________________________________
> Scikit-learn-general mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/scikit-learn-general
>
>
------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
Scikit-learn-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/scikit-learn-general

Reply via email to