# Anomaly detection - params and questions / definition of terms

**URL:** <https://discourse.numenta.org/t/anomaly-detection-params-and-questions-definition-of-terms/2313>\
**Category:** HTM.Java\
**Created:** [May 12, 2017, 11:07pm UTC](https://discourse.numenta.org/t/anomaly-detection-params-and-questions-definition-of-terms/2313 "2017-05-12T23:07:06Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![cogmission](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.numenta.org/cogmission/32/11_2.png) [@cogmission](https://discourse.numenta.org/u/cogmission)\
**Post date:** [May 13, 2017, 11:32am UTC](https://discourse.numenta.org/t/anomaly-detection-params-and-questions-definition-of-terms/2313/2 "2017-05-13T11:32:05Z")

</div>

> [@phil\_d\_cat](#):
>
> a - ‘inference’ - how is it used in the context of anomaly detection?

“Inference” is just the name of the object containing output from the NAPI (Network API).

> [@phil\_d\_cat](#):
>
> b - the third line of ‘PublisherSupplier.builder().addHeader()’ - what’s a ‘blank’? how are these settings used? I’ve read the source and (kind of) get ‘category’ and ‘timestamp’ but not ‘blank’. What happens if this field is left empty?

Don’t worry about it. “Blank” is an internal representation that “crept” into the API, these get filled in automatically to allow all the headers to be the same length to ease and speed up parsing. All front-facing knowledge of it should be removed actually.

> [@phil\_d\_cat](#):
>
> c - when I run ~20K iterations of my dataset (timestamp, param0, p1, p2, result) where only the timestamp and result fields are changing - the values for ‘SDR.cellsAsColumnIndices(inf.getPredictiveCells(), …)’ and ‘inf.getAnomalyScore()’ never change. The first being integers from 0-18 and the second being 0.0 consistently. Is this insufficient data to find patterms? The ‘hot gym’ seems to find an equilibrium fairly rapidly. Perhaps my data is not regular enough within the span of time? How would I expand the ‘memory’ of the HTM setup?

You should probably ask all HTM functionality questions in the NuPIC forum, since the functionality is the same in both. Java and Java API specific questions, I can answer or other HTM.Java savvy people can answer here, but I personally haven’t “used” NuPIC to any credible extent, and so wouldn’t be the best choice to ask those questions to.

> [@phil\_d\_cat](#):
>
> the values for ‘SDR.cellsAsColumnIndices(inf.getPredictiveCells(), …)’ and ‘inf.getAnomalyScore()’ never change. The first being integers from 0-18 and the second being 0.0 consistently.

You have to make sure your settings are the most efficient, which takes some learning and fiddling, though the “Anomaly” parameters have been normalized by Numenta engineers to a best fit for _most_ situations. However, “Prediction” modeling requires maybe more specific parameter setting. One thing I noticed was that you use 500 bits for each field of your encoders which I think is probably overdoing it by about 5x - maybe (depending on how much variation and the “resolution” of the field data, of course)? Though the NuPIC forum might yield a different conclusion? Also, an Anomaly of “0.0” indicates either no inference (I believe), or that the data is completely predicted… Anyway, I would ask these questions on the NuPIC forum…

---

_[View the full topic](https://discourse.numenta.org/t/anomaly-detection-params-and-questions-definition-of-terms/2313)._
