{"action":"created","issue":{"url":"https://api.github.com/repos/numenta/nupic/issues/3342","repository_url":"https://api.github.com/repos/numenta/nupic","labels_url":"https://api.github.com/repos/numenta/nupic/issues/3342/labels{/name}","comments_url":"https://api.github.com/repos/numenta/nupic/issues/3342/comments","events_url":"https://api.github.com/repos/numenta/nupic/issues/3342/events","html_url":"https://github.com/numenta/nupic/issues/3342","id":176962275,"number":3342,"title":"TM initialization parameters should be accessible via getter methods","user":{"login":"rhyolight","id":15566,"avatar_url":"https://avatars.githubusercontent.com/u/15566?v=3","gravatar_id":"","url":"https://api.github.com/users/rhyolight","html_url":"https://github.com/rhyolight","followers_url":"https://api.github.com/users/rhyolight/followers","following_url":"https://api.github.com/users/rhyolight/following{/other_user}","gists_url":"https://api.github.com/users/rhyolight/gists{/gist_id}","starred_url":"https://api.github.com/users/rhyolight/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhyolight/subscriptions","organizations_url":"https://api.github.com/users/rhyolight/orgs","repos_url":"https://api.github.com/users/rhyolight/repos","events_url":"https://api.github.com/users/rhyolight/events{/privacy}","received_events_url":"https://api.github.com/users/rhyolight/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/numenta/nupic/labels/newbie","name":"newbie","color":"bfe5bf"},{"url":"https://api.github.com/repos/numenta/nupic/labels/priority:3","name":"priority:3","color":"009800"},{"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/triage","name":"triage","color":"BBBBBB"},{"url":"https://api.github.com/repos/numenta/nupic/labels/type:cleanup","name":"type:cleanup","color":"006b75"},{"url":"https://api.github.com/repos/numenta/nupic/labels/type:enhancement","name":"type:enhancement","color":"006b75"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-09-14T16:56:28Z","updated_at":"2016-09-23T15:56:44Z","closed_at":null,"body":"Just like the SP, the TM should expose the initialization parameters sent to its constructor through getter methods. This allows users to programmatically inspect the TM object to see how it was created. This is a list of initialization parameters that are not exposed.\r\n\r\n\r\n### `maxSegmentsPerCell`\r\nThis param is used to create an instance of the `Connections` class, which exposes `maxSegmentsPerCell` as a public property. So it is possible to get this value from the TM with `tm.connections.maxSegmentsPerCell`, but a getter would make the TM API more direct.\r\n\r\n> **Proposal**: add `tm.getMaxSegmentsPerCell()` function.\r\n\r\n### `maxSynapsesPerSegment`\r\nThis param is used to create an instance of the `Connections` class, which exposes `maxSynapsesPerSegment` as a public property. So it is possible to get this value from the TM with `tm.connections.maxSynapsesPerSegment`, but a getter would make the TM API more direct.\r\n\r\n> **Proposal**: add `tm.getMaxSynapsesPerSegment()` function."},"comment":{"url":"https://api.github.com/repos/numenta/nupic/issues/comments/249231303","html_url":"https://github.com/numenta/nupic/issues/3342#issuecomment-249231303","issue_url":"https://api.github.com/repos/numenta/nupic/issues/3342","id":249231303,"user":{"login":"oxtopus","id":326528,"avatar_url":"https://avatars.githubusercontent.com/u/326528?v=3","gravatar_id":"","url":"https://api.github.com/users/oxtopus","html_url":"https://github.com/oxtopus","followers_url":"https://api.github.com/users/oxtopus/followers","following_url":"https://api.github.com/users/oxtopus/following{/other_user}","gists_url":"https://api.github.com/users/oxtopus/gists{/gist_id}","starred_url":"https://api.github.com/users/oxtopus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oxtopus/subscriptions","organizations_url":"https://api.github.com/users/oxtopus/orgs","repos_url":"https://api.github.com/users/oxtopus/repos","events_url":"https://api.github.com/users/oxtopus/events{/privacy}","received_events_url":"https://api.github.com/users/oxtopus/received_events","type":"User","site_admin":false},"created_at":"2016-09-23T15:56:44Z","updated_at":"2016-09-23T15:56:44Z","body":"I seem to recall prior discussion (invoking @cogmission here) suggesting a consistent \"parameter set\" object.  That seems like a good idea given the use case presented in this issue."}}
{"actor":{"display_login":"oxtopus"}}