{"action":"closed","issue":{"url":"https://api.github.com/repos/numenta/htm.java/issues/243","labels_url":"https://api.github.com/repos/numenta/htm.java/issues/243/labels{/name}","comments_url":"https://api.github.com/repos/numenta/htm.java/issues/243/comments","events_url":"https://api.github.com/repos/numenta/htm.java/issues/243/events","html_url":"https://github.com/numenta/htm.java/issues/243","id":88766614,"number":243,"title":"Regarding #232, #238: Issue with CLAClassifier","user":{"login":"chessweb01","id":1660364,"avatar_url":"https://avatars.githubusercontent.com/u/1660364?v=3","gravatar_id":"","url":"https://api.github.com/users/chessweb01","html_url":"https://github.com/chessweb01","followers_url":"https://api.github.com/users/chessweb01/followers","following_url":"https://api.github.com/users/chessweb01/following{/other_user}","gists_url":"https://api.github.com/users/chessweb01/gists{/gist_id}","starred_url":"https://api.github.com/users/chessweb01/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chessweb01/subscriptions","organizations_url":"https://api.github.com/users/chessweb01/orgs","repos_url":"https://api.github.com/users/chessweb01/repos","events_url":"https://api.github.com/users/chessweb01/events{/privacy}","received_events_url":"https://api.github.com/users/chessweb01/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-06-16T15:55:08Z","updated_at":"2015-06-16T17:17:51Z","closed_at":"2015-06-16T17:17:51Z","body":"@cogmission , @scottpurdy , @rhyolight : I'm opening a new issue regarding #232 and #238 because I'm still certain that something is wrong with the CLAClassifier. To show this, I performed two experiments with the QuickTest.java example. In both cases memory resetting in on, but the reset doesn't happen on Monday like in David's original example (when encoder input is 1), but on Tuesday when the encoder input is two. \r\n\r\nWhat follows is the output for one week at the end of the run. For clarity, only the CLAClassifier 1 step prob estimation vector is shown:\r\n\r\n===== Friday (5)  - Sequence Num: 9993 =====\r\nCLAClassifier 1 step prob = [0.0, 6.379741262606635E-4, 0.11949919930277184, 0.07236243346291339, 0.10723947945601109, 0.4654668143369222, 0.23479409931512082]\r\n\r\n===== Saturday (6)  - Sequence Num: 9994 =====\r\nCLAClassifier 1 step prob = [0.0, 0.0, 0.04699326847118107, 0.07925728963220278, 0.12737230744026998, 0.31787611000453514, 0.42850102445181115]\r\n\r\n===== Sunday (7)  - Sequence Num: 9995 =====\r\nCLAClassifier 1 step prob = [0.0, 7.008279153790567E-4, 0.38242873844193537, 0.06645409864383159, 3.5125719859356163E-4, 0.3408358790136928, 0.20922919878656762]\r\n\r\n===== Monday (1)  - Sequence Num: 9996 =====\r\nCLAClassifier 1 step prob = [0.14285714285714285, 0.14285714285714285, 0.14285714285714285, 0.14285714285714285, 0.14285714285714285, 0.14285714285714285, 0.14285714285714285]\r\n\r\n===== Tuesday (2)  - Sequence Num: 9997 =====\r\nCLAClassifier 1 step prob = [0.0, 0.002958799699708619, 0.5543985178923733, 0.10941383003562204, 0.06302677327965629, 0.20663496144615218, 0.06356711764648765]\r\n\r\n===== Wednesday (3)  - Sequence Num: 9998 =====\r\nCLAClassifier 1 step prob = [0.0, 6.997770016128778E-4, 0.13970182383232915, 0.388879563817466, 0.19178382804392421, 0.1536679359475725, 0.1252670713570953]\r\n\r\n===== Thursday (4)  - Sequence Num: 9999 =====\r\nCLAClassifier 1 step prob = [0.0, 8.174256277900919E-4, 0.08495637293955269, 0.19937685784961107, 0.2736845291808443, 0.23418366053949655, 0.20698115386270524]\r\n\r\nInterpretation:\r\nFri: Prediction is Sat because CLAClassifier 1 step prob[5] is highest (OK)\r\nSat: Prediction is Sun because CLAClassifier 1 step prob[6] is highest (OK)\r\nSun: Prediction is Wed because CLAClassifier 1 step prob[2] is highest (???) Here CLAClassifier 1 step prob[0] should be highest, by the way, indicating a Monday prediction.\r\nMon: no prediction because of memory reset (OK)\r\nTue: prediction is Wed because CLAClassifier 1 step prob[2] is highest (OK)\r\nWed: prediction is Thu because CLAClassifier 1 step prob[3] is highest (OK)\r\nThu: prediction is Fri because CLAClassifier 1 step prob[4] is highest (OK)\r\n\r\nNow, something is clearly off on Sunday besides the fact that CLAClassifier 1 step prob[0] which corresponds to a Monday prediction is always identical to zero.\r\n\r\nNext comes the result of the same simulation with the proposed fix in CLAClassifier in place:\r\n\r\n===== Friday (5)  - Sequence Num: 9993 =====\r\nCLAClassifier 1 step prob = [0.1018582685665416, 5.194166304534105E-4, 0.09343736671099835, 0.07220078183251759, 0.10697339906760528, 0.4096101952232601, 0.21540057196862364]\r\n\r\n===== Saturday (6)  - Sequence Num: 9994 =====\r\nCLAClassifier 1 step prob = [0.0868107758161019, 0.0, 0.03532422510662751, 0.07907616501616949, 0.12705635305761778, 0.2915076051093348, 0.3802248758941485]\r\n\r\n===== Sunday (7)  - Sequence Num: 9995 =====\r\nCLAClassifier 1 step prob = [0.35342242840344673, 4.659442785036538E-4, 0.23054594501303238, 0.04243694293648137, 2.449002562973038E-4, 0.229419317118965, 0.14346452199327356]\r\n\r\n===== Monday (1)  - Sequence Num: 9996 =====\r\nCLAClassifier 1 step prob = [0.14285714285714285, 0.14285714285714285, 0.14285714285714285, 0.14285714285714285, 0.14285714285714285, 0.14285714285714285, 0.14285714285714285]\r\n\r\n===== Tuesday (2)  - Sequence Num: 9997 =====\r\nCLAClassifier 1 step prob = [0.17535058491190322, 0.0028164005034243445, 0.45553646573889806, 0.09447698278764408, 0.06296246511297135, 0.16101501209560706, 0.04784208884955197]\r\n\r\n===== Wednesday (3)  - Sequence Num: 9998 =====\r\nCLAClassifier 1 step prob = [0.04116278241982905, 6.994468136874168E-4, 0.1208355083754605, 0.3674722610072709, 0.1915059809495113, 0.15334504307843908, 0.12497897735580193]\r\n\r\n===== Thursday (4)  - Sequence Num: 9999 =====\r\nCLAClassifier 1 step prob = [0.0016403899062704653, 8.168039514524062E-4, 0.08489176110821717, 0.1991087371996082, 0.2732621727614291, 0.23371821112273305, 0.20656192395028952]\r\n\r\nAs far as I can see, everything makes perfect sense now. In particular, on Sunday we have a prediction that Monday will be next because CLAClassifier 1 step prob[0] is highest.\r\n\r\n"}}