numenta/htm.java

Fix NAPI TM-Only Configuration to Enable Anomaly Func Computation

Closed this issue · 0 comments

When no SP is configured, the Anomaly Function doesn't have the needed feed-forward input usually received from the SP and so fails to compute. Having no SP in the network implies that the input to the network is a vector of bits representing what would normally be emitted by the SP - sparsified.

Therefore, the Anomaly Function should detect this scenario and set the feedForwardSparseActive field to contain the layer input so that the calculation which uses the "feedForward..." field can have its needed input.