{"action":"created","issue":{"url":"https://api.github.com/repos/DistrictDataLabs/yellowbrick/issues/288","repository_url":"https://api.github.com/repos/DistrictDataLabs/yellowbrick","labels_url":"https://api.github.com/repos/DistrictDataLabs/yellowbrick/issues/288/labels{/name}","comments_url":"https://api.github.com/repos/DistrictDataLabs/yellowbrick/issues/288/comments","events_url":"https://api.github.com/repos/DistrictDataLabs/yellowbrick/issues/288/events","html_url":"https://github.com/DistrictDataLabs/yellowbrick/issues/288","id":261874276,"node_id":"MDU6SXNzdWUyNjE4NzQyNzY=","number":288,"title":"ROC/AUC for multiclass not working?","user":{"login":"DGaffney","id":14244,"node_id":"MDQ6VXNlcjE0MjQ0","avatar_url":"https://avatars0.githubusercontent.com/u/14244?v=4","gravatar_id":"","url":"https://api.github.com/users/DGaffney","html_url":"https://github.com/DGaffney","followers_url":"https://api.github.com/users/DGaffney/followers","following_url":"https://api.github.com/users/DGaffney/following{/other_user}","gists_url":"https://api.github.com/users/DGaffney/gists{/gist_id}","starred_url":"https://api.github.com/users/DGaffney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DGaffney/subscriptions","organizations_url":"https://api.github.com/users/DGaffney/orgs","repos_url":"https://api.github.com/users/DGaffney/repos","events_url":"https://api.github.com/users/DGaffney/events{/privacy}","received_events_url":"https://api.github.com/users/DGaffney/received_events","type":"User","site_admin":false},"labels":[{"id":378474407,"node_id":"MDU6TGFiZWwzNzg0NzQ0MDc=","url":"https://api.github.com/repos/DistrictDataLabs/yellowbrick/labels/type:%20bug","name":"type: bug","color":"e99695","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2017-09-30T21:41:01Z","updated_at":"2019-01-02T03:18:46Z","closed_at":null,"author_association":"NONE","body":"I read through the issue history and saw you've gone through and added in multiclass ROC/AUC scores, but after an hour of so of hacking along with the MNIST dataset I can't replicate. I'm seeing the following issue:\r\n\r\n```\r\n  File \"/usr/local/lib/python2.7/site-packages/yellowbrick/classifier/rocauc.py\", line 183, in score\r\n    self.draw()\r\n  File \"/usr/local/lib/python2.7/site-packages/yellowbrick/classifier/rocauc.py\", line 222, in draw\r\n    color= self.colors[len(self.classes_)],\r\nIndexError: list index out of range\r\n```\r\n\r\nThe dataset is just a standard csv version from (https://pjreddie.com/media/files/mnist_train.csv), and the code I'm using to run it looks like:\r\n\r\n```\r\nfrom sklearn.ensemble import AdaBoostClassifier\r\nfrom yellowbrick.classifier import ROCAUC\r\nfrom sklearn.model_selection import train_test_split\r\nX_train, X_test, y_train, y_test = train_test_split(x, y, test_size=0.2)\r\nvisualizer = ROCAUC(AdaBoostClassifier(algorithm='SAMME.R', base_estimator=None,learning_rate=0.5, n_estimators=10, random_state=None), classes=list(set(y)))\r\nvisualizer.fit(X_train, y_train) \r\nvisualizer.score(X_test, y_test)\r\nvisualizer.poof(outpath=diagnostic_image_path+\"/roc_auc.png\")\r\nplt.clf()\r\n```\r\n\r\nWhere `y` is a parsed set of labels from the csv and `x` is the parsed feature set. Does this issue make any sense?"},"comment":{"url":"https://api.github.com/repos/DistrictDataLabs/yellowbrick/issues/comments/450781045","html_url":"https://github.com/DistrictDataLabs/yellowbrick/issues/288#issuecomment-450781045","issue_url":"https://api.github.com/repos/DistrictDataLabs/yellowbrick/issues/288","id":450781045,"node_id":"MDEyOklzc3VlQ29tbWVudDQ1MDc4MTA0NQ==","user":{"login":"DGaffney","id":14244,"node_id":"MDQ6VXNlcjE0MjQ0","avatar_url":"https://avatars0.githubusercontent.com/u/14244?v=4","gravatar_id":"","url":"https://api.github.com/users/DGaffney","html_url":"https://github.com/DGaffney","followers_url":"https://api.github.com/users/DGaffney/followers","following_url":"https://api.github.com/users/DGaffney/following{/other_user}","gists_url":"https://api.github.com/users/DGaffney/gists{/gist_id}","starred_url":"https://api.github.com/users/DGaffney/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DGaffney/subscriptions","organizations_url":"https://api.github.com/users/DGaffney/orgs","repos_url":"https://api.github.com/users/DGaffney/repos","events_url":"https://api.github.com/users/DGaffney/events{/privacy}","received_events_url":"https://api.github.com/users/DGaffney/received_events","type":"User","site_admin":false},"created_at":"2019-01-02T03:18:46Z","updated_at":"2019-01-02T03:18:46Z","author_association":"NONE","body":"Beautiful to see forward movement in this ticket! Love what you are all putting together.\n\nDevin\n\n> On Jan 1, 2019, at 9:40 PM, Benjamin Bengfort <notifications@github.com> wrote:\n> \n> @rebeccabilbro I think this might have been fixed in #522 or #533; do you have time to use the mnist dataset and code that @DGaffney provided to see if this is resolved? If not, I can try to make time this weekend, let me know!\n> \n> —\n> You are receiving this because you were mentioned.\n> Reply to this email directly, view it on GitHub, or mute the thread.\n"}}
{"actor":{"display_login":"DGaffney"}}