{"action":"created","issue":{"url":"https://api.github.com/repos/luispedro/BuildingMachineLearningSystemsWithPython/issues/11","repository_url":"https://api.github.com/repos/luispedro/BuildingMachineLearningSystemsWithPython","labels_url":"https://api.github.com/repos/luispedro/BuildingMachineLearningSystemsWithPython/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/luispedro/BuildingMachineLearningSystemsWithPython/issues/11/comments","events_url":"https://api.github.com/repos/luispedro/BuildingMachineLearningSystemsWithPython/issues/11/events","html_url":"https://github.com/luispedro/BuildingMachineLearningSystemsWithPython/pull/11","id":114536224,"number":11,"title":"Change parameter order in figure4_5_no_sklearn.py","user":{"login":"tomahawk28","id":2532687,"avatar_url":"https://avatars.githubusercontent.com/u/2532687?v=3","gravatar_id":"","url":"https://api.github.com/users/tomahawk28","html_url":"https://github.com/tomahawk28","followers_url":"https://api.github.com/users/tomahawk28/followers","following_url":"https://api.github.com/users/tomahawk28/following{/other_user}","gists_url":"https://api.github.com/users/tomahawk28/gists{/gist_id}","starred_url":"https://api.github.com/users/tomahawk28/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomahawk28/subscriptions","organizations_url":"https://api.github.com/users/tomahawk28/orgs","repos_url":"https://api.github.com/users/tomahawk28/repos","events_url":"https://api.github.com/users/tomahawk28/events{/privacy}","received_events_url":"https://api.github.com/users/tomahawk28/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-02T06:44:39Z","updated_at":"2016-03-08T14:03:47Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/luispedro/BuildingMachineLearningSystemsWithPython/pulls/11","html_url":"https://github.com/luispedro/BuildingMachineLearningSystemsWithPython/pull/11","diff_url":"https://github.com/luispedro/BuildingMachineLearningSystemsWithPython/pull/11.diff","patch_url":"https://github.com/luispedro/BuildingMachineLearningSystemsWithPython/pull/11.patch"},"body":"In `figure4_5_no_sklearn.py`, we need to change the order of parameter for fixing following error.\r\n```\r\nBoks-MacBook-Pro:ch02 inmobi$ python figure4_5_no_sklearn.py\r\nTraceback (most recent call last):\r\n  File \"figure4_5_no_sklearn.py\", line 73, in <module>\r\n    fig,ax = plot_decision(features, labels)\r\n  File \"figure4_5_no_sklearn.py\", line 48, in plot_decision\r\n    np.vstack([X.ravel(), Y.ravel()]).T, model).reshape(X.shape)\r\n\r\n\r\n  File \"/Users/inmobi/project/BuildingMachineLearningSystemsWithPython/ch02/knn.py\", line 31, in predict\r\n    k, train_feats, labels = model\r\nValueError: too many values to unpack\r\n```"},"comment":{"url":"https://api.github.com/repos/luispedro/BuildingMachineLearningSystemsWithPython/issues/comments/193795679","html_url":"https://github.com/luispedro/BuildingMachineLearningSystemsWithPython/pull/11#issuecomment-193795679","issue_url":"https://api.github.com/repos/luispedro/BuildingMachineLearningSystemsWithPython/issues/11","id":193795679,"user":{"login":"luispedro","id":79334,"avatar_url":"https://avatars.githubusercontent.com/u/79334?v=3","gravatar_id":"","url":"https://api.github.com/users/luispedro","html_url":"https://github.com/luispedro","followers_url":"https://api.github.com/users/luispedro/followers","following_url":"https://api.github.com/users/luispedro/following{/other_user}","gists_url":"https://api.github.com/users/luispedro/gists{/gist_id}","starred_url":"https://api.github.com/users/luispedro/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luispedro/subscriptions","organizations_url":"https://api.github.com/users/luispedro/orgs","repos_url":"https://api.github.com/users/luispedro/repos","events_url":"https://api.github.com/users/luispedro/events{/privacy}","received_events_url":"https://api.github.com/users/luispedro/received_events","type":"User","site_admin":false},"created_at":"2016-03-08T14:03:47Z","updated_at":"2016-03-08T14:03:47Z","body":"It seems that 602c5ed6d74ddd530a2b7ef4a8a58ba4c952b5b0 is the fix, so I will cherry pick that one (you will get the author credit, because git is pretty good about it :)"}}