{"action":"created","comment":{"url":"https://api.github.com/repos/PaddlePaddle/models/pulls/comments/153170317","pull_request_review_id":79134611,"id":153170317,"diff_hunk":"@@ -0,0 +1,76 @@\n+import paddle.v2 as paddle\n+\n+dense_feature_dim = 13\n+sparse_feature_dim = 117568\n+\n+\n+def fm_layer(input, factor_size, fm_param_attr):\n+    first_order = paddle.layer.fc(\n+        input=input, size=1, act=paddle.activation.Linear())\n+    second_order = paddle.layer.factorization_machine(\n+        input=input,\n+        factor_size=factor_size,\n+        act=paddle.activation.Linear(),\n+        param_attr=fm_param_attr)\n+    out = paddle.layer.addto(\n+        input=[first_order, second_order],\n+        act=paddle.activation.Linear(),\n+        bias_attr=False)\n+    return out","path":"deep_fm/network_conf.py","position":19,"original_position":19,"commit_id":"8a1af03e3986ff193fecc1691b89dd84e0178a36","original_commit_id":"8a1af03e3986ff193fecc1691b89dd84e0178a36","user":{"login":"will-am","id":32189592,"avatar_url":"https://avatars3.githubusercontent.com/u/32189592?v=4","gravatar_id":"","url":"https://api.github.com/users/will-am","html_url":"https://github.com/will-am","followers_url":"https://api.github.com/users/will-am/followers","following_url":"https://api.github.com/users/will-am/following{/other_user}","gists_url":"https://api.github.com/users/will-am/gists{/gist_id}","starred_url":"https://api.github.com/users/will-am/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/will-am/subscriptions","organizations_url":"https://api.github.com/users/will-am/orgs","repos_url":"https://api.github.com/users/will-am/repos","events_url":"https://api.github.com/users/will-am/events{/privacy}","received_events_url":"https://api.github.com/users/will-am/received_events","type":"User","site_admin":false},"body":"好的","created_at":"2017-11-27T11:23:54Z","updated_at":"2017-11-27T11:24:49Z","html_url":"https://github.com/PaddlePaddle/models/pull/485#discussion_r153170317","pull_request_url":"https://api.github.com/repos/PaddlePaddle/models/pulls/485","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/PaddlePaddle/models/pulls/comments/153170317"},"html":{"href":"https://github.com/PaddlePaddle/models/pull/485#discussion_r153170317"},"pull_request":{"href":"https://api.github.com/repos/PaddlePaddle/models/pulls/485"}},"in_reply_to_id":153153343},"pull_request":{"url":"https://api.github.com/repos/PaddlePaddle/models/pulls/485","id":154297619,"html_url":"https://github.com/PaddlePaddle/models/pull/485","diff_url":"https://github.com/PaddlePaddle/models/pull/485.diff","patch_url":"https://github.com/PaddlePaddle/models/pull/485.patch","issue_url":"https://api.github.com/repos/PaddlePaddle/models/issues/485","number":485,"state":"open","locked":false,"title":"Implement DeepFM for CTR prediction","user":{"login":"will-am","id":32189592,"avatar_url":"https://avatars3.githubusercontent.com/u/32189592?v=4","gravatar_id":"","url":"https://api.github.com/users/will-am","html_url":"https://github.com/will-am","followers_url":"https://api.github.com/users/will-am/followers","following_url":"https://api.github.com/users/will-am/following{/other_user}","gists_url":"https://api.github.com/users/will-am/gists{/gist_id}","starred_url":"https://api.github.com/users/will-am/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/will-am/subscriptions","organizations_url":"https://api.github.com/users/will-am/orgs","repos_url":"https://api.github.com/users/will-am/repos","events_url":"https://api.github.com/users/will-am/events{/privacy}","received_events_url":"https://api.github.com/users/will-am/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-11-23T04:28:20Z","updated_at":"2017-11-27T11:24:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e77cb9f8fc06aade92404c0802ffc1b69e316966","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/PaddlePaddle/models/pulls/485/commits","review_comments_url":"https://api.github.com/repos/PaddlePaddle/models/pulls/485/comments","review_comment_url":"https://api.github.com/repos/PaddlePaddle/models/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PaddlePaddle/models/issues/485/comments","statuses_url":"https://api.github.com/repos/PaddlePaddle/models/statuses/8a1af03e3986ff193fecc1691b89dd84e0178a36","head":{"label":"will-am:deep_fm","ref":"deep_fm","sha":"8a1af03e3986ff193fecc1691b89dd84e0178a36","user":{"login":"will-am","id":32189592,"avatar_url":"https://avatars3.githubusercontent.com/u/32189592?v=4","gravatar_id":"","url":"https://api.github.com/users/will-am","html_url":"https://github.com/will-am","followers_url":"https://api.github.com/users/will-am/followers","following_url":"https://api.github.com/users/will-am/following{/other_user}","gists_url":"https://api.github.com/users/will-am/gists{/gist_id}","starred_url":"https://api.github.com/users/will-am/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/will-am/subscriptions","organizations_url":"https://api.github.com/users/will-am/orgs","repos_url":"https://api.github.com/users/will-am/repos","events_url":"https://api.github.com/users/will-am/events{/privacy}","received_events_url":"https://api.github.com/users/will-am/received_events","type":"User","site_admin":false},"repo":{"id":105341404,"name":"models","full_name":"will-am/models","owner":{"login":"will-am","id":32189592,"avatar_url":"https://avatars3.githubusercontent.com/u/32189592?v=4","gravatar_id":"","url":"https://api.github.com/users/will-am","html_url":"https://github.com/will-am","followers_url":"https://api.github.com/users/will-am/followers","following_url":"https://api.github.com/users/will-am/following{/other_user}","gists_url":"https://api.github.com/users/will-am/gists{/gist_id}","starred_url":"https://api.github.com/users/will-am/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/will-am/subscriptions","organizations_url":"https://api.github.com/users/will-am/orgs","repos_url":"https://api.github.com/users/will-am/repos","events_url":"https://api.github.com/users/will-am/events{/privacy}","received_events_url":"https://api.github.com/users/will-am/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/will-am/models","description":"Model configurations","fork":true,"url":"https://api.github.com/repos/will-am/models","forks_url":"https://api.github.com/repos/will-am/models/forks","keys_url":"https://api.github.com/repos/will-am/models/keys{/key_id}","collaborators_url":"https://api.github.com/repos/will-am/models/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/will-am/models/teams","hooks_url":"https://api.github.com/repos/will-am/models/hooks","issue_events_url":"https://api.github.com/repos/will-am/models/issues/events{/number}","events_url":"https://api.github.com/repos/will-am/models/events","assignees_url":"https://api.github.com/repos/will-am/models/assignees{/user}","branches_url":"https://api.github.com/repos/will-am/models/branches{/branch}","tags_url":"https://api.github.com/repos/will-am/models/tags","blobs_url":"https://api.github.com/repos/will-am/models/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/will-am/models/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/will-am/models/git/refs{/sha}","trees_url":"https://api.github.com/repos/will-am/models/git/trees{/sha}","statuses_url":"https://api.github.com/repos/will-am/models/statuses/{sha}","languages_url":"https://api.github.com/repos/will-am/models/languages","stargazers_url":"https://api.github.com/repos/will-am/models/stargazers","contributors_url":"https://api.github.com/repos/will-am/models/contributors","subscribers_url":"https://api.github.com/repos/will-am/models/subscribers","subscription_url":"https://api.github.com/repos/will-am/models/subscription","commits_url":"https://api.github.com/repos/will-am/models/commits{/sha}","git_commits_url":"https://api.github.com/repos/will-am/models/git/commits{/sha}","comments_url":"https://api.github.com/repos/will-am/models/comments{/number}","issue_comment_url":"https://api.github.com/repos/will-am/models/issues/comments{/number}","contents_url":"https://api.github.com/repos/will-am/models/contents/{+path}","compare_url":"https://api.github.com/repos/will-am/models/compare/{base}...{head}","merges_url":"https://api.github.com/repos/will-am/models/merges","archive_url":"https://api.github.com/repos/will-am/models/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/will-am/models/downloads","issues_url":"https://api.github.com/repos/will-am/models/issues{/number}","pulls_url":"https://api.github.com/repos/will-am/models/pulls{/number}","milestones_url":"https://api.github.com/repos/will-am/models/milestones{/number}","notifications_url":"https://api.github.com/repos/will-am/models/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/will-am/models/labels{/name}","releases_url":"https://api.github.com/repos/will-am/models/releases{/id}","deployments_url":"https://api.github.com/repos/will-am/models/deployments","created_at":"2017-09-30T04:20:22Z","updated_at":"2017-09-30T04:20:24Z","pushed_at":"2017-11-27T06:03:11Z","git_url":"git://github.com/will-am/models.git","ssh_url":"git@github.com:will-am/models.git","clone_url":"https://github.com/will-am/models.git","svn_url":"https://github.com/will-am/models","homepage":"","size":44483,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"PaddlePaddle:develop","ref":"develop","sha":"dbba2a092d724380eaa1b199cbe41292022f7da0","user":{"login":"PaddlePaddle","id":23534030,"avatar_url":"https://avatars3.githubusercontent.com/u/23534030?v=4","gravatar_id":"","url":"https://api.github.com/users/PaddlePaddle","html_url":"https://github.com/PaddlePaddle","followers_url":"https://api.github.com/users/PaddlePaddle/followers","following_url":"https://api.github.com/users/PaddlePaddle/following{/other_user}","gists_url":"https://api.github.com/users/PaddlePaddle/gists{/gist_id}","starred_url":"https://api.github.com/users/PaddlePaddle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PaddlePaddle/subscriptions","organizations_url":"https://api.github.com/users/PaddlePaddle/orgs","repos_url":"https://api.github.com/users/PaddlePaddle/repos","events_url":"https://api.github.com/users/PaddlePaddle/events{/privacy}","received_events_url":"https://api.github.com/users/PaddlePaddle/received_events","type":"Organization","site_admin":false},"repo":{"id":88868842,"name":"models","full_name":"PaddlePaddle/models","owner":{"login":"PaddlePaddle","id":23534030,"avatar_url":"https://avatars3.githubusercontent.com/u/23534030?v=4","gravatar_id":"","url":"https://api.github.com/users/PaddlePaddle","html_url":"https://github.com/PaddlePaddle","followers_url":"https://api.github.com/users/PaddlePaddle/followers","following_url":"https://api.github.com/users/PaddlePaddle/following{/other_user}","gists_url":"https://api.github.com/users/PaddlePaddle/gists{/gist_id}","starred_url":"https://api.github.com/users/PaddlePaddle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PaddlePaddle/subscriptions","organizations_url":"https://api.github.com/users/PaddlePaddle/orgs","repos_url":"https://api.github.com/users/PaddlePaddle/repos","events_url":"https://api.github.com/users/PaddlePaddle/events{/privacy}","received_events_url":"https://api.github.com/users/PaddlePaddle/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PaddlePaddle/models","description":"Model configurations","fork":false,"url":"https://api.github.com/repos/PaddlePaddle/models","forks_url":"https://api.github.com/repos/PaddlePaddle/models/forks","keys_url":"https://api.github.com/repos/PaddlePaddle/models/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PaddlePaddle/models/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PaddlePaddle/models/teams","hooks_url":"https://api.github.com/repos/PaddlePaddle/models/hooks","issue_events_url":"https://api.github.com/repos/PaddlePaddle/models/issues/events{/number}","events_url":"https://api.github.com/repos/PaddlePaddle/models/events","assignees_url":"https://api.github.com/repos/PaddlePaddle/models/assignees{/user}","branches_url":"https://api.github.com/repos/PaddlePaddle/models/branches{/branch}","tags_url":"https://api.github.com/repos/PaddlePaddle/models/tags","blobs_url":"https://api.github.com/repos/PaddlePaddle/models/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PaddlePaddle/models/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PaddlePaddle/models/git/refs{/sha}","trees_url":"https://api.github.com/repos/PaddlePaddle/models/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PaddlePaddle/models/statuses/{sha}","languages_url":"https://api.github.com/repos/PaddlePaddle/models/languages","stargazers_url":"https://api.github.com/repos/PaddlePaddle/models/stargazers","contributors_url":"https://api.github.com/repos/PaddlePaddle/models/contributors","subscribers_url":"https://api.github.com/repos/PaddlePaddle/models/subscribers","subscription_url":"https://api.github.com/repos/PaddlePaddle/models/subscription","commits_url":"https://api.github.com/repos/PaddlePaddle/models/commits{/sha}","git_commits_url":"https://api.github.com/repos/PaddlePaddle/models/git/commits{/sha}","comments_url":"https://api.github.com/repos/PaddlePaddle/models/comments{/number}","issue_comment_url":"https://api.github.com/repos/PaddlePaddle/models/issues/comments{/number}","contents_url":"https://api.github.com/repos/PaddlePaddle/models/contents/{+path}","compare_url":"https://api.github.com/repos/PaddlePaddle/models/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PaddlePaddle/models/merges","archive_url":"https://api.github.com/repos/PaddlePaddle/models/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PaddlePaddle/models/downloads","issues_url":"https://api.github.com/repos/PaddlePaddle/models/issues{/number}","pulls_url":"https://api.github.com/repos/PaddlePaddle/models/pulls{/number}","milestones_url":"https://api.github.com/repos/PaddlePaddle/models/milestones{/number}","notifications_url":"https://api.github.com/repos/PaddlePaddle/models/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PaddlePaddle/models/labels{/name}","releases_url":"https://api.github.com/repos/PaddlePaddle/models/releases{/id}","deployments_url":"https://api.github.com/repos/PaddlePaddle/models/deployments","created_at":"2017-04-20T13:30:15Z","updated_at":"2017-11-27T03:54:31Z","pushed_at":"2017-11-27T09:28:32Z","git_url":"git://github.com/PaddlePaddle/models.git","ssh_url":"git@github.com:PaddlePaddle/models.git","clone_url":"https://github.com/PaddlePaddle/models.git","svn_url":"https://github.com/PaddlePaddle/models","homepage":"","size":44238,"stargazers_count":112,"watchers_count":112,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":95,"mirror_url":null,"archived":false,"open_issues_count":96,"forks":95,"open_issues":96,"watchers":112,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/PaddlePaddle/models/pulls/485"},"html":{"href":"https://github.com/PaddlePaddle/models/pull/485"},"issue":{"href":"https://api.github.com/repos/PaddlePaddle/models/issues/485"},"comments":{"href":"https://api.github.com/repos/PaddlePaddle/models/issues/485/comments"},"review_comments":{"href":"https://api.github.com/repos/PaddlePaddle/models/pulls/485/comments"},"review_comment":{"href":"https://api.github.com/repos/PaddlePaddle/models/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PaddlePaddle/models/pulls/485/commits"},"statuses":{"href":"https://api.github.com/repos/PaddlePaddle/models/statuses/8a1af03e3986ff193fecc1691b89dd84e0178a36"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"will-am"}}