Hey all, 

I keep having to work around this piece of code in the anomaly file :

  elif len(prevPredictedColumns) > 0:
    # There were predicted columns but none active.
    score = 1.0
  else:
    # There were no predicted or active columns.
    score = 0.0

I have a setup of multiple HTM regions, each trained on sequences associated 
with a shape (sequences of stroke directions). When I run a test sequence 
through all of them and record the anomaly scores to find the minimum and 
therefore which shape is most likely being observed, I get 0 scores because of 
the else statement. I tried setting it to -1 but the files are all read only 
and no amount of chmod 777 is fixing it. 
Any other way to detect when anomaly is forced to zero?

Thanks,
Nicholas

Reply via email to