{"action":"created","issue":{"url":"https://api.github.com/repos/nilmtk/nilmtk/issues/352","labels_url":"https://api.github.com/repos/nilmtk/nilmtk/issues/352/labels{/name}","comments_url":"https://api.github.com/repos/nilmtk/nilmtk/issues/352/comments","events_url":"https://api.github.com/repos/nilmtk/nilmtk/issues/352/events","html_url":"https://github.com/nilmtk/nilmtk/issues/352","id":58748966,"number":352,"title":"Issue on applying CO and FHMM method on AMPDs dataset","user":{"login":"GautierAppert","id":10998195,"avatar_url":"https://avatars.githubusercontent.com/u/10998195?v=3","gravatar_id":"","url":"https://api.github.com/users/GautierAppert","html_url":"https://github.com/GautierAppert","followers_url":"https://api.github.com/users/GautierAppert/followers","following_url":"https://api.github.com/users/GautierAppert/following{/other_user}","gists_url":"https://api.github.com/users/GautierAppert/gists{/gist_id}","starred_url":"https://api.github.com/users/GautierAppert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GautierAppert/subscriptions","organizations_url":"https://api.github.com/users/GautierAppert/orgs","repos_url":"https://api.github.com/users/GautierAppert/repos","events_url":"https://api.github.com/users/GautierAppert/events{/privacy}","received_events_url":"https://api.github.com/users/GautierAppert/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-02-24T14:52:42Z","updated_at":"2015-02-26T12:45:10Z","closed_at":null,"body":"Hi everbody :) hope you are fine :)\r\nWe have a little issue on applying the nilmtk package on the AMPDs dataset.\r\nWe convert the dataset in h5 format and we import the data with the DataSet() function, then we select one day of consumption (using the we.set_window() function). Then we use the fhmm_exact.FHMM() function but we have an error message. We applied this strategy on the redd dataset and it worked but here with the AMPDs dataset it implies a bug that we don't manage to solve.\r\nIf anybody has an idea it will be cool for us :+1: \r\nHave a great day :+1: :+1: \r\n\r\nGautier and Simon\r\n\r\nPS :  the error message : \r\n![fhmm_faile](https://cloud.githubusercontent.com/assets/10998195/6351451/0f67a0b4-bc3c-11e4-974e-f32328635129.png)\r\n"},"comment":{"url":"https://api.github.com/repos/nilmtk/nilmtk/issues/comments/76171991","html_url":"https://github.com/nilmtk/nilmtk/issues/352#issuecomment-76171991","issue_url":"https://api.github.com/repos/nilmtk/nilmtk/issues/352","id":76171991,"user":{"login":"GautierAppert","id":10998195,"avatar_url":"https://avatars.githubusercontent.com/u/10998195?v=3","gravatar_id":"","url":"https://api.github.com/users/GautierAppert","html_url":"https://github.com/GautierAppert","followers_url":"https://api.github.com/users/GautierAppert/followers","following_url":"https://api.github.com/users/GautierAppert/following{/other_user}","gists_url":"https://api.github.com/users/GautierAppert/gists{/gist_id}","starred_url":"https://api.github.com/users/GautierAppert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GautierAppert/subscriptions","organizations_url":"https://api.github.com/users/GautierAppert/orgs","repos_url":"https://api.github.com/users/GautierAppert/repos","events_url":"https://api.github.com/users/GautierAppert/events{/privacy}","received_events_url":"https://api.github.com/users/GautierAppert/received_events","type":"User","site_admin":false},"created_at":"2015-02-26T12:45:10Z","updated_at":"2015-02-26T12:45:10Z","body":"And the Erro Message : \r\n\r\n---------------------------------------------------------------------------\r\nIndexError                                Traceback (most recent call last)\r\n<ipython-input-25-c972abce3ee5> in <module>()\r\n      1 # Train\r\n      2 fhmm = fhmm_exact.FHMM()\r\n----> 3 fhmm.train(elec)\r\n\r\n/home/gautier/nilmtk/nilmtk/disaggregate/fhmm_exact.pyc in train(self, metergroup)\r\n    240             self.meters.append(meter)\r\n    241 \r\n--> 242         learnt_model_combined = create_combined_hmm(new_learnt_models)\r\n    243         self.individual = new_learnt_models\r\n    244         self.model = learnt_model_combined\r\n\r\n/home/gautier/nilmtk/nilmtk/disaggregate/fhmm_exact.pyc in create_combined_hmm(model)\r\n    129                   for appliance in model]\r\n    130 \r\n--> 131     pi_combined = compute_pi_fhmm(list_pi)\r\n    132     A_combined = compute_A_fhmm(list_A)\r\n    133     [mean_combined, cov_combined] = compute_means_fhmm(list_means)\r\n\r\n/home/gautier/nilmtk/nilmtk/disaggregate/fhmm_exact.pyc in compute_pi_fhmm(list_pi)\r\n    116     result : Combined Pi for the FHMM\r\n    117     \"\"\"\r\n--> 118     result = list_pi[0]\r\n    119     for i in range(len(list_pi) - 1):\r\n    120         result = np.kron(result, list_pi[i + 1])\r\n\r\nIndexError: list index out of range"}}