GitHub PullRequestReviewCommentEvent at 2014-10-08 17:49:28
Repository: nupic.research
Actor: chetan51
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/numenta/nupic.research/pulls/comments/18599523","id":18599523,"diff_hunk":"@@ -0,0 +1,105 @@\n+#!/usr/bin/env python\n+# ----------------------------------------------------------------------\n+# Numenta Platform for Intelligent Computing (NuPIC)\n+# Copyright (C) 2014, Numenta, Inc.  Unless you have an agreement\n+# with Numenta, Inc., for a sepaself.rate license for this software code, the\n+# following terms and conditions apply:\n+#\n+# This program is free software: you can redistribute it and/or modify\n+# it under the terms of the GNU General Public License version 3 as\n+# published by the Free Software Foundation.\n+#\n+# This program is distributed in the hope that it will be useful,\n+# but WITHOUT ANY WARRANTY; without even the implied warranty of\n+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.\n+# See the GNU General Public License for more details.\n+#\n+# You should have received a copy of the GNU General Public License\n+# along with this program.  If not, see http://www.gnu.org/licenses.\n+#\n+# http://numenta.org/licenses/\n+# ----------------------------------------------------------------------\n+\n+import unittest\n+import numpy\n+from nupic.research.spatial_pooler import SpatialPooler\n+from sensorimotor.spatial_pooler_monitor_mixin import (\n+  SpatialPoolerMonitorMixin)\n+class MonitoredSpatialPooler(SpatialPoolerMonitorMixin, SpatialPooler): pass\n+\n+class SpatialPoolerMonitorMixinTest(unittest.TestCase):\n+\n+  VERBOSITY = 2\n+\n+\n+  def setUp(self):\n+    # Initialize the spatial pooler\n+    self.sp = MonitoredSpatialPooler(\n+                       inputDimensions=(15,),","path":"sensorimotor/tests/integration/spatial_pooler_monitor_mixin_test.py","position":38,"original_position":38,"commit_id":"be2a5fdaa5c19ff7d2fa7f7d63ab49e720b03bc7","original_commit_id":"be2a5fdaa5c19ff7d2fa7f7d63ab49e720b03bc7","user":{"login":"chetan51","id":310282,"avatar_url":"https://avatars.githubusercontent.com/u/310282?v=2","gravatar_id":"","url":"https://api.github.com/users/chetan51","html_url":"https://github.com/chetan51","followers_url":"https://api.github.com/users/chetan51/followers","following_url":"https://api.github.com/users/chetan51/following{/other_user}","gists_url":"https://api.github.com/users/chetan51/gists{/gist_id}","starred_url":"https://api.github.com/users/chetan51/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chetan51/subscriptions","organizations_url":"https://api.github.com/users/chetan51/orgs","repos_url":"https://api.github.com/users/chetan51/repos","events_url":"https://api.github.com/users/chetan51/events{/privacy}","received_events_url":"https://api.github.com/users/chetan51/received_events","type":"User","site_admin":false},"body":"Alight with two spaces from the start of `MonitoredSpatialPooler`","created_at":"2014-10-08T17:49:28Z","updated_at":"2014-10-08T17:49:28Z","html_url":"https://github.com/numenta/nupic.research/pull/72#discussion_r18599523","pull_request_url":"https://api.github.com/repos/numenta/nupic.research/pulls/72","_links":{"self":{"href":"https://api.github.com/repos/numenta/nupic.research/pulls/comments/18599523"},"html":{"href":"https://github.com/numenta/nupic.research/pull/72#discussion_r18599523"},"pull_request":{"href":"https://api.github.com/repos/numenta/nupic.research/pulls/72"}}},"pull_request":{"url":"https://api.github.com/repos/numenta/nupic.research/pulls/72","id":22308355,"html_url":"https://github.com/numenta/nupic.research/pull/72","diff_url":"https://github.com/numenta/nupic.research/pull/72.diff","patch_url":"https://github.com/numenta/nupic.research/pull/72.patch","issue_url":"https://api.github.com/repos/numenta/nupic.research/issues/72","number":72,"state":"open","locked":false,"title":"Create SP Mixin #64","user":{"login":"ywcui1990","id":5067931,"avatar_url":"https://avatars.githubusercontent.com/u/5067931?v=2","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":"@chetan51 @subutai \r\n\r\nI have created a mixin monitor class for the spatial pooler. Currently the following metrics are collected\r\n1. Indices of active column\r\n2. Active duty cycle of each column\r\n3. Total number of connections.\r\n\r\nLet me know if more metrics are desired to be collected.\r\n\r\n","created_at":"2014-10-06T19:39:04Z","updated_at":"2014-10-08T17:49:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6c36a2da0e9e41cdc4f01859331584c68f854893","assignee":{"login":"ywcui1990","id":5067931,"avatar_url":"https://avatars.githubusercontent.com/u/5067931?v=2","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},"milestone":null,"commits_url":"https://api.github.com/repos/numenta/nupic.research/pulls/72/commits","review_comments_url":"https://api.github.com/repos/numenta/nupic.research/pulls/72/comments","review_comment_url":"https://api.github.com/repos/numenta/nupic.research/pulls/comments/{number}","comments_url":"https://api.github.com/repos/numenta/nupic.research/issues/72/comments","statuses_url":"https://api.github.com/repos/numenta/nupic.research/statuses/be2a5fdaa5c19ff7d2fa7f7d63ab49e720b03bc7","head":{"label":"ywcui1990:master","ref":"master","sha":"be2a5fdaa5c19ff7d2fa7f7d63ab49e720b03bc7","user":{"login":"ywcui1990","id":5067931,"avatar_url":"https://avatars.githubusercontent.com/u/5067931?v=2","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":24243024,"name":"nupic.research","full_name":"ywcui1990/nupic.research","owner":{"login":"ywcui1990","id":5067931,"avatar_url":"https://avatars.githubusercontent.com/u/5067931?v=2","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.research","description":"Experimental algorithms. Unsupported.","fork":true,"url":"https://api.github.com/repos/ywcui1990/nupic.research","forks_url":"https://api.github.com/repos/ywcui1990/nupic.research/forks","keys_url":"https://api.github.com/repos/ywcui1990/nupic.research/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ywcui1990/nupic.research/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ywcui1990/nupic.research/teams","hooks_url":"https://api.github.com/repos/ywcui1990/nupic.research/hooks","issue_events_url":"https://api.github.com/repos/ywcui1990/nupic.research/issues/events{/number}","events_url":"https://api.github.com/repos/ywcui1990/nupic.research/events","assignees_url":"https://api.github.com/repos/ywcui1990/nupic.research/assignees{/user}","branches_url":"https://api.github.com/repos/ywcui1990/nupic.research/branches{/branch}","tags_url":"https://api.github.com/repos/ywcui1990/nupic.research/tags","blobs_url":"https://api.github.com/repos/ywcui1990/nupic.research/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ywcui1990/nupic.research/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ywcui1990/nupic.research/git/refs{/sha}","trees_url":"https://api.github.com/repos/ywcui1990/nupic.research/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ywcui1990/nupic.research/statuses/{sha}","languages_url":"https://api.github.com/repos/ywcui1990/nupic.research/languages","stargazers_url":"https://api.github.com/repos/ywcui1990/nupic.research/stargazers","contributors_url":"https://api.github.com/repos/ywcui1990/nupic.research/contributors","subscribers_url":"https://api.github.com/repos/ywcui1990/nupic.research/subscribers","subscription_url":"https://api.github.com/repos/ywcui1990/nupic.research/subscription","commits_url":"https://api.github.com/repos/ywcui1990/nupic.research/commits{/sha}","git_commits_url":"https://api.github.com/repos/ywcui1990/nupic.research/git/commits{/sha}","comments_url":"https://api.github.com/repos/ywcui1990/nupic.research/comments{/number}","issue_comment_url":"https://api.github.com/repos/ywcui1990/nupic.research/issues/comments/{number}","contents_url":"https://api.github.com/repos/ywcui1990/nupic.research/contents/{+path}","compare_url":"https://api.github.com/repos/ywcui1990/nupic.research/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ywcui1990/nupic.research/merges","archive_url":"https://api.github.com/repos/ywcui1990/nupic.research/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ywcui1990/nupic.research/downloads","issues_url":"https://api.github.com/repos/ywcui1990/nupic.research/issues{/number}","pulls_url":"https://api.github.com/repos/ywcui1990/nupic.research/pulls{/number}","milestones_url":"https://api.github.com/repos/ywcui1990/nupic.research/milestones{/number}","notifications_url":"https://api.github.com/repos/ywcui1990/nupic.research/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ywcui1990/nupic.research/labels{/name}","releases_url":"https://api.github.com/repos/ywcui1990/nupic.research/releases{/id}","created_at":"2014-09-19T19:40:54Z","updated_at":"2014-09-25T13:58:50Z","pushed_at":"2014-10-08T14:23:20Z","git_url":"git://github.com/ywcui1990/nupic.research.git","ssh_url":"git@github.com:ywcui1990/nupic.research.git","clone_url":"https://github.com/ywcui1990/nupic.research.git","svn_url":"https://github.com/ywcui1990/nupic.research","homepage":null,"size":261,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"715f4246fa75984355228f45eb53d871b580a9e9","user":{"login":"numenta","id":1039191,"avatar_url":"https://avatars.githubusercontent.com/u/1039191?v=2","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":23565243,"name":"nupic.research","full_name":"numenta/nupic.research","owner":{"login":"numenta","id":1039191,"avatar_url":"https://avatars.githubusercontent.com/u/1039191?v=2","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.research","description":"Experimental algorithms. Unsupported.","fork":false,"url":"https://api.github.com/repos/numenta/nupic.research","forks_url":"https://api.github.com/repos/numenta/nupic.research/forks","keys_url":"https://api.github.com/repos/numenta/nupic.research/keys{/key_id}","collaborators_url":"https://api.github.com/repos/numenta/nupic.research/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/numenta/nupic.research/teams","hooks_url":"https://api.github.com/repos/numenta/nupic.research/hooks","issue_events_url":"https://api.github.com/repos/numenta/nupic.research/issues/events{/number}","events_url":"https://api.github.com/repos/numenta/nupic.research/events","assignees_url":"https://api.github.com/repos/numenta/nupic.research/assignees{/user}","branches_url":"https://api.github.com/repos/numenta/nupic.research/branches{/branch}","tags_url":"https://api.github.com/repos/numenta/nupic.research/tags","blobs_url":"https://api.github.com/repos/numenta/nupic.research/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/numenta/nupic.research/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/numenta/nupic.research/git/refs{/sha}","trees_url":"https://api.github.com/repos/numenta/nupic.research/git/trees{/sha}","statuses_url":"https://api.github.com/repos/numenta/nupic.research/statuses/{sha}","languages_url":"https://api.github.com/repos/numenta/nupic.research/languages","stargazers_url":"https://api.github.com/repos/numenta/nupic.research/stargazers","contributors_url":"https://api.github.com/repos/numenta/nupic.research/contributors","subscribers_url":"https://api.github.com/repos/numenta/nupic.research/subscribers","subscription_url":"https://api.github.com/repos/numenta/nupic.research/subscription","commits_url":"https://api.github.com/repos/numenta/nupic.research/commits{/sha}","git_commits_url":"https://api.github.com/repos/numenta/nupic.research/git/commits{/sha}","comments_url":"https://api.github.com/repos/numenta/nupic.research/comments{/number}","issue_comment_url":"https://api.github.com/repos/numenta/nupic.research/issues/comments/{number}","contents_url":"https://api.github.com/repos/numenta/nupic.research/contents/{+path}","compare_url":"https://api.github.com/repos/numenta/nupic.research/compare/{base}...{head}","merges_url":"https://api.github.com/repos/numenta/nupic.research/merges","archive_url":"https://api.github.com/repos/numenta/nupic.research/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/numenta/nupic.research/downloads","issues_url":"https://api.github.com/repos/numenta/nupic.research/issues{/number}","pulls_url":"https://api.github.com/repos/numenta/nupic.research/pulls{/number}","milestones_url":"https://api.github.com/repos/numenta/nupic.research/milestones{/number}","notifications_url":"https://api.github.com/repos/numenta/nupic.research/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/numenta/nupic.research/labels{/name}","releases_url":"https://api.github.com/repos/numenta/nupic.research/releases{/id}","created_at":"2014-09-02T04:42:30Z","updated_at":"2014-10-04T09:41:53Z","pushed_at":"2014-10-08T17:25:09Z","git_url":"git://github.com/numenta/nupic.research.git","ssh_url":"git@github.com:numenta/nupic.research.git","clone_url":"https://github.com/numenta/nupic.research.git","svn_url":"https://github.com/numenta/nupic.research","homepage":null,"size":1477,"stargazers_count":12,"watchers_count":12,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":8,"mirror_url":null,"open_issues_count":14,"forks":8,"open_issues":14,"watchers":12,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/numenta/nupic.research/pulls/72"},"html":{"href":"https://github.com/numenta/nupic.research/pull/72"},"issue":{"href":"https://api.github.com/repos/numenta/nupic.research/issues/72"},"comments":{"href":"https://api.github.com/repos/numenta/nupic.research/issues/72/comments"},"review_comments":{"href":"https://api.github.com/repos/numenta/nupic.research/pulls/72/comments"},"review_comment":{"href":"https://api.github.com/repos/numenta/nupic.research/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/numenta/nupic.research/pulls/72/commits"},"statuses":{"href":"https://api.github.com/repos/numenta/nupic.research/statuses/be2a5fdaa5c19ff7d2fa7f7d63ab49e720b03bc7"}}}}