{"action":"opened","number":2497,"pull_request":{"url":"https://api.github.com/repos/numenta/nupic/pulls/2497","id":43341077,"html_url":"https://github.com/numenta/nupic/pull/2497","diff_url":"https://github.com/numenta/nupic/pull/2497.diff","patch_url":"https://github.com/numenta/nupic/pull/2497.patch","issue_url":"https://api.github.com/repos/numenta/nupic/issues/2497","number":2497,"state":"open","locked":false,"title":"Likelihood metric new","user":{"login":"ywcui1990","id":5067931,"avatar_url":"https://avatars.githubusercontent.com/u/5067931?v=3","gravatar_id":"","url":"https://api.github.com/users/ywcui1990","html_url":"https://github.com/ywcui1990","followers_url":"https://api.github.com/users/ywcui1990/followers","following_url":"https://api.github.com/users/ywcui1990/following{/other_user}","gists_url":"https://api.github.com/users/ywcui1990/gists{/gist_id}","starred_url":"https://api.github.com/users/ywcui1990/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ywcui1990/subscriptions","organizations_url":"https://api.github.com/users/ywcui1990/orgs","repos_url":"https://api.github.com/users/ywcui1990/repos","events_url":"https://api.github.com/users/ywcui1990/events{/privacy}","received_events_url":"https://api.github.com/users/ywcui1990/received_events","type":"User","site_admin":false},"body":"#2480\r\n\r\nSummary\r\n* Change predictionmetricsmanager.py to pass model results to metrics\r\n* Change addInstance and accumulate in metrics.py to accept model results as an optional parameter\r\n* Implement MetricNegLL class for negative log-likelihood error metric\r\n* Implement ClassifierInput class in opfutils, which holds bucket indices for the true input\r\n* Add ClassifierInput to model results, add bucketLikelihood to results.inferences. The negLL calculation requires the bucket index of the true input (in result.ClassifierInput) and the likelihood for that bucket (in result.bucketLikelihood)\r\n* Add logic to calculate bucketLikelihood in _handleCLAClassifierMultiStep in clamodel.py\r\n\r\n@chetan51 @subutai \r\n","created_at":"2015-08-25T21:49:21Z","updated_at":"2015-08-25T21:49:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/numenta/nupic/pulls/2497/commits","review_comments_url":"https://api.github.com/repos/numenta/nupic/pulls/2497/comments","review_comment_url":"https://api.github.com/repos/numenta/nupic/pulls/comments{/number}","comments_url":"https://api.github.com/repos/numenta/nupic/issues/2497/comments","statuses_url":"https://api.github.com/repos/numenta/nupic/statuses/189cef7d6f498d3b3066763e56875df09102705c","head":{"label":"ywcui1990:likelihood_metric_new","ref":"likelihood_metric_new","sha":"189cef7d6f498d3b3066763e56875df09102705c","user":{"login":"ywcui1990","id":5067931,"avatar_url":"https://avatars.githubusercontent.com/u/5067931?v=3","gravatar_id":"","url":"https://api.github.com/users/ywcui1990","html_url":"https://github.com/ywcui1990","followers_url":"https://api.github.com/users/ywcui1990/followers","following_url":"https://api.github.com/users/ywcui1990/following{/other_user}","gists_url":"https://api.github.com/users/ywcui1990/gists{/gist_id}","starred_url":"https://api.github.com/users/ywcui1990/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ywcui1990/subscriptions","organizations_url":"https://api.github.com/users/ywcui1990/orgs","repos_url":"https://api.github.com/users/ywcui1990/repos","events_url":"https://api.github.com/users/ywcui1990/events{/privacy}","received_events_url":"https://api.github.com/users/ywcui1990/received_events","type":"User","site_admin":false},"repo":{"id":37498749,"name":"nupic","full_name":"ywcui1990/nupic","owner":{"login":"ywcui1990","id":5067931,"avatar_url":"https://avatars.githubusercontent.com/u/5067931?v=3","gravatar_id":"","url":"https://api.github.com/users/ywcui1990","html_url":"https://github.com/ywcui1990","followers_url":"https://api.github.com/users/ywcui1990/followers","following_url":"https://api.github.com/users/ywcui1990/following{/other_user}","gists_url":"https://api.github.com/users/ywcui1990/gists{/gist_id}","starred_url":"https://api.github.com/users/ywcui1990/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ywcui1990/subscriptions","organizations_url":"https://api.github.com/users/ywcui1990/orgs","repos_url":"https://api.github.com/users/ywcui1990/repos","events_url":"https://api.github.com/users/ywcui1990/events{/privacy}","received_events_url":"https://api.github.com/users/ywcui1990/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ywcui1990/nupic","description":"Numenta Platform for Intelligent Computing: a brain-inspired machine intelligence platform, and biologically accurate neural network based on cortical learning algorithms.","fork":true,"url":"https://api.github.com/repos/ywcui1990/nupic","forks_url":"https://api.github.com/repos/ywcui1990/nupic/forks","keys_url":"https://api.github.com/repos/ywcui1990/nupic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ywcui1990/nupic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ywcui1990/nupic/teams","hooks_url":"https://api.github.com/repos/ywcui1990/nupic/hooks","issue_events_url":"https://api.github.com/repos/ywcui1990/nupic/issues/events{/number}","events_url":"https://api.github.com/repos/ywcui1990/nupic/events","assignees_url":"https://api.github.com/repos/ywcui1990/nupic/assignees{/user}","branches_url":"https://api.github.com/repos/ywcui1990/nupic/branches{/branch}","tags_url":"https://api.github.com/repos/ywcui1990/nupic/tags","blobs_url":"https://api.github.com/repos/ywcui1990/nupic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ywcui1990/nupic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ywcui1990/nupic/git/refs{/sha}","trees_url":"https://api.github.com/repos/ywcui1990/nupic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ywcui1990/nupic/statuses/{sha}","languages_url":"https://api.github.com/repos/ywcui1990/nupic/languages","stargazers_url":"https://api.github.com/repos/ywcui1990/nupic/stargazers","contributors_url":"https://api.github.com/repos/ywcui1990/nupic/contributors","subscribers_url":"https://api.github.com/repos/ywcui1990/nupic/subscribers","subscription_url":"https://api.github.com/repos/ywcui1990/nupic/subscription","commits_url":"https://api.github.com/repos/ywcui1990/nupic/commits{/sha}","git_commits_url":"https://api.github.com/repos/ywcui1990/nupic/git/commits{/sha}","comments_url":"https://api.github.com/repos/ywcui1990/nupic/comments{/number}","issue_comment_url":"https://api.github.com/repos/ywcui1990/nupic/issues/comments{/number}","contents_url":"https://api.github.com/repos/ywcui1990/nupic/contents/{+path}","compare_url":"https://api.github.com/repos/ywcui1990/nupic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ywcui1990/nupic/merges","archive_url":"https://api.github.com/repos/ywcui1990/nupic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ywcui1990/nupic/downloads","issues_url":"https://api.github.com/repos/ywcui1990/nupic/issues{/number}","pulls_url":"https://api.github.com/repos/ywcui1990/nupic/pulls{/number}","milestones_url":"https://api.github.com/repos/ywcui1990/nupic/milestones{/number}","notifications_url":"https://api.github.com/repos/ywcui1990/nupic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ywcui1990/nupic/labels{/name}","releases_url":"https://api.github.com/repos/ywcui1990/nupic/releases{/id}","created_at":"2015-06-16T00:31:24Z","updated_at":"2015-06-16T00:31:32Z","pushed_at":"2015-08-25T21:42:10Z","git_url":"git://github.com/ywcui1990/nupic.git","ssh_url":"git@github.com:ywcui1990/nupic.git","clone_url":"https://github.com/ywcui1990/nupic.git","svn_url":"https://github.com/ywcui1990/nupic","homepage":"http://numenta.org/","size":141459,"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":"numenta:master","ref":"master","sha":"8b300a82ccb985f2e2fadd9e66a715afbdfbed23","user":{"login":"numenta","id":1039191,"avatar_url":"https://avatars.githubusercontent.com/u/1039191?v=3","gravatar_id":"","url":"https://api.github.com/users/numenta","html_url":"https://github.com/numenta","followers_url":"https://api.github.com/users/numenta/followers","following_url":"https://api.github.com/users/numenta/following{/other_user}","gists_url":"https://api.github.com/users/numenta/gists{/gist_id}","starred_url":"https://api.github.com/users/numenta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/numenta/subscriptions","organizations_url":"https://api.github.com/users/numenta/orgs","repos_url":"https://api.github.com/users/numenta/repos","events_url":"https://api.github.com/users/numenta/events{/privacy}","received_events_url":"https://api.github.com/users/numenta/received_events","type":"Organization","site_admin":false},"repo":{"id":9252533,"name":"nupic","full_name":"numenta/nupic","owner":{"login":"numenta","id":1039191,"avatar_url":"https://avatars.githubusercontent.com/u/1039191?v=3","gravatar_id":"","url":"https://api.github.com/users/numenta","html_url":"https://github.com/numenta","followers_url":"https://api.github.com/users/numenta/followers","following_url":"https://api.github.com/users/numenta/following{/other_user}","gists_url":"https://api.github.com/users/numenta/gists{/gist_id}","starred_url":"https://api.github.com/users/numenta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/numenta/subscriptions","organizations_url":"https://api.github.com/users/numenta/orgs","repos_url":"https://api.github.com/users/numenta/repos","events_url":"https://api.github.com/users/numenta/events{/privacy}","received_events_url":"https://api.github.com/users/numenta/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/numenta/nupic","description":"Numenta Platform for Intelligent Computing: a brain-inspired machine intelligence platform, and biologically accurate neural network based on cortical learning algorithms.","fork":false,"url":"https://api.github.com/repos/numenta/nupic","forks_url":"https://api.github.com/repos/numenta/nupic/forks","keys_url":"https://api.github.com/repos/numenta/nupic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/numenta/nupic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/numenta/nupic/teams","hooks_url":"https://api.github.com/repos/numenta/nupic/hooks","issue_events_url":"https://api.github.com/repos/numenta/nupic/issues/events{/number}","events_url":"https://api.github.com/repos/numenta/nupic/events","assignees_url":"https://api.github.com/repos/numenta/nupic/assignees{/user}","branches_url":"https://api.github.com/repos/numenta/nupic/branches{/branch}","tags_url":"https://api.github.com/repos/numenta/nupic/tags","blobs_url":"https://api.github.com/repos/numenta/nupic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/numenta/nupic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/numenta/nupic/git/refs{/sha}","trees_url":"https://api.github.com/repos/numenta/nupic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/numenta/nupic/statuses/{sha}","languages_url":"https://api.github.com/repos/numenta/nupic/languages","stargazers_url":"https://api.github.com/repos/numenta/nupic/stargazers","contributors_url":"https://api.github.com/repos/numenta/nupic/contributors","subscribers_url":"https://api.github.com/repos/numenta/nupic/subscribers","subscription_url":"https://api.github.com/repos/numenta/nupic/subscription","commits_url":"https://api.github.com/repos/numenta/nupic/commits{/sha}","git_commits_url":"https://api.github.com/repos/numenta/nupic/git/commits{/sha}","comments_url":"https://api.github.com/repos/numenta/nupic/comments{/number}","issue_comment_url":"https://api.github.com/repos/numenta/nupic/issues/comments{/number}","contents_url":"https://api.github.com/repos/numenta/nupic/contents/{+path}","compare_url":"https://api.github.com/repos/numenta/nupic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/numenta/nupic/merges","archive_url":"https://api.github.com/repos/numenta/nupic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/numenta/nupic/downloads","issues_url":"https://api.github.com/repos/numenta/nupic/issues{/number}","pulls_url":"https://api.github.com/repos/numenta/nupic/pulls{/number}","milestones_url":"https://api.github.com/repos/numenta/nupic/milestones{/number}","notifications_url":"https://api.github.com/repos/numenta/nupic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/numenta/nupic/labels{/name}","releases_url":"https://api.github.com/repos/numenta/nupic/releases{/id}","created_at":"2013-04-05T23:14:27Z","updated_at":"2015-08-25T03:04:40Z","pushed_at":"2015-08-25T21:34:06Z","git_url":"git://github.com/numenta/nupic.git","ssh_url":"git@github.com:numenta/nupic.git","clone_url":"https://github.com/numenta/nupic.git","svn_url":"https://github.com/numenta/nupic","homepage":"http://numenta.org/","size":310795,"stargazers_count":3359,"watchers_count":3359,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":907,"mirror_url":null,"open_issues_count":418,"forks":907,"open_issues":418,"watchers":3359,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/numenta/nupic/pulls/2497"},"html":{"href":"https://github.com/numenta/nupic/pull/2497"},"issue":{"href":"https://api.github.com/repos/numenta/nupic/issues/2497"},"comments":{"href":"https://api.github.com/repos/numenta/nupic/issues/2497/comments"},"review_comments":{"href":"https://api.github.com/repos/numenta/nupic/pulls/2497/comments"},"review_comment":{"href":"https://api.github.com/repos/numenta/nupic/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/numenta/nupic/pulls/2497/commits"},"statuses":{"href":"https://api.github.com/repos/numenta/nupic/statuses/189cef7d6f498d3b3066763e56875df09102705c"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":6,"additions":150,"deletions":31,"changed_files":4}}