0d8f7ad4309f4053d1e9cd5d99435a03c5e2a8a5,tests/integration/false_positive_test.py,FalsePositiveTests,test_oneFalsePositiveNoWindow,#FalsePositiveTests#,108

Before Change



    predictions = pandas.Series([0]*length)

    labels = pandas.Series([0]*length)

    windows = generateWindows(timestamps, numWindows, windowSize)

    costMatrix = {"tpWeight": 1.0,

After Change


    self.assertTrue(scorer.getScore() == -costMatrix["fpWeight"])

    // Ensure counts are correct.
    self.assertEqual(scorer.counts["tn"], length-windowSize*numWindows-1)
    self.assertEqual(scorer.counts["tp"], 0)
    self.assertEqual(scorer.counts["fp"], 1)
    self.assertEqual(scorer.counts["fn"], windowSize*numWindows)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 5

Instances


Project Name: numenta/NAB
Commit Name: 0d8f7ad4309f4053d1e9cd5d99435a03c5e2a8a5
Time: 2014-10-27
Author: sahmad@numenta.com
File Name: tests/integration/false_positive_test.py
Class Name: FalsePositiveTests
Method Name: test_oneFalsePositiveNoWindow


Project Name: numenta/NAB
Commit Name: 0d8f7ad4309f4053d1e9cd5d99435a03c5e2a8a5
Time: 2014-10-27
Author: sahmad@numenta.com
File Name: tests/integration/false_negative_test.py
Class Name: FalseNegativeTests
Method Name: test_FourFalseNegatives


Project Name: numenta/NAB
Commit Name: 0d8f7ad4309f4053d1e9cd5d99435a03c5e2a8a5
Time: 2014-10-27
Author: sahmad@numenta.com
File Name: tests/integration/false_positive_test.py
Class Name: FalsePositiveTests
Method Name: test_falsePositiveMeansNegativeScore


Project Name: numenta/NAB
Commit Name: 0d8f7ad4309f4053d1e9cd5d99435a03c5e2a8a5
Time: 2014-10-27
Author: sahmad@numenta.com
File Name: tests/integration/false_positive_test.py
Class Name: FalsePositiveTests
Method Name: test_twoFalsePositivesIsWorseThanOne


Project Name: numenta/NAB
Commit Name: 0d8f7ad4309f4053d1e9cd5d99435a03c5e2a8a5
Time: 2014-10-27
Author: sahmad@numenta.com
File Name: tests/integration/false_negative_test.py
Class Name: FalseNegativeTests
Method Name: test_FalseNegativeCausesNegativeScore