You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the default model parameters for an OPF model, I get no complaints extracting anomalies from my data. Running a swarmed parameters on my dataset causes the below error. I can get predictions and anomaly scores but anomaly likelihoods create this error.
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-4-4cb531be818f> in <module>()
49
50 anomaly_Likelihood_r = anomaly_likelihood_helper.anomalyProbability(
---> 51 modelInput["value"], anomaly_score_r, modelInput["dttm"]
52 )
53
/usr/local/lib/python2.7/dist-packages/nupic/algorithms/anomaly_likelihood.pyc in anomalyProbability(self, value, anomalyScore, timestamp)
384 _, _, self._distribution = estimateAnomalyLikelihoods(
385 self._historicalScores,
--> 386 skipRecords=numSkipRecords)
387
388 likelihoods, _, self._distribution = updateAnomalyLikelihoods(
/usr/local/lib/python2.7/dist-packages/nupic/algorithms/anomaly_likelihood.pyc in estimateAnomalyLikelihoods(anomalyScores, averagingWindow, skipRecords, verbosity)
458 anomalyScores,
459 windowSize = averagingWindow,
--> 460 verbosity = verbosity)
461 s = [r[2] for r in aggRecordList]
462 dataValues = numpy.array(s)
/usr/local/lib/python2.7/dist-packages/nupic/algorithms/anomaly_likelihood.pyc in _anomalyScoreMovingAverage(anomalyScores, windowSize, verbosity)
670
671 avg, historicalValues, total = (
--> 672 MovingAverage.compute(historicalValues, total, record[2], windowSize)
673 )
674
/usr/local/lib/python2.7/dist-packages/nupic/utils.pyc in compute(slidingWindow, total, newVal, windowSize)
79
80 slidingWindow.append(newVal)
---> 81 total += newVal
82 return float(total) / len(slidingWindow), slidingWindow, total
83
TypeError: unsupported operand type(s) for +=: 'float' and 'NoneType'
My guess so far would be that I haven't correctly defined my swarming definition "search_def.json", but I'm really not too sure.
Hello everyone,
Using the default model parameters for an OPF model, I get no complaints extracting anomalies from my data. Running a swarmed parameters on my dataset causes the below error. I can get predictions and anomaly scores but anomaly likelihoods create this error.
My guess so far would be that I haven't correctly defined my swarming definition "search_def.json", but I'm really not too sure.
Any thoughts about where this is coming from?
Cheers,
The text was updated successfully, but these errors were encountered: