Skip to content

Commit

Permalink
Fixed missed cast to int for learning period. in tm detector too
Browse files Browse the repository at this point in the history
  • Loading branch information
rhyolight committed Jun 13, 2017
1 parent a0eecf1 commit 7f83a6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nab/detectors/numenta/numentaTM_detector.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def initialize(self):
self.model.enableInference({"predictedField": "value"})

# Initialize the anomaly likelihood object
numentaLearningPeriod = math.floor(self.probationaryPeriod / 2.0)
numentaLearningPeriod = int(math.floor(self.probationaryPeriod / 2.0))
self.anomalyLikelihood = anomaly_likelihood.AnomalyLikelihood(
claLearningPeriod=numentaLearningPeriod,
estimationSamples=self.probationaryPeriod-numentaLearningPeriod,
Expand Down

0 comments on commit 7f83a6e

Please sign in to comment.