{"action":"opened","issue":{"url":"https://api.github.com/repos/YouChouNoBB/2018-tencent-ad-competition-baseline/issues/11","repository_url":"https://api.github.com/repos/YouChouNoBB/2018-tencent-ad-competition-baseline","labels_url":"https://api.github.com/repos/YouChouNoBB/2018-tencent-ad-competition-baseline/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/YouChouNoBB/2018-tencent-ad-competition-baseline/issues/11/comments","events_url":"https://api.github.com/repos/YouChouNoBB/2018-tencent-ad-competition-baseline/issues/11/events","html_url":"https://github.com/YouChouNoBB/2018-tencent-ad-competition-baseline/issues/11","id":320192783,"number":11,"title":"萌新求教，跑了两个小时后出现这些错误，是哪里不对啊？","user":{"login":"TripleHack","id":18391320,"avatar_url":"https://avatars2.githubusercontent.com/u/18391320?v=4","gravatar_id":"","url":"https://api.github.com/users/TripleHack","html_url":"https://github.com/TripleHack","followers_url":"https://api.github.com/users/TripleHack/followers","following_url":"https://api.github.com/users/TripleHack/following{/other_user}","gists_url":"https://api.github.com/users/TripleHack/gists{/gist_id}","starred_url":"https://api.github.com/users/TripleHack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TripleHack/subscriptions","organizations_url":"https://api.github.com/users/TripleHack/orgs","repos_url":"https://api.github.com/users/TripleHack/repos","events_url":"https://api.github.com/users/TripleHack/events{/privacy}","received_events_url":"https://api.github.com/users/TripleHack/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-04T08:35:01Z","updated_at":"2018-05-04T08:35:01Z","closed_at":null,"author_association":"NONE","body":"Traceback (most recent call last):\r\n  File \"E:/2018-tencent-ad-competition-baseline-master/bryan_baseline_v2.py\", line 76, in batch_predict\r\n    data[feature] = LabelEncoder().fit_transform(data[feature].apply(int))\r\n  File \"E:\\ProgramData\\Anaconda3\\lib\\site-packages\\pandas\\core\\series.py\", line 2551, in apply\r\n    mapped = lib.map_infer(values, f, convert=convert_dtype)\r\n  File \"pandas/_libs/src/inference.pyx\", line 1521, in pandas._libs.lib.map_infer\r\nValueError: invalid literal for int() with base 10: '1 2'\r\n\r\nDuring handling of the above exception, another exception occurred:\r\n\r\nTraceback (most recent call last):\r\n  File \"E:/2018-tencent-ad-competition-baseline-master/bryan_baseline_v2.py\", line 115, in <module>\r\n    result.append(batch_predict(slice,i))\r\n  File \"E:/2018-tencent-ad-competition-baseline-master/bryan_baseline_v2.py\", line 78, in batch_predict\r\n    data[feature] = LabelEncoder().fit_transform(data[feature])\r\n  File \"E:\\ProgramData\\Anaconda3\\lib\\site-packages\\sklearn\\preprocessing\\label.py\", line 112, in fit_transform\r\n    self.classes_, y = np.unique(y, return_inverse=True)\r\n  File \"E:\\ProgramData\\Anaconda3\\lib\\site-packages\\numpy\\lib\\arraysetops.py\", line 210, in unique\r\n    return _unique1d(ar, return_index, return_inverse, return_counts)\r\n  File \"E:\\ProgramData\\Anaconda3\\lib\\site-packages\\numpy\\lib\\arraysetops.py\", line 274, in _unique1d\r\n    perm = ar.argsort(kind='mergesort' if return_index else 'quicksort')\r\nTypeError: '<' not supported between instances of 'int' and 'str'\r\n\r\nProcess finished with exit code 1\r\n"}}
{"actor":{"display_login":"TripleHack"}}