Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

generate_obj call fails without attribute 'gaussian_states' #28

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ecashin
Copy link

@ecashin ecashin commented Jun 28, 2018

Does this fix look reasonable?

Here is the example script error before the changes in this pull request:

ecashin@9a2fcfbcf8d3:/mnt/host$ python slds_example_figure.py
Traceback (most recent call last):
  File "slds_example_figure.py", line 240, in <module>
    z,x,y,slds = sample_slds_model()
  File "slds_example_figure.py", line 105, in sample_slds_model
    y = statesobj.data = statesobj.generate_obs()
  File "/usr/local/lib/python3.6/site-packages/pyslds/states.py", line 77, in generate_obs
    dss, gss = self.stateseq, self.gaussian_states
AttributeError: 'HMMSLDSStatesEigen' object has no attribute 'gaussian_states'
ecashin@9a2fcfbcf8d3:/mnt/host$ 

9a2fcfbcf8d3:/mnt/host$ python slds_example_figure.py
Traceback (most recent call last):
  File "slds_example_figure.py", line 240, in <module>
    z,x,y,slds = sample_slds_model()
  File "slds_example_figure.py", line 105, in sample_slds_model
    y = statesobj.data = statesobj.generate_obs()
  File "/usr/local/lib/python3.6/site-packages/pyslds/states.py", line 77, in generate_obs
    dss, gss = self.stateseq, self.gaussian_states
AttributeError: 'HMMSLDSStatesEigen' object has no attribute 'gaussian_states'
9a2fcfbcf8d3:/mnt/host$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant