How do get predicted activity level from NuPIC -- am I doing it wrong?

Hey All,

So I’m trying to get the prediction density out from NuPIC models.

The idea is to have a standard measure of model precision – along with the measure of surprise provided by the anomaly metrics.

After digging around the source, here’s my current approach.
Do you see anything off about this?

I’m currently getting prediction densities (“predCount” values) that mismatch with the anomaly scores.
For example anomaly score 0.75 may come with predCount 0.0 – which doesn’t make sense.

Since this is quite far down in the NuPIC weeds, maybe @Scott, @Austin_Marshall , @subutai or @mrcslws if I could bug you?

Thanks very much again