{"action":"created","issue":{"url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/5802","labels_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/5802/labels{/name}","comments_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/5802/comments","events_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/5802/events","html_url":"https://github.com/scikit-learn/scikit-learn/pull/5802","id":116586502,"number":5802,"title":"[MRG+1] Voting Classifier: predictions are float but np.bincount can only be used on integers","user":{"login":"alvarouc","id":7969170,"avatar_url":"https://avatars.githubusercontent.com/u/7969170?v=3","gravatar_id":"","url":"https://api.github.com/users/alvarouc","html_url":"https://github.com/alvarouc","followers_url":"https://api.github.com/users/alvarouc/followers","following_url":"https://api.github.com/users/alvarouc/following{/other_user}","gists_url":"https://api.github.com/users/alvarouc/gists{/gist_id}","starred_url":"https://api.github.com/users/alvarouc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alvarouc/subscriptions","organizations_url":"https://api.github.com/users/alvarouc/orgs","repos_url":"https://api.github.com/users/alvarouc/repos","events_url":"https://api.github.com/users/alvarouc/events{/privacy}","received_events_url":"https://api.github.com/users/alvarouc/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-11-12T16:32:00Z","updated_at":"2016-01-24T18:49:46Z","closed_at":"2015-11-15T14:26:18Z","pull_request":{"url":"https://api.github.com/repos/scikit-learn/scikit-learn/pulls/5802","html_url":"https://github.com/scikit-learn/scikit-learn/pull/5802","diff_url":"https://github.com/scikit-learn/scikit-learn/pull/5802.diff","patch_url":"https://github.com/scikit-learn/scikit-learn/pull/5802.patch"},"body":"This fix downcasts manually the array of predictions to integers so that np.bincount does not trigger an error\r\n"},"comment":{"url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/comments/174329161","html_url":"https://github.com/scikit-learn/scikit-learn/pull/5802#issuecomment-174329161","issue_url":"https://api.github.com/repos/scikit-learn/scikit-learn/issues/5802","id":174329161,"user":{"login":"rasbt","id":5618407,"avatar_url":"https://avatars.githubusercontent.com/u/5618407?v=3","gravatar_id":"","url":"https://api.github.com/users/rasbt","html_url":"https://github.com/rasbt","followers_url":"https://api.github.com/users/rasbt/followers","following_url":"https://api.github.com/users/rasbt/following{/other_user}","gists_url":"https://api.github.com/users/rasbt/gists{/gist_id}","starred_url":"https://api.github.com/users/rasbt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rasbt/subscriptions","organizations_url":"https://api.github.com/users/rasbt/orgs","repos_url":"https://api.github.com/users/rasbt/repos","events_url":"https://api.github.com/users/rasbt/events{/privacy}","received_events_url":"https://api.github.com/users/rasbt/received_events","type":"User","site_admin":false},"created_at":"2016-01-24T18:49:46Z","updated_at":"2016-01-24T18:49:46Z","body":"@Sandy4321 \r\n\r\n> do you have full code example how it works\r\n\r\nWhat do you mean, exactly? A code example for raising the exception?"}}