7f83a6eac7e35e6a031d6c3d777e3194bf33f8c6,nab/detectors/numenta/numentaTM_detector.py,NumentaTMDetector,initialize,#NumentaTMDetector#,50

Before Change


    self.model.enableInference({"predictedField": "value"})

    // Initialize the anomaly likelihood object
    numentaLearningPeriod = math.floor(self.probationaryPeriod / 2.0)
    self.anomalyLikelihood = anomaly_likelihood.AnomalyLikelihood(
      claLearningPeriod=numentaLearningPeriod,
      estimationSamples=self.probationaryPeriod-numentaLearningPeriod,
      reestimationPeriod=100

After Change


    self.model.enableInference({"predictedField": "value"})

    // Initialize the anomaly likelihood object
    numentaLearningPeriod = int(math.floor(self.probationaryPeriod / 2.0))
    self.anomalyLikelihood = anomaly_likelihood.AnomalyLikelihood(
      claLearningPeriod=numentaLearningPeriod,
      estimationSamples=self.probationaryPeriod-numentaLearningPeriod,
      reestimationPeriod=100
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: numenta/NAB
Commit Name: 7f83a6eac7e35e6a031d6c3d777e3194bf33f8c6
Time: 2017-06-12
Author: matt@numenta.org
File Name: nab/detectors/numenta/numentaTM_detector.py
Class Name: NumentaTMDetector
Method Name: initialize


Project Name: numenta/NAB
Commit Name: a0eecf18eb5dab870144c2739b402a50c30981e8
Time: 2017-06-12
Author: matt@numenta.org
File Name: nab/detectors/numenta/numenta_detector.py
Class Name: NumentaDetector
Method Name: initialize


Project Name: librosa/librosa
Commit Name: 85fd6afe83cd84243710ce52e0a70643358f86ce
Time: 2013-12-05
Author: brm2132@columbia.edu
File Name: librosa/core.py
Class Name:
Method Name: peak_pick


Project Name: samuelclay/NewsBlur
Commit Name: e8b33af53c05e4dfc882e278dd9470f28e565d8c
Time: 2013-03-13
Author: samuel@ofbrooklyn.com
File Name: config/gunicorn_conf.py
Class Name:
Method Name: