http://keik-117.hatenablog.com/entry/2016/07/05/213903
Enter the code for this site from above and
X,Z=model.sample(10)
I ran .
>>>X
array([0.75706838, -0.1280334],
[ 10.3137587 , 10.59635189],
...
However, if you run it in your environment,
[[10.72456536 10.72456536]
[ 0.79450025 0.79450025]
...
As shown in , the two values are the same.
Obviously, I think the results of the site's execution are correct, but why are the two values the same?
The python version is 3.6.5, and the hmmlearn version is 0.2.0.
If you know the cause, please reply.
hmmlearn
does not reflect recent updates to PyPI
.
I think you should use the latest GitHub one.
Basically, you cool down with git
and install with pip
.hmmlearn
has setup.py
, so you can install it by specifying a folder with pip
.
git clone https://github.com/hmmlearn/hmmlearn
pip3install./hnmlearn
© 2024 OneMinuteCode. All rights reserved.