{"action":"created","issue":{"url":"https://api.github.com/repos/nilmtk/nilmtk/issues/426","labels_url":"https://api.github.com/repos/nilmtk/nilmtk/issues/426/labels{/name}","comments_url":"https://api.github.com/repos/nilmtk/nilmtk/issues/426/comments","events_url":"https://api.github.com/repos/nilmtk/nilmtk/issues/426/events","html_url":"https://github.com/nilmtk/nilmtk/issues/426","id":102955587,"number":426,"title":"NILM FHMM training error","user":{"login":"neekeeta","id":13886041,"avatar_url":"https://avatars.githubusercontent.com/u/13886041?v=3","gravatar_id":"","url":"https://api.github.com/users/neekeeta","html_url":"https://github.com/neekeeta","followers_url":"https://api.github.com/users/neekeeta/followers","following_url":"https://api.github.com/users/neekeeta/following{/other_user}","gists_url":"https://api.github.com/users/neekeeta/gists{/gist_id}","starred_url":"https://api.github.com/users/neekeeta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neekeeta/subscriptions","organizations_url":"https://api.github.com/users/neekeeta/orgs","repos_url":"https://api.github.com/users/neekeeta/repos","events_url":"https://api.github.com/users/neekeeta/events{/privacy}","received_events_url":"https://api.github.com/users/neekeeta/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-08-25T05:54:06Z","updated_at":"2015-08-25T09:14:53Z","closed_at":null,"body":"I tried to implement the code given on https://github.com/nilmtk/nilmtk/blob/master/docs/manual/user_guide/disaggregation_and_metrics.ipynb\r\n\r\nand when I reached \r\n\r\n```python\r\nfrom nilmtk.disaggregate import fhmm_exact\r\nfhmm = fhmm_exact.FHMM()\r\nfhmm.train(top_5_train_elec, sample_period=60)\r\n```\r\n\r\nI got error when code reached  `fhmm.train(top_5_train_elec, sample_period=60)` line\r\n\r\nThe error was as follows:\r\n\r\n```\r\nTraining model for submeter 'ElecMeter(instance=5, building=1, dataset='REDD', \r\n  appliances=[Appliance(type='fridge', instance=1)])'\r\n\r\nTraceback (most recent call last):\r\n\r\n  File \"<ipython-input-32-8af3dc2b6748>\", line 1, in <module>\r\n    fhmm.train(top_5_train_elec, sample_period=60)\r\n\r\n  File \"c:\\users\\nikita patel\\anaconda\\nilmtk\\nilmtk\\disaggregate\\fhmm_exact.py\", \r\n  line 213, in train learnt_model[meter].fit([X])\r\n\r\n  File \"build\\bdist.win-amd64\\egg\\hmmlearn\\base.py\", line 400, in fit\r\n    X = check_array(X)\r\n\r\n  File \"C:\\Users\\Nikita Patel\\Anaconda\\lib\\site-packages\\sklearn\\utils\\validation.py\", \r\n  line 350, in check_array array.ndim)\r\n\r\nValueError: Found array with dim 3. Expected <= 2\r\n```"},"comment":{"url":"https://api.github.com/repos/nilmtk/nilmtk/issues/comments/134536141","html_url":"https://github.com/nilmtk/nilmtk/issues/426#issuecomment-134536141","issue_url":"https://api.github.com/repos/nilmtk/nilmtk/issues/426","id":134536141,"user":{"login":"neekeeta","id":13886041,"avatar_url":"https://avatars.githubusercontent.com/u/13886041?v=3","gravatar_id":"","url":"https://api.github.com/users/neekeeta","html_url":"https://github.com/neekeeta","followers_url":"https://api.github.com/users/neekeeta/followers","following_url":"https://api.github.com/users/neekeeta/following{/other_user}","gists_url":"https://api.github.com/users/neekeeta/gists{/gist_id}","starred_url":"https://api.github.com/users/neekeeta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neekeeta/subscriptions","organizations_url":"https://api.github.com/users/neekeeta/orgs","repos_url":"https://api.github.com/users/neekeeta/repos","events_url":"https://api.github.com/users/neekeeta/events{/privacy}","received_events_url":"https://api.github.com/users/neekeeta/received_events","type":"User","site_admin":false},"created_at":"2015-08-25T09:14:53Z","updated_at":"2015-08-25T09:14:53Z","body":"This is the output that I got after running the instruction you suggested.\n\n\nINSTALLED VERSIONS\n------------------\ncommit: None\npython: 2.7.10.final.0\npython-bits: 64\nOS: Windows\nOS-release: 8\nmachine: AMD64\nprocessor: Intel64 Family 6 Model 69 Stepping 1, GenuineIntel\nbyteorder: little\nLC_ALL: None\nLANG: en_IN\n\npandas: 0.16.2\nnose: 1.3.7\nCython: 0.22.1\nnumpy: 1.9.2\nscipy: 0.16.0\nstatsmodels: 0.6.1\nIPython: 3.2.0\nsphinx: 1.3.1\npatsy: 0.3.0\ndateutil: 2.4.1\npytz: 2015.4\nbottleneck: 1.0.0\ntables: 3.2.0\nnumexpr: 2.4.3\nmatplotlib: 1.4.3\nopenpyxl: 1.8.5\nxlrd: 0.9.3\nxlwt: 1.0.0\nxlsxwriter: 0.7.3\nlxml: 3.4.4\nbs4: 4.3.2\nhtml5lib: None\nhttplib2: None\napiclient: None\nsqlalchemy: 1.0.5\npymysql: None\npsycopg2: 2.6.1 (dt dec pq3 ext lo64)\nNone\n\nDate: 2015-08-25 14:42:32.344000\nPlatform: Windows-8-6.2.9200\nSystem version: 2.7\nnilmtk version: 0.2.0.dev-\nnilm_metadata version: 0.2.0.dev-\nnumpy version: 1.9.2\nmatplotlib version: 1.4.3\npandas version: 0.16.2\nsklearn version: 0.16.1\n\nThanks & Regards\nNikita Patel\nPhD Student\nDepartment of Electrical Engineering\nIndian Institute of Technology Gandhinagar\n\nOn Tue, Aug 25, 2015 at 2:43 PM, Nikita Patel <nikita.patel@iitgn.ac.in>\nwrote:\n\n> I was running from this link\n>\n>\n> https://github.com/nilmtk/nilmtk/blob/master/docs/manual/user_guide/disaggregation_and_metrics.ipynb\n>\n> Thanks & Regards\n> Nikita Patel\n> PhD Student\n> Department of Electrical Engineering\n> Indian Institute of Technology Gandhinagar\n>\n> On Tue, Aug 25, 2015 at 2:36 PM, Jack Kelly <notifications@github.com>\n> wrote:\n>\n>> And are you running the latest NILMTK code?\n>>\n>> —\n>> Reply to this email directly or view it on GitHub\n>> <https://github.com/nilmtk/nilmtk/issues/426#issuecomment-134534377>.\n>>\n>\n>\n"}}