{"action":"opened","number":82,"pull_request":{"url":"https://api.github.com/repos/fchollet/keras/pulls/82","id":34064335,"html_url":"https://github.com/fchollet/keras/pull/82","diff_url":"https://github.com/fchollet/keras/pull/82.diff","patch_url":"https://github.com/fchollet/keras/pull/82.patch","issue_url":"https://api.github.com/repos/fchollet/keras/issues/82","number":82,"state":"open","locked":false,"title":"Added function to compute activation statistics for BatchNormalization","user":{"login":"jfsantos","id":5733,"avatar_url":"https://avatars.githubusercontent.com/u/5733?v=3","gravatar_id":"","url":"https://api.github.com/users/jfsantos","html_url":"https://github.com/jfsantos","followers_url":"https://api.github.com/users/jfsantos/followers","following_url":"https://api.github.com/users/jfsantos/following{/other_user}","gists_url":"https://api.github.com/users/jfsantos/gists{/gist_id}","starred_url":"https://api.github.com/users/jfsantos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfsantos/subscriptions","organizations_url":"https://api.github.com/users/jfsantos/orgs","repos_url":"https://api.github.com/users/jfsantos/repos","events_url":"https://api.github.com/users/jfsantos/events{/privacy}","received_events_url":"https://api.github.com/users/jfsantos/received_events","type":"User","site_admin":false},"body":"This adds a function, `set_activation_stats(model, X_train, batch_size, verbose)` that computes the activation mean and standard deviation for each BatchNormalization layer in a model and stores them as layer attributes. It also changes the BatchNormalization layer to use this information during test/inference. The only issue I see with this, which comes from using batch normalization and not from the implementation, is that in theory one needs to compute the activation statistics after each epoch if they want to check the validation or test performance. Otherwise, since they will not have these values, we don't have a way to normalize the data during testing.","created_at":"2015-04-24T16:29:53Z","updated_at":"2015-04-24T16:29:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/fchollet/keras/pulls/82/commits","review_comments_url":"https://api.github.com/repos/fchollet/keras/pulls/82/comments","review_comment_url":"https://api.github.com/repos/fchollet/keras/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fchollet/keras/issues/82/comments","statuses_url":"https://api.github.com/repos/fchollet/keras/statuses/c65c378479d5accd4074f09f789ad8b087d240dd","head":{"label":"jfsantos:master","ref":"master","sha":"c65c378479d5accd4074f09f789ad8b087d240dd","user":{"login":"jfsantos","id":5733,"avatar_url":"https://avatars.githubusercontent.com/u/5733?v=3","gravatar_id":"","url":"https://api.github.com/users/jfsantos","html_url":"https://github.com/jfsantos","followers_url":"https://api.github.com/users/jfsantos/followers","following_url":"https://api.github.com/users/jfsantos/following{/other_user}","gists_url":"https://api.github.com/users/jfsantos/gists{/gist_id}","starred_url":"https://api.github.com/users/jfsantos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfsantos/subscriptions","organizations_url":"https://api.github.com/users/jfsantos/orgs","repos_url":"https://api.github.com/users/jfsantos/repos","events_url":"https://api.github.com/users/jfsantos/events{/privacy}","received_events_url":"https://api.github.com/users/jfsantos/received_events","type":"User","site_admin":false},"repo":{"id":34006866,"name":"keras","full_name":"jfsantos/keras","owner":{"login":"jfsantos","id":5733,"avatar_url":"https://avatars.githubusercontent.com/u/5733?v=3","gravatar_id":"","url":"https://api.github.com/users/jfsantos","html_url":"https://github.com/jfsantos","followers_url":"https://api.github.com/users/jfsantos/followers","following_url":"https://api.github.com/users/jfsantos/following{/other_user}","gists_url":"https://api.github.com/users/jfsantos/gists{/gist_id}","starred_url":"https://api.github.com/users/jfsantos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfsantos/subscriptions","organizations_url":"https://api.github.com/users/jfsantos/orgs","repos_url":"https://api.github.com/users/jfsantos/repos","events_url":"https://api.github.com/users/jfsantos/events{/privacy}","received_events_url":"https://api.github.com/users/jfsantos/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jfsantos/keras","description":"Theano-based Deep Learning library","fork":true,"url":"https://api.github.com/repos/jfsantos/keras","forks_url":"https://api.github.com/repos/jfsantos/keras/forks","keys_url":"https://api.github.com/repos/jfsantos/keras/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jfsantos/keras/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jfsantos/keras/teams","hooks_url":"https://api.github.com/repos/jfsantos/keras/hooks","issue_events_url":"https://api.github.com/repos/jfsantos/keras/issues/events{/number}","events_url":"https://api.github.com/repos/jfsantos/keras/events","assignees_url":"https://api.github.com/repos/jfsantos/keras/assignees{/user}","branches_url":"https://api.github.com/repos/jfsantos/keras/branches{/branch}","tags_url":"https://api.github.com/repos/jfsantos/keras/tags","blobs_url":"https://api.github.com/repos/jfsantos/keras/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jfsantos/keras/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jfsantos/keras/git/refs{/sha}","trees_url":"https://api.github.com/repos/jfsantos/keras/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jfsantos/keras/statuses/{sha}","languages_url":"https://api.github.com/repos/jfsantos/keras/languages","stargazers_url":"https://api.github.com/repos/jfsantos/keras/stargazers","contributors_url":"https://api.github.com/repos/jfsantos/keras/contributors","subscribers_url":"https://api.github.com/repos/jfsantos/keras/subscribers","subscription_url":"https://api.github.com/repos/jfsantos/keras/subscription","commits_url":"https://api.github.com/repos/jfsantos/keras/commits{/sha}","git_commits_url":"https://api.github.com/repos/jfsantos/keras/git/commits{/sha}","comments_url":"https://api.github.com/repos/jfsantos/keras/comments{/number}","issue_comment_url":"https://api.github.com/repos/jfsantos/keras/issues/comments{/number}","contents_url":"https://api.github.com/repos/jfsantos/keras/contents/{+path}","compare_url":"https://api.github.com/repos/jfsantos/keras/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jfsantos/keras/merges","archive_url":"https://api.github.com/repos/jfsantos/keras/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jfsantos/keras/downloads","issues_url":"https://api.github.com/repos/jfsantos/keras/issues{/number}","pulls_url":"https://api.github.com/repos/jfsantos/keras/pulls{/number}","milestones_url":"https://api.github.com/repos/jfsantos/keras/milestones{/number}","notifications_url":"https://api.github.com/repos/jfsantos/keras/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jfsantos/keras/labels{/name}","releases_url":"https://api.github.com/repos/jfsantos/keras/releases{/id}","created_at":"2015-04-15T16:54:03Z","updated_at":"2015-04-24T16:25:30Z","pushed_at":"2015-04-24T16:25:29Z","git_url":"git://github.com/jfsantos/keras.git","ssh_url":"git@github.com:jfsantos/keras.git","clone_url":"https://github.com/jfsantos/keras.git","svn_url":"https://github.com/jfsantos/keras","homepage":"http://keras.io/","size":306,"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":"aa57cce3ef9134badc0799ee088c1690013d0cd4","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":"Theano-based Deep Learning library","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}","created_at":"2015-03-28T00:35:42Z","updated_at":"2015-04-24T16:21:19Z","pushed_at":"2015-04-24T15:10:07Z","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":928,"stargazers_count":706,"watchers_count":706,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":78,"mirror_url":null,"open_issues_count":14,"forks":78,"open_issues":14,"watchers":706,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fchollet/keras/pulls/82"},"html":{"href":"https://github.com/fchollet/keras/pull/82"},"issue":{"href":"https://api.github.com/repos/fchollet/keras/issues/82"},"comments":{"href":"https://api.github.com/repos/fchollet/keras/issues/82/comments"},"review_comments":{"href":"https://api.github.com/repos/fchollet/keras/pulls/82/comments"},"review_comment":{"href":"https://api.github.com/repos/fchollet/keras/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fchollet/keras/pulls/82/commits"},"statuses":{"href":"https://api.github.com/repos/fchollet/keras/statuses/c65c378479d5accd4074f09f789ad8b087d240dd"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":45,"deletions":3,"changed_files":2}}