{"action":"created","issue":{"url":"https://api.github.com/repos/PaddlePaddle/models/issues/1025","repository_url":"https://api.github.com/repos/PaddlePaddle/models","labels_url":"https://api.github.com/repos/PaddlePaddle/models/issues/1025/labels{/name}","comments_url":"https://api.github.com/repos/PaddlePaddle/models/issues/1025/comments","events_url":"https://api.github.com/repos/PaddlePaddle/models/issues/1025/events","html_url":"https://github.com/PaddlePaddle/models/issues/1025","id":337498036,"node_id":"MDU6SXNzdWUzMzc0OTgwMzY=","number":1025,"title":"youtube recall: infer_user.py 疑惑","user":{"login":"zachzh","id":2037256,"node_id":"MDQ6VXNlcjIwMzcyNTY=","avatar_url":"https://avatars0.githubusercontent.com/u/2037256?v=4","gravatar_id":"","url":"https://api.github.com/users/zachzh","html_url":"https://github.com/zachzh","followers_url":"https://api.github.com/users/zachzh/followers","following_url":"https://api.github.com/users/zachzh/following{/other_user}","gists_url":"https://api.github.com/users/zachzh/gists{/gist_id}","starred_url":"https://api.github.com/users/zachzh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zachzh/subscriptions","organizations_url":"https://api.github.com/users/zachzh/orgs","repos_url":"https://api.github.com/users/zachzh/repos","events_url":"https://api.github.com/users/zachzh/events{/privacy}","received_events_url":"https://api.github.com/users/zachzh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-02T12:29:35Z","updated_at":"2018-07-03T17:01:25Z","closed_at":null,"author_association":"NONE","body":"请教下，infer_user.py中，为啥将load的model的中以下字段初始化为0呢?\r\n是指仅保留userid 作为featue？\r\n线下是不是也做knn的检索就行？\r\n    \r\n\r\n# load the trained model.\r\n    with gzip.open(args.model_path) as f:\r\n        parameters = paddle.parameters.Parameters.from_tar(f)\r\n    parameters.set('_proj_province', \\\r\n            np.zeros(shape=parameters.get('_proj_province').shape))\r\n    parameters.set('_proj_city', \\\r\n            np.zeros(shape=parameters.get('_proj_city').shape))\r\n    parameters.set('_proj_phone', \\\r\n            np.zeros(shape=parameters.get('_proj_phone').shape))\r\n    parameters.set('_proj_history_clicked_items', \\\r\n            np.zeros(shape= parameters.get('_proj_history_clicked_items').shape))\r\n    parameters.set('_proj_history_clicked_categories', \\\r\n            np.zeros(shape= parameters.get('_proj_history_clicked_categories').shape))\r\n    parameters.set('_proj_history_clicked_tags', \\\r\n            np.zeros(shape= parameters.get('_proj_history_clicked_tags').shape))"},"comment":{"url":"https://api.github.com/repos/PaddlePaddle/models/issues/comments/402226238","html_url":"https://github.com/PaddlePaddle/models/issues/1025#issuecomment-402226238","issue_url":"https://api.github.com/repos/PaddlePaddle/models/issues/1025","id":402226238,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMjIyNjIzOA==","user":{"login":"guoshengCS","id":14105589,"node_id":"MDQ6VXNlcjE0MTA1NTg5","avatar_url":"https://avatars0.githubusercontent.com/u/14105589?v=4","gravatar_id":"","url":"https://api.github.com/users/guoshengCS","html_url":"https://github.com/guoshengCS","followers_url":"https://api.github.com/users/guoshengCS/followers","following_url":"https://api.github.com/users/guoshengCS/following{/other_user}","gists_url":"https://api.github.com/users/guoshengCS/gists{/gist_id}","starred_url":"https://api.github.com/users/guoshengCS/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guoshengCS/subscriptions","organizations_url":"https://api.github.com/users/guoshengCS/orgs","repos_url":"https://api.github.com/users/guoshengCS/repos","events_url":"https://api.github.com/users/guoshengCS/events{/privacy}","received_events_url":"https://api.github.com/users/guoshengCS/received_events","type":"User","site_admin":false},"created_at":"2018-07-03T17:01:25Z","updated_at":"2018-07-03T17:01:25Z","author_association":"CONTRIBUTOR","body":"infer_user.py看上去是希望只使用userid 作为featue进行预测，@Bella-Zhao 能否帮助解答下~"}}
{"actor":{"display_login":"guoshengCS"}}