{"action":"closed","number":758,"pull_request":{"url":"https://api.github.com/repos/torch/nn/pulls/758","id":65909074,"html_url":"https://github.com/torch/nn/pull/758","diff_url":"https://github.com/torch/nn/pull/758.diff","patch_url":"https://github.com/torch/nn/pull/758.patch","issue_url":"https://api.github.com/repos/torch/nn/issues/758","number":758,"state":"closed","locked":false,"title":"Added Softened version of SoftMax","user":{"login":"kmul00","id":6665222,"avatar_url":"https://avatars.githubusercontent.com/u/6665222?v=3","gravatar_id":"","url":"https://api.github.com/users/kmul00","html_url":"https://github.com/kmul00","followers_url":"https://api.github.com/users/kmul00/followers","following_url":"https://api.github.com/users/kmul00/following{/other_user}","gists_url":"https://api.github.com/users/kmul00/gists{/gist_id}","starred_url":"https://api.github.com/users/kmul00/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmul00/subscriptions","organizations_url":"https://api.github.com/users/kmul00/orgs","repos_url":"https://api.github.com/users/kmul00/repos","events_url":"https://api.github.com/users/kmul00/events{/privacy}","received_events_url":"https://api.github.com/users/kmul00/received_events","type":"User","site_admin":false},"body":"Instead of traditional `SoftMax()` which computes `f_i(x) = exp(x_i) / sum_j exp(x_j)`, this module `SoftenedSoftMax()` (couldn't come up with a better name, suggestions are welcome) computes :\r\n`f_i(x) = exp(x_i / T) / sum_j exp(x_j / T)`, \r\n\r\nwhere `T ( > 0 )` is the *Temperature* applied to *soften* the outputs.\r\n\r\nIf `T = 1`, it is the same as `SoftMax()`.\r\n\r\nThis helps in generating *soft targets* and can be used for knowledge distillation, as explained by Hinton *et al.* over [here](http://www.ttic.edu/dl/dark14.pdf).\r\n\r\nnew file:   SoftenedSoftMax.lua\r\nmodified:   init.lua\r\nmodified:   test.lua","created_at":"2016-04-10T12:26:43Z","updated_at":"2016-04-28T05:24:25Z","closed_at":"2016-04-28T05:24:25Z","merged_at":null,"merge_commit_sha":"75f5af113fed805a8c66cd005cab9ab8cf63342c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/torch/nn/pulls/758/commits","review_comments_url":"https://api.github.com/repos/torch/nn/pulls/758/comments","review_comment_url":"https://api.github.com/repos/torch/nn/pulls/comments{/number}","comments_url":"https://api.github.com/repos/torch/nn/issues/758/comments","statuses_url":"https://api.github.com/repos/torch/nn/statuses/abc3930182b5ea0731e41495bd117e89af6ac5dc","head":{"label":"kmul00:softened","ref":"softened","sha":"abc3930182b5ea0731e41495bd117e89af6ac5dc","user":{"login":"kmul00","id":6665222,"avatar_url":"https://avatars.githubusercontent.com/u/6665222?v=3","gravatar_id":"","url":"https://api.github.com/users/kmul00","html_url":"https://github.com/kmul00","followers_url":"https://api.github.com/users/kmul00/followers","following_url":"https://api.github.com/users/kmul00/following{/other_user}","gists_url":"https://api.github.com/users/kmul00/gists{/gist_id}","starred_url":"https://api.github.com/users/kmul00/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmul00/subscriptions","organizations_url":"https://api.github.com/users/kmul00/orgs","repos_url":"https://api.github.com/users/kmul00/repos","events_url":"https://api.github.com/users/kmul00/events{/privacy}","received_events_url":"https://api.github.com/users/kmul00/received_events","type":"User","site_admin":false},"repo":{"id":54783494,"name":"nn","full_name":"kmul00/nn","owner":{"login":"kmul00","id":6665222,"avatar_url":"https://avatars.githubusercontent.com/u/6665222?v=3","gravatar_id":"","url":"https://api.github.com/users/kmul00","html_url":"https://github.com/kmul00","followers_url":"https://api.github.com/users/kmul00/followers","following_url":"https://api.github.com/users/kmul00/following{/other_user}","gists_url":"https://api.github.com/users/kmul00/gists{/gist_id}","starred_url":"https://api.github.com/users/kmul00/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmul00/subscriptions","organizations_url":"https://api.github.com/users/kmul00/orgs","repos_url":"https://api.github.com/users/kmul00/repos","events_url":"https://api.github.com/users/kmul00/events{/privacy}","received_events_url":"https://api.github.com/users/kmul00/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kmul00/nn","description":"","fork":true,"url":"https://api.github.com/repos/kmul00/nn","forks_url":"https://api.github.com/repos/kmul00/nn/forks","keys_url":"https://api.github.com/repos/kmul00/nn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kmul00/nn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kmul00/nn/teams","hooks_url":"https://api.github.com/repos/kmul00/nn/hooks","issue_events_url":"https://api.github.com/repos/kmul00/nn/issues/events{/number}","events_url":"https://api.github.com/repos/kmul00/nn/events","assignees_url":"https://api.github.com/repos/kmul00/nn/assignees{/user}","branches_url":"https://api.github.com/repos/kmul00/nn/branches{/branch}","tags_url":"https://api.github.com/repos/kmul00/nn/tags","blobs_url":"https://api.github.com/repos/kmul00/nn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kmul00/nn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kmul00/nn/git/refs{/sha}","trees_url":"https://api.github.com/repos/kmul00/nn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kmul00/nn/statuses/{sha}","languages_url":"https://api.github.com/repos/kmul00/nn/languages","stargazers_url":"https://api.github.com/repos/kmul00/nn/stargazers","contributors_url":"https://api.github.com/repos/kmul00/nn/contributors","subscribers_url":"https://api.github.com/repos/kmul00/nn/subscribers","subscription_url":"https://api.github.com/repos/kmul00/nn/subscription","commits_url":"https://api.github.com/repos/kmul00/nn/commits{/sha}","git_commits_url":"https://api.github.com/repos/kmul00/nn/git/commits{/sha}","comments_url":"https://api.github.com/repos/kmul00/nn/comments{/number}","issue_comment_url":"https://api.github.com/repos/kmul00/nn/issues/comments{/number}","contents_url":"https://api.github.com/repos/kmul00/nn/contents/{+path}","compare_url":"https://api.github.com/repos/kmul00/nn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kmul00/nn/merges","archive_url":"https://api.github.com/repos/kmul00/nn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kmul00/nn/downloads","issues_url":"https://api.github.com/repos/kmul00/nn/issues{/number}","pulls_url":"https://api.github.com/repos/kmul00/nn/pulls{/number}","milestones_url":"https://api.github.com/repos/kmul00/nn/milestones{/number}","notifications_url":"https://api.github.com/repos/kmul00/nn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kmul00/nn/labels{/name}","releases_url":"https://api.github.com/repos/kmul00/nn/releases{/id}","deployments_url":"https://api.github.com/repos/kmul00/nn/deployments","created_at":"2016-03-26T14:46:40Z","updated_at":"2016-03-26T14:46:41Z","pushed_at":"2016-04-10T12:10:01Z","git_url":"git://github.com/kmul00/nn.git","ssh_url":"git@github.com:kmul00/nn.git","clone_url":"https://github.com/kmul00/nn.git","svn_url":"https://github.com/kmul00/nn","homepage":"","size":2401,"stargazers_count":0,"watchers_count":0,"language":"Lua","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":"torch:master","ref":"master","sha":"47294c2a5ef4e3071278b2018c828f62da364bd7","user":{"login":"torch","id":4978924,"avatar_url":"https://avatars.githubusercontent.com/u/4978924?v=3","gravatar_id":"","url":"https://api.github.com/users/torch","html_url":"https://github.com/torch","followers_url":"https://api.github.com/users/torch/followers","following_url":"https://api.github.com/users/torch/following{/other_user}","gists_url":"https://api.github.com/users/torch/gists{/gist_id}","starred_url":"https://api.github.com/users/torch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/torch/subscriptions","organizations_url":"https://api.github.com/users/torch/orgs","repos_url":"https://api.github.com/users/torch/repos","events_url":"https://api.github.com/users/torch/events{/privacy}","received_events_url":"https://api.github.com/users/torch/received_events","type":"Organization","site_admin":false},"repo":{"id":13677447,"name":"nn","full_name":"torch/nn","owner":{"login":"torch","id":4978924,"avatar_url":"https://avatars.githubusercontent.com/u/4978924?v=3","gravatar_id":"","url":"https://api.github.com/users/torch","html_url":"https://github.com/torch","followers_url":"https://api.github.com/users/torch/followers","following_url":"https://api.github.com/users/torch/following{/other_user}","gists_url":"https://api.github.com/users/torch/gists{/gist_id}","starred_url":"https://api.github.com/users/torch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/torch/subscriptions","organizations_url":"https://api.github.com/users/torch/orgs","repos_url":"https://api.github.com/users/torch/repos","events_url":"https://api.github.com/users/torch/events{/privacy}","received_events_url":"https://api.github.com/users/torch/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/torch/nn","description":"","fork":false,"url":"https://api.github.com/repos/torch/nn","forks_url":"https://api.github.com/repos/torch/nn/forks","keys_url":"https://api.github.com/repos/torch/nn/keys{/key_id}","collaborators_url":"https://api.github.com/repos/torch/nn/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/torch/nn/teams","hooks_url":"https://api.github.com/repos/torch/nn/hooks","issue_events_url":"https://api.github.com/repos/torch/nn/issues/events{/number}","events_url":"https://api.github.com/repos/torch/nn/events","assignees_url":"https://api.github.com/repos/torch/nn/assignees{/user}","branches_url":"https://api.github.com/repos/torch/nn/branches{/branch}","tags_url":"https://api.github.com/repos/torch/nn/tags","blobs_url":"https://api.github.com/repos/torch/nn/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/torch/nn/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/torch/nn/git/refs{/sha}","trees_url":"https://api.github.com/repos/torch/nn/git/trees{/sha}","statuses_url":"https://api.github.com/repos/torch/nn/statuses/{sha}","languages_url":"https://api.github.com/repos/torch/nn/languages","stargazers_url":"https://api.github.com/repos/torch/nn/stargazers","contributors_url":"https://api.github.com/repos/torch/nn/contributors","subscribers_url":"https://api.github.com/repos/torch/nn/subscribers","subscription_url":"https://api.github.com/repos/torch/nn/subscription","commits_url":"https://api.github.com/repos/torch/nn/commits{/sha}","git_commits_url":"https://api.github.com/repos/torch/nn/git/commits{/sha}","comments_url":"https://api.github.com/repos/torch/nn/comments{/number}","issue_comment_url":"https://api.github.com/repos/torch/nn/issues/comments{/number}","contents_url":"https://api.github.com/repos/torch/nn/contents/{+path}","compare_url":"https://api.github.com/repos/torch/nn/compare/{base}...{head}","merges_url":"https://api.github.com/repos/torch/nn/merges","archive_url":"https://api.github.com/repos/torch/nn/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/torch/nn/downloads","issues_url":"https://api.github.com/repos/torch/nn/issues{/number}","pulls_url":"https://api.github.com/repos/torch/nn/pulls{/number}","milestones_url":"https://api.github.com/repos/torch/nn/milestones{/number}","notifications_url":"https://api.github.com/repos/torch/nn/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/torch/nn/labels{/name}","releases_url":"https://api.github.com/repos/torch/nn/releases{/id}","deployments_url":"https://api.github.com/repos/torch/nn/deployments","created_at":"2013-10-18T12:27:25Z","updated_at":"2016-04-26T13:58:22Z","pushed_at":"2016-04-28T05:18:49Z","git_url":"git://github.com/torch/nn.git","ssh_url":"git@github.com:torch/nn.git","clone_url":"https://github.com/torch/nn.git","svn_url":"https://github.com/torch/nn","homepage":"","size":3767,"stargazers_count":522,"watchers_count":522,"language":"Lua","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":462,"mirror_url":null,"open_issues_count":64,"forks":462,"open_issues":64,"watchers":522,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/torch/nn/pulls/758"},"html":{"href":"https://github.com/torch/nn/pull/758"},"issue":{"href":"https://api.github.com/repos/torch/nn/issues/758"},"comments":{"href":"https://api.github.com/repos/torch/nn/issues/758/comments"},"review_comments":{"href":"https://api.github.com/repos/torch/nn/pulls/758/comments"},"review_comment":{"href":"https://api.github.com/repos/torch/nn/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/torch/nn/pulls/758/commits"},"statuses":{"href":"https://api.github.com/repos/torch/nn/statuses/abc3930182b5ea0731e41495bd117e89af6ac5dc"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":2,"review_comments":0,"commits":1,"additions":57,"deletions":0,"changed_files":3}}