{"action":"created","issue":{"url":"https://api.github.com/repos/tiant167/svm_anti_spam/issues/1","repository_url":"https://api.github.com/repos/tiant167/svm_anti_spam","labels_url":"https://api.github.com/repos/tiant167/svm_anti_spam/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/tiant167/svm_anti_spam/issues/1/comments","events_url":"https://api.github.com/repos/tiant167/svm_anti_spam/issues/1/events","html_url":"https://github.com/tiant167/svm_anti_spam/issues/1","id":143201500,"number":1,"title":"用train_test_split生成测试集，用classification_report和cross_validation做评估比较好","user":{"login":"0neSe7en","id":2234539,"avatar_url":"https://avatars.githubusercontent.com/u/2234539?v=3","gravatar_id":"","url":"https://api.github.com/users/0neSe7en","html_url":"https://github.com/0neSe7en","followers_url":"https://api.github.com/users/0neSe7en/followers","following_url":"https://api.github.com/users/0neSe7en/following{/other_user}","gists_url":"https://api.github.com/users/0neSe7en/gists{/gist_id}","starred_url":"https://api.github.com/users/0neSe7en/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/0neSe7en/subscriptions","organizations_url":"https://api.github.com/users/0neSe7en/orgs","repos_url":"https://api.github.com/users/0neSe7en/repos","events_url":"https://api.github.com/users/0neSe7en/events{/privacy}","received_events_url":"https://api.github.com/users/0neSe7en/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/tiant167/svm_anti_spam/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-24T09:51:22Z","updated_at":"2016-05-06T03:39:42Z","closed_at":null,"body":"ref https://github.com/0neSe7en/jd-comments/blob/master/web/server/learn/model/model.py#L47\r\n\r\nreport is like ...\r\n\r\n```\r\n#           K-Folder#1    K-Folder#2    K-Folder#3    K-Folder#4    K-Folder#5    K-Folder#6    K-Folder#7    K-Folder#8    K-Folder#9    K-Folder#10        avg\r\n--------  ------------  ------------  ------------  ------------  ------------  ------------  ------------  ------------  ------------  -------------  ---------\r\naccuracy      0.91358       0.839506      0.938272      0.888889      0.864198      0.82716       0.8125        0.8375        0.873418       0.962025   0.875705\r\nf1_macro      0.909091      0.835905      0.935065      0.884377      0.862096      0.819196      0.792208      0.829815      0.863793       0.959425   0.869097\r\nlog_loss     -0.245603     -0.385234     -0.240469     -0.304525     -0.350548     -0.48089      -0.445714     -0.429858     -0.334247      -0.172873  -0.338996\r\nrecall        0.875         0.875         0.90625       0.875         0.9375        0.78125       0.645161      0.806452      0.774194       0.903226   0.837903\r\n```\r\n\r\n```\r\n                precision    recall  f1-score   support\r\n\r\n       普通评论       0.90      0.91      0.91       164\r\n       无效评论       0.85      0.84      0.85       102\r\n\r\n  avg / total       0.88      0.88      0.88       266\r\n```\r\n\r\n\r\n可以用GridSearch找到最好的参数\r\n\r\nref https://github.com/0neSe7en/jd-comments/blob/master/web/server/learn/main.py#L22\r\n\r\nref http://scikit-learn.org/stable/auto_examples/model_selection/grid_search_digits.html"},"comment":{"url":"https://api.github.com/repos/tiant167/svm_anti_spam/issues/comments/217340936","html_url":"https://github.com/tiant167/svm_anti_spam/issues/1#issuecomment-217340936","issue_url":"https://api.github.com/repos/tiant167/svm_anti_spam/issues/1","id":217340936,"user":{"login":"zhuangya","id":499038,"avatar_url":"https://avatars.githubusercontent.com/u/499038?v=3","gravatar_id":"","url":"https://api.github.com/users/zhuangya","html_url":"https://github.com/zhuangya","followers_url":"https://api.github.com/users/zhuangya/followers","following_url":"https://api.github.com/users/zhuangya/following{/other_user}","gists_url":"https://api.github.com/users/zhuangya/gists{/gist_id}","starred_url":"https://api.github.com/users/zhuangya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zhuangya/subscriptions","organizations_url":"https://api.github.com/users/zhuangya/orgs","repos_url":"https://api.github.com/users/zhuangya/repos","events_url":"https://api.github.com/users/zhuangya/events{/privacy}","received_events_url":"https://api.github.com/users/zhuangya/received_events","type":"User","site_admin":false},"created_at":"2016-05-06T03:39:42Z","updated_at":"2016-05-06T03:39:42Z","body":"@0neSe7en 你要发的两个 link 是下面这两个吧。\r\n\r\nhttps://github.com/0neSe7en/jd-comments/blob/6d804975e90491d2b652888bde586dc5647da6a5/web/server/learn/model/model.py#L47\r\n\r\nhttps://github.com/0neSe7en/jd-comments/blob/6d804975e90491d2b652888bde586dc5647da6a5/web/server/learn/main.py#L22\r\n\r\n"}}