{"action":"created","comment":{"url":"https://api.github.com/repos/fchollet/keras/pulls/comments/71079295","id":71079295,"diff_hunk":"@@ -40,8 +37,8 @@ def sampling(args):\n x_decoded_mean = decoder_mean(h_decoded)\n \n def vae_loss(x, x_decoded_mean):\n-    xent_loss = objectives.binary_crossentropy(x, x_decoded_mean)\n-    kl_loss = - 0.5 * K.mean(1 + z_log_std - K.square(z_mean) - K.exp(z_log_std), axis=-1)\n+    xent_loss = original_dim * objectives.binary_crossentropy(x, x_decoded_mean)","path":"examples/variational_autoencoder.py","position":49,"original_position":49,"commit_id":"735bbe15c161bc0b2c174b8104725950020f4675","original_commit_id":"735bbe15c161bc0b2c174b8104725950020f4675","user":{"login":"lukovkin","id":5587574,"avatar_url":"https://avatars.githubusercontent.com/u/5587574?v=3","gravatar_id":"","url":"https://api.github.com/users/lukovkin","html_url":"https://github.com/lukovkin","followers_url":"https://api.github.com/users/lukovkin/followers","following_url":"https://api.github.com/users/lukovkin/following{/other_user}","gists_url":"https://api.github.com/users/lukovkin/gists{/gist_id}","starred_url":"https://api.github.com/users/lukovkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukovkin/subscriptions","organizations_url":"https://api.github.com/users/lukovkin/orgs","repos_url":"https://api.github.com/users/lukovkin/repos","events_url":"https://api.github.com/users/lukovkin/events{/privacy}","received_events_url":"https://api.github.com/users/lukovkin/received_events","type":"User","site_admin":false},"body":"I'm a bit confused here.\r\nIf T is the training set, T_i is the single i-th sample (image) from the training set (with a dim of 784) and t_j is the j-th pixel then when we consider p(x_i | z_i,l) (expr. 10), do we assume that x_i is a t_j (pixel) or T_i (image)?\r\n\r\nBut I could well be wrong, as I'm no expert in this field, I've started to look into VAE just recently.","created_at":"2016-07-17T09:18:33Z","updated_at":"2016-07-17T09:18:33Z","html_url":"https://github.com/fchollet/keras/pull/3220#discussion_r71079295","pull_request_url":"https://api.github.com/repos/fchollet/keras/pulls/3220","_links":{"self":{"href":"https://api.github.com/repos/fchollet/keras/pulls/comments/71079295"},"html":{"href":"https://github.com/fchollet/keras/pull/3220#discussion_r71079295"},"pull_request":{"href":"https://api.github.com/repos/fchollet/keras/pulls/3220"}}},"pull_request":{"url":"https://api.github.com/repos/fchollet/keras/pulls/3220","id":77380115,"html_url":"https://github.com/fchollet/keras/pull/3220","diff_url":"https://github.com/fchollet/keras/pull/3220.diff","patch_url":"https://github.com/fchollet/keras/pull/3220.patch","issue_url":"https://api.github.com/repos/fchollet/keras/issues/3220","number":3220,"state":"open","locked":false,"title":"Fix VAE example","user":{"login":"RuiShu","id":7140902,"avatar_url":"https://avatars.githubusercontent.com/u/7140902?v=3","gravatar_id":"","url":"https://api.github.com/users/RuiShu","html_url":"https://github.com/RuiShu","followers_url":"https://api.github.com/users/RuiShu/followers","following_url":"https://api.github.com/users/RuiShu/following{/other_user}","gists_url":"https://api.github.com/users/RuiShu/gists{/gist_id}","starred_url":"https://api.github.com/users/RuiShu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RuiShu/subscriptions","organizations_url":"https://api.github.com/users/RuiShu/orgs","repos_url":"https://api.github.com/users/RuiShu/repos","events_url":"https://api.github.com/users/RuiShu/events{/privacy}","received_events_url":"https://api.github.com/users/RuiShu/received_events","type":"User","site_admin":false},"body":"A number of changes:\r\n1. Switch from Lambda to merge, otherwise code will not run in keras==1.0.5.\r\n2. Rename z_log_std to z_log_var in order for the objective function to make sense\r\n3. Adjust reparameterization trick to reflect use of z_log_var, not z_log_std\r\n4. Remove epsilon_std, since (standard) VAE uses isotropic gaussian prior.\r\n5. Re-balance the weighting of KL and reconstruction terms\r\n6. Use adam instead of rmsprop\r\n7. Increase hidden unit size to improve model\r\n8. Increase batch size to speed up training","created_at":"2016-07-13T23:45:49Z","updated_at":"2016-07-17T09:18:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b94a7462d6aad9f6adbe262c839c44df2ae3104f","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/fchollet/keras/pulls/3220/commits","review_comments_url":"https://api.github.com/repos/fchollet/keras/pulls/3220/comments","review_comment_url":"https://api.github.com/repos/fchollet/keras/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fchollet/keras/issues/3220/comments","statuses_url":"https://api.github.com/repos/fchollet/keras/statuses/735bbe15c161bc0b2c174b8104725950020f4675","head":{"label":"RuiShu:master","ref":"master","sha":"735bbe15c161bc0b2c174b8104725950020f4675","user":{"login":"RuiShu","id":7140902,"avatar_url":"https://avatars.githubusercontent.com/u/7140902?v=3","gravatar_id":"","url":"https://api.github.com/users/RuiShu","html_url":"https://github.com/RuiShu","followers_url":"https://api.github.com/users/RuiShu/followers","following_url":"https://api.github.com/users/RuiShu/following{/other_user}","gists_url":"https://api.github.com/users/RuiShu/gists{/gist_id}","starred_url":"https://api.github.com/users/RuiShu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RuiShu/subscriptions","organizations_url":"https://api.github.com/users/RuiShu/orgs","repos_url":"https://api.github.com/users/RuiShu/repos","events_url":"https://api.github.com/users/RuiShu/events{/privacy}","received_events_url":"https://api.github.com/users/RuiShu/received_events","type":"User","site_admin":false},"repo":{"id":63285691,"name":"keras","full_name":"RuiShu/keras","owner":{"login":"RuiShu","id":7140902,"avatar_url":"https://avatars.githubusercontent.com/u/7140902?v=3","gravatar_id":"","url":"https://api.github.com/users/RuiShu","html_url":"https://github.com/RuiShu","followers_url":"https://api.github.com/users/RuiShu/followers","following_url":"https://api.github.com/users/RuiShu/following{/other_user}","gists_url":"https://api.github.com/users/RuiShu/gists{/gist_id}","starred_url":"https://api.github.com/users/RuiShu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RuiShu/subscriptions","organizations_url":"https://api.github.com/users/RuiShu/orgs","repos_url":"https://api.github.com/users/RuiShu/repos","events_url":"https://api.github.com/users/RuiShu/events{/privacy}","received_events_url":"https://api.github.com/users/RuiShu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/RuiShu/keras","description":"Deep Learning library for Python. Convnets, recurrent neural networks, and more. Runs on Theano and TensorFlow.","fork":true,"url":"https://api.github.com/repos/RuiShu/keras","forks_url":"https://api.github.com/repos/RuiShu/keras/forks","keys_url":"https://api.github.com/repos/RuiShu/keras/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RuiShu/keras/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RuiShu/keras/teams","hooks_url":"https://api.github.com/repos/RuiShu/keras/hooks","issue_events_url":"https://api.github.com/repos/RuiShu/keras/issues/events{/number}","events_url":"https://api.github.com/repos/RuiShu/keras/events","assignees_url":"https://api.github.com/repos/RuiShu/keras/assignees{/user}","branches_url":"https://api.github.com/repos/RuiShu/keras/branches{/branch}","tags_url":"https://api.github.com/repos/RuiShu/keras/tags","blobs_url":"https://api.github.com/repos/RuiShu/keras/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RuiShu/keras/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RuiShu/keras/git/refs{/sha}","trees_url":"https://api.github.com/repos/RuiShu/keras/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RuiShu/keras/statuses/{sha}","languages_url":"https://api.github.com/repos/RuiShu/keras/languages","stargazers_url":"https://api.github.com/repos/RuiShu/keras/stargazers","contributors_url":"https://api.github.com/repos/RuiShu/keras/contributors","subscribers_url":"https://api.github.com/repos/RuiShu/keras/subscribers","subscription_url":"https://api.github.com/repos/RuiShu/keras/subscription","commits_url":"https://api.github.com/repos/RuiShu/keras/commits{/sha}","git_commits_url":"https://api.github.com/repos/RuiShu/keras/git/commits{/sha}","comments_url":"https://api.github.com/repos/RuiShu/keras/comments{/number}","issue_comment_url":"https://api.github.com/repos/RuiShu/keras/issues/comments{/number}","contents_url":"https://api.github.com/repos/RuiShu/keras/contents/{+path}","compare_url":"https://api.github.com/repos/RuiShu/keras/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RuiShu/keras/merges","archive_url":"https://api.github.com/repos/RuiShu/keras/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RuiShu/keras/downloads","issues_url":"https://api.github.com/repos/RuiShu/keras/issues{/number}","pulls_url":"https://api.github.com/repos/RuiShu/keras/pulls{/number}","milestones_url":"https://api.github.com/repos/RuiShu/keras/milestones{/number}","notifications_url":"https://api.github.com/repos/RuiShu/keras/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RuiShu/keras/labels{/name}","releases_url":"https://api.github.com/repos/RuiShu/keras/releases{/id}","deployments_url":"https://api.github.com/repos/RuiShu/keras/deployments","created_at":"2016-07-13T23:13:34Z","updated_at":"2016-07-13T23:13:35Z","pushed_at":"2016-07-13T23:44:06Z","git_url":"git://github.com/RuiShu/keras.git","ssh_url":"git@github.com:RuiShu/keras.git","clone_url":"https://github.com/RuiShu/keras.git","svn_url":"https://github.com/RuiShu/keras","homepage":"http://keras.io/","size":3339,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"fchollet:master","ref":"master","sha":"642eaca6186e9e5c4e23a2db057959ecdd1a6c74","user":{"login":"fchollet","id":710255,"avatar_url":"https://avatars.githubusercontent.com/u/710255?v=3","gravatar_id":"","url":"https://api.github.com/users/fchollet","html_url":"https://github.com/fchollet","followers_url":"https://api.github.com/users/fchollet/followers","following_url":"https://api.github.com/users/fchollet/following{/other_user}","gists_url":"https://api.github.com/users/fchollet/gists{/gist_id}","starred_url":"https://api.github.com/users/fchollet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fchollet/subscriptions","organizations_url":"https://api.github.com/users/fchollet/orgs","repos_url":"https://api.github.com/users/fchollet/repos","events_url":"https://api.github.com/users/fchollet/events{/privacy}","received_events_url":"https://api.github.com/users/fchollet/received_events","type":"User","site_admin":false},"repo":{"id":33015583,"name":"keras","full_name":"fchollet/keras","owner":{"login":"fchollet","id":710255,"avatar_url":"https://avatars.githubusercontent.com/u/710255?v=3","gravatar_id":"","url":"https://api.github.com/users/fchollet","html_url":"https://github.com/fchollet","followers_url":"https://api.github.com/users/fchollet/followers","following_url":"https://api.github.com/users/fchollet/following{/other_user}","gists_url":"https://api.github.com/users/fchollet/gists{/gist_id}","starred_url":"https://api.github.com/users/fchollet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fchollet/subscriptions","organizations_url":"https://api.github.com/users/fchollet/orgs","repos_url":"https://api.github.com/users/fchollet/repos","events_url":"https://api.github.com/users/fchollet/events{/privacy}","received_events_url":"https://api.github.com/users/fchollet/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fchollet/keras","description":"Deep Learning library for Python. Convnets, recurrent neural networks, and more. Runs on Theano and TensorFlow.","fork":false,"url":"https://api.github.com/repos/fchollet/keras","forks_url":"https://api.github.com/repos/fchollet/keras/forks","keys_url":"https://api.github.com/repos/fchollet/keras/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fchollet/keras/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fchollet/keras/teams","hooks_url":"https://api.github.com/repos/fchollet/keras/hooks","issue_events_url":"https://api.github.com/repos/fchollet/keras/issues/events{/number}","events_url":"https://api.github.com/repos/fchollet/keras/events","assignees_url":"https://api.github.com/repos/fchollet/keras/assignees{/user}","branches_url":"https://api.github.com/repos/fchollet/keras/branches{/branch}","tags_url":"https://api.github.com/repos/fchollet/keras/tags","blobs_url":"https://api.github.com/repos/fchollet/keras/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fchollet/keras/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fchollet/keras/git/refs{/sha}","trees_url":"https://api.github.com/repos/fchollet/keras/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fchollet/keras/statuses/{sha}","languages_url":"https://api.github.com/repos/fchollet/keras/languages","stargazers_url":"https://api.github.com/repos/fchollet/keras/stargazers","contributors_url":"https://api.github.com/repos/fchollet/keras/contributors","subscribers_url":"https://api.github.com/repos/fchollet/keras/subscribers","subscription_url":"https://api.github.com/repos/fchollet/keras/subscription","commits_url":"https://api.github.com/repos/fchollet/keras/commits{/sha}","git_commits_url":"https://api.github.com/repos/fchollet/keras/git/commits{/sha}","comments_url":"https://api.github.com/repos/fchollet/keras/comments{/number}","issue_comment_url":"https://api.github.com/repos/fchollet/keras/issues/comments{/number}","contents_url":"https://api.github.com/repos/fchollet/keras/contents/{+path}","compare_url":"https://api.github.com/repos/fchollet/keras/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fchollet/keras/merges","archive_url":"https://api.github.com/repos/fchollet/keras/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fchollet/keras/downloads","issues_url":"https://api.github.com/repos/fchollet/keras/issues{/number}","pulls_url":"https://api.github.com/repos/fchollet/keras/pulls{/number}","milestones_url":"https://api.github.com/repos/fchollet/keras/milestones{/number}","notifications_url":"https://api.github.com/repos/fchollet/keras/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fchollet/keras/labels{/name}","releases_url":"https://api.github.com/repos/fchollet/keras/releases{/id}","deployments_url":"https://api.github.com/repos/fchollet/keras/deployments","created_at":"2015-03-28T00:35:42Z","updated_at":"2016-07-17T09:10:23Z","pushed_at":"2016-07-17T00:52:31Z","git_url":"git://github.com/fchollet/keras.git","ssh_url":"git@github.com:fchollet/keras.git","clone_url":"https://github.com/fchollet/keras.git","svn_url":"https://github.com/fchollet/keras","homepage":"http://keras.io/","size":103800,"stargazers_count":7036,"watchers_count":7036,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2043,"mirror_url":null,"open_issues_count":1116,"forks":2043,"open_issues":1116,"watchers":7036,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fchollet/keras/pulls/3220"},"html":{"href":"https://github.com/fchollet/keras/pull/3220"},"issue":{"href":"https://api.github.com/repos/fchollet/keras/issues/3220"},"comments":{"href":"https://api.github.com/repos/fchollet/keras/issues/3220/comments"},"review_comments":{"href":"https://api.github.com/repos/fchollet/keras/pulls/3220/comments"},"review_comment":{"href":"https://api.github.com/repos/fchollet/keras/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fchollet/keras/pulls/3220/commits"},"statuses":{"href":"https://api.github.com/repos/fchollet/keras/statuses/735bbe15c161bc0b2c174b8104725950020f4675"}}}}
{"actor":{"display_login":"lukovkin"}}