Open oxtopus opened 9 years ago
I am able to work around by expressing the coords + radius as a single numpy array rather than a 2-tuple of numpy array + radius. See https://github.com/oxtopus/shakehack/commit/1f3d06f98cfde106e8d2cfc726ef47bbdbb18754 for concrete example.
Don't have a good test case at the moment, but in practice,
nupic.algorithms.anomaly_likelihood.AnomalyLikelihood.anomalyProbability()
breaks oncelen(aggRecordList) > skipRecords
in https://github.com/numenta/nupic/blob/master/nupic/algorithms/anomaly_likelihood.py#L289 because inestimateNormal()
the calculated variance ends up being a numpy array rather than a single scalar value. The result is a very misleadingValueError
: "*\ ValueError: The truth value of an array with more than one element is ambiguous. Use a.any() or a.all()"Failing a solution,
estimateNormal()
should fail hard upon encountering an incompatible value rather than let numpy handle it semi-gracefully.