{"action":"opened","issue":{"url":"https://api.github.com/repos/scikit-learn-contrib/forest-confidence-interval/issues/54","repository_url":"https://api.github.com/repos/scikit-learn-contrib/forest-confidence-interval","labels_url":"https://api.github.com/repos/scikit-learn-contrib/forest-confidence-interval/issues/54/labels{/name}","comments_url":"https://api.github.com/repos/scikit-learn-contrib/forest-confidence-interval/issues/54/comments","events_url":"https://api.github.com/repos/scikit-learn-contrib/forest-confidence-interval/issues/54/events","html_url":"https://github.com/scikit-learn-contrib/forest-confidence-interval/issues/54","id":249101255,"number":54,"title":"ValueError with random_forest_error() on multi-dimensional output","user":{"login":"mattrossman","id":22670878,"avatar_url":"https://avatars2.githubusercontent.com/u/22670878?v=4","gravatar_id":"","url":"https://api.github.com/users/mattrossman","html_url":"https://github.com/mattrossman","followers_url":"https://api.github.com/users/mattrossman/followers","following_url":"https://api.github.com/users/mattrossman/following{/other_user}","gists_url":"https://api.github.com/users/mattrossman/gists{/gist_id}","starred_url":"https://api.github.com/users/mattrossman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattrossman/subscriptions","organizations_url":"https://api.github.com/users/mattrossman/orgs","repos_url":"https://api.github.com/users/mattrossman/repos","events_url":"https://api.github.com/users/mattrossman/events{/privacy}","received_events_url":"https://api.github.com/users/mattrossman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-08-09T17:17:00Z","updated_at":"2017-08-09T17:17:00Z","closed_at":null,"body":"I'm getting a  `ValueError` when using a random forest estimator trained on multi-dimensional output:\r\n```\r\nfci.random_forest_error(est, X_train, X_test)\r\nTraceback (most recent call last):\r\n\r\n  File \"<ipython-input-46-91c6f1ac565a>\", line 1, in <module>\r\n    fci.random_forest_error(est, X_train, X_test)\r\n\r\n  File \"/home/matt/anaconda3/lib/python3.6/site-packages/forestci/forestci.py\", line 163, in random_forest_error\r\n    memory_constrained, memory_limit)\r\n\r\n  File \"/home/matt/anaconda3/lib/python3.6/site-packages/forestci/forestci.py\", line 64, in _core_computation\r\n    return np.sum((np.dot(inbag-1,pred_centered.T)/n_trees)**2,0)\r\n\r\nValueError: shapes (135,10) and (10,34,96) not aligned: 10 (dim 1) != 34 (dim 1)\r\n```\r\n\r\nFor reference,\r\n```\r\nX_train.shape\r\n>>> (135, 1252)\r\n\r\ny_test.shape\r\n>>> (34, 96)\r\n```\r\nI would expect the returned variance array to be of shape (34,96).\r\n\r\nI am on version 0.2 of `forestci`."}}
{"actor":{"display_login":"mattrossman"}}