4d0e2271a42a65297d7a1735225a607b17765cf1,nab/detectors/numenta/numenta_detector.py,NumentaDetector,initialize,#NumentaDetector#,68

Before Change


    paramsPath = os.path.join(os.path.split(__file__)[0],
                "modelParams",
                "model_params.json")
    with open(paramsPath) as fp:
      modelParams = json.load(fp)

    self.sensorParams = modelParams["modelParams"]["sensorParams"]\
                                   ["encoders"]["value"]

    // RDSE - resolution calculation

After Change


  def initialize(self):
    // Get config params, setting the RDSE resolution
    modelParams = getScalarMetricWithTimeOfDayAnomalyParams(
      self.dataSet.data["value"], minResolution=0.001)["modelConfig"]

    self._setupEncoderParams(
      modelParams["modelParams"]["sensorParams"]["encoders"])
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: numenta/NAB
Commit Name: 4d0e2271a42a65297d7a1735225a607b17765cf1
Time: 2016-03-09
Author: alexdlavin@gmail.com
File Name: nab/detectors/numenta/numenta_detector.py
Class Name: NumentaDetector
Method Name: initialize


Project Name: dit/dit
Commit Name: 0455296d8bf79935d6b0bb138963fcd32f6871ca
Time: 2016-04-15
Author: ryangregoryjames@gmail.com
File Name: fixcoverage.py
Class Name:
Method Name: main


Project Name: interactiveaudiolab/nussl
Commit Name: bc1ca6bc6d1c28c780e348321e8e95d5b3f91794
Time: 2019-07-15
Author: prem@u.northwestern.edu
File Name: nussl/deep/datasets/base_dataset.py
Class Name: BaseDataset
Method Name: load_from_cache