Closed
Description
By testing TM for anomaly detection with a simple sinus wave data, I found the raw anomaly score is always 1. TM calculates the anomaly using predictive cells internally.
If I check for predictive cells, then I found that no cell is predicted for very long time period. So that it explain me, why the raw anomaly scores are always 1.
I am wondering, why TM can not find any predictive cell?
Any idea? thanks
In my experiment, SDR has 128 bits and 4 active bits
TM.initialize(std::vector<uint>{128}, 8,
/* activationThreshold */ 13,
/* initialPermanence */ 0.21,
/* connectedPermanence */ 0.50,
/* minThreshold */ 10,
/* maxNewSynapseCount */ 20,
/* permanenceIncrement */ 0.10,
/* permanenceDecrement */ 0.10,
/* predictedSegmentDecrement */ 0.0,
/* seed */ 42,
/* maxSegmentsPerCell */ 255,
/* maxSynapsesPerSegment */ 255,
/* checkInputs */ true,
/* externalPredictiveInputs */ 0,
/* anomalyMode */ TemporalMemory::ANMode::RAW);