{"action":"created","issue":{"url":"https://api.github.com/repos/numenta/nupic/issues/1903","labels_url":"https://api.github.com/repos/numenta/nupic/issues/1903/labels{/name}","comments_url":"https://api.github.com/repos/numenta/nupic/issues/1903/comments","events_url":"https://api.github.com/repos/numenta/nupic/issues/1903/events","html_url":"https://github.com/numenta/nupic/issues/1903","id":59795242,"number":1903,"title":"Re-use Connections class in SpatialPooler class","user":{"login":"david-ragazzi","id":3386273,"avatar_url":"https://avatars.githubusercontent.com/u/3386273?v=3","gravatar_id":"","url":"https://api.github.com/users/david-ragazzi","html_url":"https://github.com/david-ragazzi","followers_url":"https://api.github.com/users/david-ragazzi/followers","following_url":"https://api.github.com/users/david-ragazzi/following{/other_user}","gists_url":"https://api.github.com/users/david-ragazzi/gists{/gist_id}","starred_url":"https://api.github.com/users/david-ragazzi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/david-ragazzi/subscriptions","organizations_url":"https://api.github.com/users/david-ragazzi/orgs","repos_url":"https://api.github.com/users/david-ragazzi/repos","events_url":"https://api.github.com/users/david-ragazzi/events{/privacy}","received_events_url":"https://api.github.com/users/david-ragazzi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/numenta/nupic/labels/subject:algorithms","name":"subject:algorithms","color":"c7def8"},{"url":"https://api.github.com/repos/numenta/nupic/labels/type:enhancement","name":"type:enhancement","color":"006b75"}],"state":"open","locked":false,"assignee":{"login":"david-ragazzi","id":3386273,"avatar_url":"https://avatars.githubusercontent.com/u/3386273?v=3","gravatar_id":"","url":"https://api.github.com/users/david-ragazzi","html_url":"https://github.com/david-ragazzi","followers_url":"https://api.github.com/users/david-ragazzi/followers","following_url":"https://api.github.com/users/david-ragazzi/following{/other_user}","gists_url":"https://api.github.com/users/david-ragazzi/gists{/gist_id}","starred_url":"https://api.github.com/users/david-ragazzi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/david-ragazzi/subscriptions","organizations_url":"https://api.github.com/users/david-ragazzi/orgs","repos_url":"https://api.github.com/users/david-ragazzi/repos","events_url":"https://api.github.com/users/david-ragazzi/events{/privacy}","received_events_url":"https://api.github.com/users/david-ragazzi/received_events","type":"User","site_admin":false},"milestone":null,"comments":5,"created_at":"2015-03-04T13:09:37Z","updated_at":"2015-05-07T21:53:37Z","closed_at":null,"body":"In order to simplify/standardize current spatial and temporal implementations and ease future changes, I think it's very insteresting we implement Connections class (brought by @chetan51 in the new TemporalMemory) in SpatialPooler class. This already was done nicely in htm.java by @cogmission and it seems that works fine. We would move such class into a `connections.py` file and make TemporalMemory and SpatialPooler import it.\r\n\r\nConnections class in Java:\r\nhttps://github.com/numenta/htm.java/blob/master/src/main/java/org/numenta/nupic/Connections.java\r\n\r\nSpatialPooler class in Java re-using connections:\r\nhttps://github.com/numenta/htm.java/blob/master/src/main/java/org/numenta/nupic/research/SpatialPooler.java#L73\r\n\r\nTemporalMemory class in Java re-using connections:\r\nhttps://github.com/numenta/htm.java/blob/master/src/main/java/org/numenta/nupic/research/TemporalMemory.java#L67\r\n\r\n@chetan51 @cogmission "},"comment":{"url":"https://api.github.com/repos/numenta/nupic/issues/comments/100031246","html_url":"https://github.com/numenta/nupic/issues/1903#issuecomment-100031246","issue_url":"https://api.github.com/repos/numenta/nupic/issues/1903","id":100031246,"user":{"login":"chetan51","id":310282,"avatar_url":"https://avatars.githubusercontent.com/u/310282?v=3","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},"created_at":"2015-05-07T21:53:37Z","updated_at":"2015-05-07T21:53:37Z","body":"Yes, we would want to benchmark performance before merging a PR that changes SP in this way."}}