How to detect anomalies based on types?

The term “anomaly probability” is not one I recognize with NuPIC. Are you talking about “anomaly score” or “anomaly likelihood”?

Here is an example of encoding categories. Here are the encoder params:

Here is the code dealing with getting encodings from the category encoder:

The false positives may not be identified properly. See my question about anomaly score vs likelihood above.