Numenta Platform for Intelligent Computing is an implementation of Hierarchical Temporal Memory (HTM), a theory of intelligence based strictly on the neuroscience of the neocortex.
This code should be extracted to a generic generator and the above test should be refactored to use the general data generator classes in "nupic.data.generators"
Regarding these two methods:
https://github.com/numenta/nupic/blob/master/tests/unit/nupic/algorithms/anomaly_likelihood_test.py#L35
https://github.com/numenta/nupic/blob/master/tests/unit/nupic/algorithms/anomaly_likelihood_test.py#L64
This code should be extracted to a generic generator and the above test should be refactored to use the general data generator classes in "nupic.data.generators"