{"action":"created","issue":{"url":"https://api.github.com/repos/numenta/nupic/issues/2632","labels_url":"https://api.github.com/repos/numenta/nupic/issues/2632/labels{/name}","comments_url":"https://api.github.com/repos/numenta/nupic/issues/2632/comments","events_url":"https://api.github.com/repos/numenta/nupic/issues/2632/events","html_url":"https://github.com/numenta/nupic/issues/2632","id":110000383,"number":2632,"title":"State-full Anomaly class - avoid 2 column state fields at T, T-1","user":{"login":"breznak","id":2166111,"avatar_url":"https://avatars.githubusercontent.com/u/2166111?v=3","gravatar_id":"","url":"https://api.github.com/users/breznak","html_url":"https://github.com/breznak","followers_url":"https://api.github.com/users/breznak/followers","following_url":"https://api.github.com/users/breznak/following{/other_user}","gists_url":"https://api.github.com/users/breznak/gists{/gist_id}","starred_url":"https://api.github.com/users/breznak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/breznak/subscriptions","organizations_url":"https://api.github.com/users/breznak/orgs","repos_url":"https://api.github.com/users/breznak/repos","events_url":"https://api.github.com/users/breznak/events{/privacy}","received_events_url":"https://api.github.com/users/breznak/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/subject:anomaly","name":"subject:anomaly","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-10-06T12:47:04Z","updated_at":"2015-10-06T16:46:40Z","closed_at":null,"body":"currently `Anomaly.compute()` uses 2 main params: `activeColumns` and `predictedColumns`;\r\nthere may be some confusion about those variables, but basically `predictedColumns` = output of the TP at time T-1, and `activeColumns` = input to the TP at time T. These 2 values are compared and an anomaly score is produced. \r\n\r\nEnhancement would be to carry one of the states in the class, and require only an actual input. This would simplify things in CLAModel and other user-scripts with anomaly. \r\n\r\nQuestion is, how this should be called? a `next()` method, or another `compute()` with different params, or even preplace the `anomaly.compute()` as a default? "},"comment":{"url":"https://api.github.com/repos/numenta/nupic/issues/comments/145924196","html_url":"https://github.com/numenta/nupic/issues/2632#issuecomment-145924196","issue_url":"https://api.github.com/repos/numenta/nupic/issues/2632","id":145924196,"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},"created_at":"2015-10-06T16:46:40Z","updated_at":"2015-10-06T16:46:40Z","body":"Global state is still state. I would much rather this be instance state than global state. "}}