{"action":"created","issue":{"url":"https://api.github.com/repos/mattjj/pyslds/issues/23","repository_url":"https://api.github.com/repos/mattjj/pyslds","labels_url":"https://api.github.com/repos/mattjj/pyslds/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/mattjj/pyslds/issues/23/comments","events_url":"https://api.github.com/repos/mattjj/pyslds/issues/23/events","html_url":"https://github.com/mattjj/pyslds/issues/23","id":294830993,"number":23,"title":"Initialization error in simple_demo.py","user":{"login":"zqwei","id":13616597,"avatar_url":"https://avatars2.githubusercontent.com/u/13616597?v=4","gravatar_id":"","url":"https://api.github.com/users/zqwei","html_url":"https://github.com/zqwei","followers_url":"https://api.github.com/users/zqwei/followers","following_url":"https://api.github.com/users/zqwei/following{/other_user}","gists_url":"https://api.github.com/users/zqwei/gists{/gist_id}","starred_url":"https://api.github.com/users/zqwei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zqwei/subscriptions","organizations_url":"https://api.github.com/users/zqwei/orgs","repos_url":"https://api.github.com/users/zqwei/repos","events_url":"https://api.github.com/users/zqwei/events{/privacy}","received_events_url":"https://api.github.com/users/zqwei/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-06T16:46:14Z","updated_at":"2018-02-07T16:00:22Z","closed_at":null,"author_association":"NONE","body":"There is an error in the code, where the data is of shape (T-1) x m (m is the latent dimension) and x0 and Q0 should be add into the data.\r\n\r\nAssertion error is reported at **pylds/lds_messages_interface.py**\r\n\r\nThe detailed report is as follow:\r\n\r\n```\r\nInitializing with Gibbs\r\nTraceback (most recent call last):\r\n\r\nFile \"pyslds/examples/simple_demo.py\", line 85, in <module>\r\n    gibbs_lls = [initialize(test_model) for _ in progprint_xrange(N_gibbs_samples)]\r\n\r\nFile \"pyslds/examples/simple_demo.py\", line 82, in initialize\r\n    model.resample_model()\r\n\r\nFile \"python2.7/site-packages/pyhsmm/models.py\", line 442, in resample_model\r\n    self.resample_states(num_procs=num_procs)\r\n\r\nFile \"python2.7/site-packages/pyhsmm/models.py\", line 467, in resample_states\r\n    s.resample()\r\n\r\nFile \"pyslds/pyslds/states.py\", line 418, in resample\r\n    self.resample_gaussian_states()\r\n\r\nFile \"pyslds/pyslds/states.py\", line 429, in resample_gaussian_states\r\n    info_sample(*self.info_params)\r\n\r\nFile \"python2.7/site-packages/pylds/lds_messages_interface.py\", line 65, in wrapped\r\n    return func(*check(*args,**kwargs))\r\n\r\nFile \"python2.7/site-packages/pylds/lds_messages_interface.py\", line 95, in _info_argcheck\r\n    [J_pair_11, J_pair_21, J_pair_22, J_node])\r\n\r\nFile \"python2.7/site-packages/pylds/lds_messages_interface.py\", line 24, in _ensure_ndim\r\n    assert X.shape[0] == T\r\n\r\nAssertionError\r\n```"},"comment":{"url":"https://api.github.com/repos/mattjj/pyslds/issues/comments/363815940","html_url":"https://github.com/mattjj/pyslds/issues/23#issuecomment-363815940","issue_url":"https://api.github.com/repos/mattjj/pyslds/issues/23","id":363815940,"user":{"login":"slinderman","id":5632040,"avatar_url":"https://avatars0.githubusercontent.com/u/5632040?v=4","gravatar_id":"","url":"https://api.github.com/users/slinderman","html_url":"https://github.com/slinderman","followers_url":"https://api.github.com/users/slinderman/followers","following_url":"https://api.github.com/users/slinderman/following{/other_user}","gists_url":"https://api.github.com/users/slinderman/gists{/gist_id}","starred_url":"https://api.github.com/users/slinderman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/slinderman/subscriptions","organizations_url":"https://api.github.com/users/slinderman/orgs","repos_url":"https://api.github.com/users/slinderman/repos","events_url":"https://api.github.com/users/slinderman/events{/privacy}","received_events_url":"https://api.github.com/users/slinderman/received_events","type":"User","site_admin":false},"created_at":"2018-02-07T16:00:22Z","updated_at":"2018-02-07T16:00:22Z","author_association":"COLLABORATOR","body":"Can you please try installing pylds from source?  I.e. `git clone` the repository then, from the cloned directory, run `pip install -e .`?  I believe the version on pypi is a bit out of date."}}
{"actor":{"display_login":"slinderman"}}