Advertisement
Guest User

Sam's install tests (8/22)

a guest
Aug 22nd, 2016
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 95.74 KB | None | 0 0
  1. tests/unit/nupic/regions/knn_anomaly_classifier_region_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/regions/knn_anomaly_classifier_region_test.py:479: KNNAnomalyClassifierRegionTest.testAddRecordToKNN PASSED
  2. tests/unit/nupic/regions/knn_anomaly_classifier_region_test.py:744: KNNAnomalyClassifierRegionTest.testCLAClassificationRecord PASSED
  3. tests/unit/nupic/regions/knn_anomaly_classifier_region_test.py:775: KNNAnomalyClassifierRegionTest.testCLAClassificationRecordGetState PASSED
  4. tests/unit/nupic/regions/knn_anomaly_classifier_region_test.py:789: KNNAnomalyClassifierRegionTest.testCLAClassificationRecordSetState PASSED
  5. tests/unit/nupic/regions/knn_anomaly_classifier_region_test.py:685: KNNAnomalyClassifierRegionTest.testCategoryToList PASSED
  6. tests/unit/nupic/regions/knn_anomaly_classifier_region_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/regions/knn_anomaly_classifier_region_test.py:636: KNNAnomalyClassifierRegionTest.testCompute PASSED
  7. tests/unit/nupic/regions/knn_anomaly_classifier_region_test.py:582: KNNAnomalyClassifierRegionTest.testConstructClassificationVector PASSED
  8. tests/unit/nupic/regions/knn_anomaly_classifier_region_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/regions/knn_anomaly_classifier_region_test.py:516: KNNAnomalyClassifierRegionTest.testDeleteRangeFromKNN PASSED
  9. tests/unit/nupic/regions/knn_anomaly_classifier_region_test.py:700: KNNAnomalyClassifierRegionTest.testGetAnomalyVector PASSED
  10. tests/unit/nupic/regions/knn_anomaly_classifier_region_test.py:108: KNNAnomalyClassifierRegionTest.testGetLabels PASSED
  11. tests/unit/nupic/regions/knn_anomaly_classifier_region_test.py:64: KNNAnomalyClassifierRegionTest.testInit PASSED
  12. tests/unit/nupic/regions/knn_anomaly_classifier_region_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/regions/knn_anomaly_classifier_region_test.py:541: KNNAnomalyClassifierRegionTest.testRecomputeRecordFromKNN PASSED
  13. tests/unit/nupic/regions/knn_anomaly_classifier_region_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/regions/knn_anomaly_classifier_region_test.py:194: KNNAnomalyClassifierRegionTest.testRemoveLabel PASSED
  14. tests/unit/nupic/regions/knn_anomaly_classifier_region_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/regions/knn_anomaly_classifier_region_test.py:236: KNNAnomalyClassifierRegionTest.testRemoveLabelNoFilter PASSED
  15. tests/unit/nupic/regions/knn_anomaly_classifier_region_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/regions/knn_anomaly_classifier_region_test.py:262: KNNAnomalyClassifierRegionTest.testSetGetThreshold PASSED
  16. tests/unit/nupic/regions/knn_anomaly_classifier_region_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/regions/knn_anomaly_classifier_region_test.py:278: KNNAnomalyClassifierRegionTest.testSetGetWaitRecords PASSED
  17. tests/unit/nupic/regions/knn_anomaly_classifier_region_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/regions/knn_anomaly_classifier_region_test.py:310: KNNAnomalyClassifierRegionTest.testSetGetWaitRecordsRecalculate PASSED
  18. tests/unit/nupic/regions/knn_anomaly_classifier_region_test.py:718: KNNAnomalyClassifierRegionTest.testSetState PASSED
  19. tests/unit/nupic/regions/knn_anomaly_classifier_region_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/regions/knn_anomaly_classifier_region_test.py:356: KNNAnomalyClassifierRegionTest.testUpdateState PASSED
  20. tests/unit/nupic/regions/record_sensor_region_test.py:35: RecordSensorRegionTest.testVaryingNumberOfCategories PASSED
  21. tests/unit/nupic/regions/regions_spec_test.py <- ../.local/lib/python2.7/site-packages/unittest2/case.py:58: KNNAnomalyClassifierRegionTest.testInvalidCommandSpec SKIPPED
  22. tests/unit/nupic/regions/regions_spec_test.py:36: KNNAnomalyClassifierRegionTest.testInvalidInputSpec PASSED
  23. tests/unit/nupic/regions/regions_spec_test.py:64: KNNAnomalyClassifierRegionTest.testInvalidOutputSpec PASSED
  24. tests/unit/nupic/regions/regions_spec_test.py:90: KNNAnomalyClassifierRegionTest.testInvalidParameterSpec PASSED
  25. tests/unit/nupic/regions/regions_spec_test.py <- ../.local/lib/python2.7/site-packages/unittest2/case.py:58: KNNAnomalyClassifierRegionTest.testInvalidSpec SKIPPED
  26. tests/unit/nupic/regions/regions_spec_test.py:176: KNNAnomalyClassifierRegionTest.testSpec_toDict PASSED
  27. tests/unit/nupic/regions/regions_spec_test.py:138: KNNAnomalyClassifierRegionTest.testValidCommandSpec PASSED
  28. tests/unit/nupic/regions/regions_spec_test.py:47: KNNAnomalyClassifierRegionTest.testValidInputSpec PASSED
  29. tests/unit/nupic/regions/regions_spec_test.py:75: KNNAnomalyClassifierRegionTest.testValidOutputSpec PASSED
  30. tests/unit/nupic/regions/regions_spec_test.py:110: KNNAnomalyClassifierRegionTest.testValidParameterSpec PASSED
  31. tests/unit/nupic/regions/regions_spec_test.py:163: KNNAnomalyClassifierRegionTest.testValidSpec PASSED
  32. tests/unit/nupic/research/connections_test.py:313: ConnectionsTest.testComputeActivity PASSED
  33. tests/unit/nupic/research/connections_test.py:37: ConnectionsTest.testCreateSegment PASSED
  34. tests/unit/nupic/research/connections_test.py:51: ConnectionsTest.testCreateSegmentReuse PASSED
  35. tests/unit/nupic/research/connections_test.py:95: ConnectionsTest.testDestroySegment PASSED
  36. tests/unit/nupic/research/connections_test.py:183: ConnectionsTest.testDestroySegmentWithDestroyedSynapses PASSED
  37. tests/unit/nupic/research/connections_test.py:233: ConnectionsTest.testDestroySegmentsThenReachLimit PASSED
  38. tests/unit/nupic/research/connections_test.py:126: ConnectionsTest.testDestroySynapse PASSED
  39. tests/unit/nupic/research/connections_test.py:256: ConnectionsTest.testDestroySynapsesThenReachLimit PASSED
  40. tests/unit/nupic/research/connections_test.py:150: ConnectionsTest.testPathsNotInvalidatedByOtherDestroys PASSED
  41. tests/unit/nupic/research/connections_test.py:281: ConnectionsTest.testReachSegmentLimitMultipleTimes PASSED
  42. tests/unit/nupic/research/connections_test.py:209: ConnectionsTest.testReuseSegmentWithDestroyedSynapses PASSED
  43. tests/unit/nupic/research/connections_test.py:71: ConnectionsTest.testSynapseReuse PASSED
  44. tests/unit/nupic/research/connections_test.py:299: ConnectionsTest.testUpdateSynapsePermanence PASSED
  45. tests/unit/nupic/research/connections_test.py:371: ConnectionsTest.testWriteRead PASSED
  46. tests/unit/nupic/research/inhibition_object_test.py <- ../.local/lib/python2.7/site-packages/unittest2/case.py:58: InhibitionObjectTest.testInhibition SKIPPED
  47. tests/unit/nupic/research/sp_learn_inference_test.py <- ../.local/lib/python2.7/site-packages/unittest2/case.py:58: SPLearnInferenceTest.testLearnInference SKIPPED
  48. tests/unit/nupic/research/spatial_pooler_boost_test.py:346: SpatialPoolerBoostTest.testBoostingCPP PASSED
  49. tests/unit/nupic/research/spatial_pooler_boost_test.py:342: SpatialPoolerBoostTest.testBoostingPY PASSED
  50. tests/unit/nupic/research/spatial_pooler_compatability_test.py:240: SpatialPoolerCompatabilityTest.testCompatability1 PASSED
  51. tests/unit/nupic/research/spatial_pooler_compatability_test.py:293: SpatialPoolerCompatabilityTest.testCompatability2 PASSED
  52. tests/unit/nupic/research/spatial_pooler_compatability_test.py:316: SpatialPoolerCompatabilityTest.testCompatability3 PASSED
  53. tests/unit/nupic/research/spatial_pooler_compatability_test.py:270: SpatialPoolerCompatabilityTest.testCompatabilityNoLearn PASSED
  54. tests/unit/nupic/research/spatial_pooler_compatability_test.py <- ../.local/lib/python2.7/site-packages/unittest2/case.py:58: SpatialPoolerCompatabilityTest.testCompatibilityCppPyDirectCall1D SKIPPED
  55. tests/unit/nupic/research/spatial_pooler_compatability_test.py <- ../.local/lib/python2.7/site-packages/unittest2/case.py:58: SpatialPoolerCompatabilityTest.testCompatibilityCppPyDirectCall2D SKIPPED
  56. tests/unit/nupic/research/spatial_pooler_compatability_test.py:392: SpatialPoolerCompatabilityTest.testInhibitColumnsGlobal PASSED
  57. tests/unit/nupic/research/spatial_pooler_compatability_test.py:339: SpatialPoolerCompatabilityTest.testSerialization PASSED
  58. tests/unit/nupic/research/spatial_pooler_compatability_test.py:368: SpatialPoolerCompatabilityTest.testSerializationRun PASSED
  59. tests/unit/nupic/research/spatial_pooler_compute_test.py:81: SpatialPoolerComputeTest.testBasicCompute1 PASSED
  60. tests/unit/nupic/research/spatial_pooler_compute_test.py:103: SpatialPoolerComputeTest.testBasicCompute2 PASSED
  61. tests/unit/nupic/research/spatial_pooler_cpp_api_test.py <- tests/unit/nupic/research/spatial_pooler_py_api_test.py:44: SpatialPoolerCPPAPITest.testCompute PASSED
  62. tests/unit/nupic/research/spatial_pooler_cpp_api_test.py <- tests/unit/nupic/research/spatial_pooler_py_api_test.py:235: SpatialPoolerCPPAPITest.testGetActiveDutyCycles PASSED
  63. tests/unit/nupic/research/spatial_pooler_cpp_api_test.py <- tests/unit/nupic/research/spatial_pooler_py_api_test.py:211: SpatialPoolerCPPAPITest.testGetBoostFactors PASSED
  64. tests/unit/nupic/research/spatial_pooler_cpp_api_test.py <- tests/unit/nupic/research/spatial_pooler_py_api_test.py:308: SpatialPoolerCPPAPITest.testGetConnectedCounts PASSED
  65. tests/unit/nupic/research/spatial_pooler_cpp_api_test.py <- tests/unit/nupic/research/spatial_pooler_py_api_test.py:291: SpatialPoolerCPPAPITest.testGetConnectedSynapses PASSED
  66. tests/unit/nupic/research/spatial_pooler_cpp_api_test.py <- tests/unit/nupic/research/spatial_pooler_py_api_test.py:112: SpatialPoolerCPPAPITest.testGetDutyCyclePeriod PASSED
  67. tests/unit/nupic/research/spatial_pooler_cpp_api_test.py <- tests/unit/nupic/research/spatial_pooler_py_api_test.py:72: SpatialPoolerCPPAPITest.testGetGlobalInhibition PASSED
  68. tests/unit/nupic/research/spatial_pooler_cpp_api_test.py <- tests/unit/nupic/research/spatial_pooler_py_api_test.py:105: SpatialPoolerCPPAPITest.testGetInhibitionRadius PASSED
  69. tests/unit/nupic/research/spatial_pooler_cpp_api_test.py <- tests/unit/nupic/research/spatial_pooler_py_api_test.py:133: SpatialPoolerCPPAPITest.testGetIterationLearnNum PASSED
  70. tests/unit/nupic/research/spatial_pooler_cpp_api_test.py <- tests/unit/nupic/research/spatial_pooler_py_api_test.py:126: SpatialPoolerCPPAPITest.testGetIterationNum PASSED
  71. tests/unit/nupic/research/spatial_pooler_cpp_api_test.py <- tests/unit/nupic/research/spatial_pooler_py_api_test.py:91: SpatialPoolerCPPAPITest.testGetLocalAreaDensity PASSED
  72. tests/unit/nupic/research/spatial_pooler_cpp_api_test.py <- tests/unit/nupic/research/spatial_pooler_py_api_test.py:119: SpatialPoolerCPPAPITest.testGetMaxBoost PASSED
  73. tests/unit/nupic/research/spatial_pooler_cpp_api_test.py <- tests/unit/nupic/research/spatial_pooler_py_api_test.py:259: SpatialPoolerCPPAPITest.testGetMinActiveDutyCycles PASSED
  74. tests/unit/nupic/research/spatial_pooler_cpp_api_test.py <- tests/unit/nupic/research/spatial_pooler_py_api_test.py:247: SpatialPoolerCPPAPITest.testGetMinOverlapDutyCycles PASSED
  75. tests/unit/nupic/research/spatial_pooler_cpp_api_test.py <- tests/unit/nupic/research/spatial_pooler_py_api_test.py:189: SpatialPoolerCPPAPITest.testGetMinPctActiveDutyCycles PASSED
  76. tests/unit/nupic/research/spatial_pooler_cpp_api_test.py <- tests/unit/nupic/research/spatial_pooler_py_api_test.py:182: SpatialPoolerCPPAPITest.testGetMinPctOverlapDutyCycles PASSED
  77. tests/unit/nupic/research/spatial_pooler_cpp_api_test.py <- tests/unit/nupic/research/spatial_pooler_py_api_test.py:84: SpatialPoolerCPPAPITest.testGetNumActiveColumnsPerInhArea PASSED
  78. tests/unit/nupic/research/spatial_pooler_cpp_api_test.py <- tests/unit/nupic/research/spatial_pooler_py_api_test.py:223: SpatialPoolerCPPAPITest.testGetOverlapDutyCycles PASSED
  79. tests/unit/nupic/research/spatial_pooler_cpp_api_test.py <- tests/unit/nupic/research/spatial_pooler_py_api_test.py:196: SpatialPoolerCPPAPITest.testGetPermanence PASSED
  80. tests/unit/nupic/research/spatial_pooler_cpp_api_test.py <- tests/unit/nupic/research/spatial_pooler_py_api_test.py:271: SpatialPoolerCPPAPITest.testGetPotential PASSED
  81. tests/unit/nupic/research/spatial_pooler_cpp_api_test.py <- tests/unit/nupic/research/spatial_pooler_py_api_test.py:65: SpatialPoolerCPPAPITest.testGetPotentialPct PASSED
  82. tests/unit/nupic/research/spatial_pooler_cpp_api_test.py <- tests/unit/nupic/research/spatial_pooler_py_api_test.py:58: SpatialPoolerCPPAPITest.testGetPotentialRadius PASSED
  83. tests/unit/nupic/research/spatial_pooler_cpp_api_test.py <- tests/unit/nupic/research/spatial_pooler_py_api_test.py:140: SpatialPoolerCPPAPITest.testGetSpVerbosity PASSED
  84. tests/unit/nupic/research/spatial_pooler_cpp_api_test.py <- tests/unit/nupic/research/spatial_pooler_py_api_test.py:98: SpatialPoolerCPPAPITest.testGetStimulusThreshold PASSED
  85. tests/unit/nupic/research/spatial_pooler_cpp_api_test.py <- tests/unit/nupic/research/spatial_pooler_py_api_test.py:154: SpatialPoolerCPPAPITest.testGetSynPermActiveInc PASSED
  86. tests/unit/nupic/research/spatial_pooler_cpp_api_test.py <- tests/unit/nupic/research/spatial_pooler_py_api_test.py:168: SpatialPoolerCPPAPITest.testGetSynPermBelowStimulusInc PASSED
  87. tests/unit/nupic/research/spatial_pooler_cpp_api_test.py <- tests/unit/nupic/research/spatial_pooler_py_api_test.py:175: SpatialPoolerCPPAPITest.testGetSynPermConnected PASSED
  88. tests/unit/nupic/research/spatial_pooler_cpp_api_test.py <- tests/unit/nupic/research/spatial_pooler_py_api_test.py:161: SpatialPoolerCPPAPITest.testGetSynPermInactiveDec PASSED
  89. tests/unit/nupic/research/spatial_pooler_cpp_api_test.py <- tests/unit/nupic/research/spatial_pooler_py_api_test.py:147: SpatialPoolerCPPAPITest.testGetSynPermTrimThreshold PASSED
  90. tests/unit/nupic/research/spatial_pooler_cpp_api_test.py <- tests/unit/nupic/research/spatial_pooler_py_api_test.py:51: SpatialPoolerCPPAPITest.testGetUpdatePeriod PASSED
  91. tests/unit/nupic/research/spatial_pooler_cpp_unit_test.py:43: SpatialPoolerTest.testCalculateOverlap PASSED
  92. tests/unit/nupic/research/spatial_pooler_cpp_unit_test.py:81: SpatialPoolerTest.testInhibitColumnsGlobal PASSED
  93. tests/unit/nupic/research/spatial_pooler_cpp_unit_test.py:152: SpatialPoolerTest.testUpdateDutyCycles PASSED
  94. tests/unit/nupic/research/spatial_pooler_cpp_unit_test.py:98: SpatialPoolerTest.testUpdatePermanencesForColumn PASSED
  95. tests/unit/nupic/research/spatial_pooler_py_api_test.py:44: SpatialPoolerAPITest.testCompute PASSED
  96. tests/unit/nupic/research/spatial_pooler_py_api_test.py:235: SpatialPoolerAPITest.testGetActiveDutyCycles PASSED
  97. tests/unit/nupic/research/spatial_pooler_py_api_test.py:211: SpatialPoolerAPITest.testGetBoostFactors PASSED
  98. tests/unit/nupic/research/spatial_pooler_py_api_test.py:308: SpatialPoolerAPITest.testGetConnectedCounts PASSED
  99. tests/unit/nupic/research/spatial_pooler_py_api_test.py:291: SpatialPoolerAPITest.testGetConnectedSynapses PASSED
  100. tests/unit/nupic/research/spatial_pooler_py_api_test.py:112: SpatialPoolerAPITest.testGetDutyCyclePeriod PASSED
  101. tests/unit/nupic/research/spatial_pooler_py_api_test.py:72: SpatialPoolerAPITest.testGetGlobalInhibition PASSED
  102. tests/unit/nupic/research/spatial_pooler_py_api_test.py:105: SpatialPoolerAPITest.testGetInhibitionRadius PASSED
  103. tests/unit/nupic/research/spatial_pooler_py_api_test.py:133: SpatialPoolerAPITest.testGetIterationLearnNum PASSED
  104. tests/unit/nupic/research/spatial_pooler_py_api_test.py:126: SpatialPoolerAPITest.testGetIterationNum PASSED
  105. tests/unit/nupic/research/spatial_pooler_py_api_test.py:91: SpatialPoolerAPITest.testGetLocalAreaDensity PASSED
  106. tests/unit/nupic/research/spatial_pooler_py_api_test.py:119: SpatialPoolerAPITest.testGetMaxBoost PASSED
  107. tests/unit/nupic/research/spatial_pooler_py_api_test.py:259: SpatialPoolerAPITest.testGetMinActiveDutyCycles PASSED
  108. tests/unit/nupic/research/spatial_pooler_py_api_test.py:247: SpatialPoolerAPITest.testGetMinOverlapDutyCycles PASSED
  109. tests/unit/nupic/research/spatial_pooler_py_api_test.py:189: SpatialPoolerAPITest.testGetMinPctActiveDutyCycles PASSED
  110. tests/unit/nupic/research/spatial_pooler_py_api_test.py:182: SpatialPoolerAPITest.testGetMinPctOverlapDutyCycles PASSED
  111. tests/unit/nupic/research/spatial_pooler_py_api_test.py:84: SpatialPoolerAPITest.testGetNumActiveColumnsPerInhArea PASSED
  112. tests/unit/nupic/research/spatial_pooler_py_api_test.py:223: SpatialPoolerAPITest.testGetOverlapDutyCycles PASSED
  113. tests/unit/nupic/research/spatial_pooler_py_api_test.py:196: SpatialPoolerAPITest.testGetPermanence PASSED
  114. tests/unit/nupic/research/spatial_pooler_py_api_test.py:271: SpatialPoolerAPITest.testGetPotential PASSED
  115. tests/unit/nupic/research/spatial_pooler_py_api_test.py:65: SpatialPoolerAPITest.testGetPotentialPct PASSED
  116. tests/unit/nupic/research/spatial_pooler_py_api_test.py:58: SpatialPoolerAPITest.testGetPotentialRadius PASSED
  117. tests/unit/nupic/research/spatial_pooler_py_api_test.py:140: SpatialPoolerAPITest.testGetSpVerbosity PASSED
  118. tests/unit/nupic/research/spatial_pooler_py_api_test.py:98: SpatialPoolerAPITest.testGetStimulusThreshold PASSED
  119. tests/unit/nupic/research/spatial_pooler_py_api_test.py:154: SpatialPoolerAPITest.testGetSynPermActiveInc PASSED
  120. tests/unit/nupic/research/spatial_pooler_py_api_test.py:168: SpatialPoolerAPITest.testGetSynPermBelowStimulusInc PASSED
  121. tests/unit/nupic/research/spatial_pooler_py_api_test.py:175: SpatialPoolerAPITest.testGetSynPermConnected PASSED
  122. tests/unit/nupic/research/spatial_pooler_py_api_test.py:161: SpatialPoolerAPITest.testGetSynPermInactiveDec PASSED
  123. tests/unit/nupic/research/spatial_pooler_py_api_test.py:147: SpatialPoolerAPITest.testGetSynPermTrimThreshold PASSED
  124. tests/unit/nupic/research/spatial_pooler_py_api_test.py:51: SpatialPoolerAPITest.testGetUpdatePeriod PASSED
  125. tests/unit/nupic/research/spatial_pooler_unit_test.py <- ../../../../usr/lib/python2.7/unittest/case.py:60: SpatialPoolerTest.testActiveColumnsEqualNumActive SKIPPED
  126. tests/unit/nupic/research/spatial_pooler_unit_test.py:965: SpatialPoolerTest.testAdaptSynapses PASSED
  127. tests/unit/nupic/research/spatial_pooler_unit_test.py:590: SpatialPoolerTest.testAvgColumnsPerInput PASSED
  128. tests/unit/nupic/research/spatial_pooler_unit_test.py:627: SpatialPoolerTest.testAvgConnectedSpanForColumn1D PASSED
  129. tests/unit/nupic/research/spatial_pooler_unit_test.py:649: SpatialPoolerTest.testAvgConnectedSpanForColumn2D PASSED
  130. tests/unit/nupic/research/spatial_pooler_unit_test.py:741: SpatialPoolerTest.testAvgConnectedSpanForColumnND PASSED
  131. tests/unit/nupic/research/spatial_pooler_unit_test.py:795: SpatialPoolerTest.testBumpUpWeakColumns PASSED
  132. tests/unit/nupic/research/spatial_pooler_unit_test.py:1114: SpatialPoolerTest.testCalculateOverlap PASSED
  133. tests/unit/nupic/research/spatial_pooler_unit_test.py:82: SpatialPoolerTest.testCompute1 PASSED
  134. tests/unit/nupic/research/spatial_pooler_unit_test.py:119: SpatialPoolerTest.testCompute2 PASSED
  135. tests/unit/nupic/research/spatial_pooler_unit_test.py:184: SpatialPoolerTest.testExactOutput PASSED
  136. tests/unit/nupic/research/spatial_pooler_unit_test.py:1361: SpatialPoolerTest.testGetNeighbors1D PASSED
  137. tests/unit/nupic/research/spatial_pooler_unit_test.py:1441: SpatialPoolerTest.testGetNeighbors2D PASSED
  138. tests/unit/nupic/research/spatial_pooler_unit_test.py:1550: SpatialPoolerTest.testGetNeighborsND PASSED
  139. tests/unit/nupic/research/spatial_pooler_unit_test.py:436: SpatialPoolerTest.testInhibitColumns PASSED
  140. tests/unit/nupic/research/spatial_pooler_unit_test.py:1304: SpatialPoolerTest.testInhibitColumnsGlobal PASSED
  141. tests/unit/nupic/research/spatial_pooler_unit_test.py:1327: SpatialPoolerTest.testInhibitColumnsLocal PASSED
  142. tests/unit/nupic/research/spatial_pooler_unit_test.py:1184: SpatialPoolerTest.testInitPermanence1 PASSED
  143. tests/unit/nupic/research/spatial_pooler_unit_test.py:1226: SpatialPoolerTest.testInitPermanence2 PASSED
  144. tests/unit/nupic/research/spatial_pooler_unit_test.py:936: SpatialPoolerTest.testIsUpdateRound PASSED
  145. tests/unit/nupic/research/spatial_pooler_unit_test.py:279: SpatialPoolerTest.testMapColumn PASSED
  146. tests/unit/nupic/research/spatial_pooler_unit_test.py:419: SpatialPoolerTest.testMapPotential1Column1Input PASSED
  147. tests/unit/nupic/research/spatial_pooler_unit_test.py:329: SpatialPoolerTest.testMapPotential1D PASSED
  148. tests/unit/nupic/research/spatial_pooler_unit_test.py:372: SpatialPoolerTest.testMapPotential2D PASSED
  149. tests/unit/nupic/research/spatial_pooler_unit_test.py:155: SpatialPoolerTest.testOverlapsOutput PASSED
  150. tests/unit/nupic/research/spatial_pooler_unit_test.py:1035: SpatialPoolerTest.testRaisePermanenceThreshold PASSED
  151. tests/unit/nupic/research/spatial_pooler_unit_test.py:1808: SpatialPoolerTest.testRandomSPDoesNotLearn PASSED
  152. tests/unit/nupic/research/spatial_pooler_unit_test.py:247: SpatialPoolerTest.testStripNeverLearned PASSED
  153. tests/unit/nupic/research/spatial_pooler_unit_test.py:515: SpatialPoolerTest.testUpdateBoostFactors PASSED
  154. tests/unit/nupic/research/spatial_pooler_unit_test.py:1267: SpatialPoolerTest.testUpdateDutyCycleHelper PASSED
  155. tests/unit/nupic/research/spatial_pooler_unit_test.py:555: SpatialPoolerTest.testUpdateInhibitionRadius PASSED
  156. tests/unit/nupic/research/spatial_pooler_unit_test.py:836: SpatialPoolerTest.testUpdateMinDutyCycleLocal PASSED
  157. tests/unit/nupic/research/spatial_pooler_unit_test.py:894: SpatialPoolerTest.testUpdateMinDutyCyclesGlobal PASSED
  158. tests/unit/nupic/research/spatial_pooler_unit_test.py:1072: SpatialPoolerTest.testUpdatePermanencesForColumn PASSED
  159. tests/unit/nupic/research/spatial_pooler_unit_test.py:1737: SpatialPoolerTest.testWriteRead PASSED
  160. tests/unit/nupic/research/temporal_memory_test.py:54: TemporalMemoryTest.testActivateCorrectlyPredictiveCells PASSED
  161. tests/unit/nupic/research/temporal_memory_test.py:782: TemporalMemoryTest.testAddSegmentToCellWithFewestSegments PASSED
  162. tests/unit/nupic/research/temporal_memory_test.py:85: TemporalMemoryTest.testBurstUnpredictedColumns PASSED
  163. tests/unit/nupic/research/temporal_memory_test.py:927: TemporalMemoryTest.testCellsForColumn1D PASSED
  164. tests/unit/nupic/research/temporal_memory_test.py:936: TemporalMemoryTest.testCellsForColumn2D PASSED
  165. tests/unit/nupic/research/temporal_memory_test.py:945: TemporalMemoryTest.testCellsForColumnInvalidColumn PASSED
  166. tests/unit/nupic/research/temporal_memory_test.py:887: TemporalMemoryTest.testColumnForCell1D PASSED
  167. tests/unit/nupic/research/temporal_memory_test.py:898: TemporalMemoryTest.testColumnForCell2D PASSED
  168. tests/unit/nupic/research/temporal_memory_test.py:909: TemporalMemoryTest.testColumnForCellInvalidCell PASSED
  169. tests/unit/nupic/research/temporal_memory_test.py:849: TemporalMemoryTest.testConnectionsNeverChangeWhenLearningDisabled PASSED
  170. tests/unit/nupic/research/temporal_memory_test.py:700: TemporalMemoryTest.testDestroySegmentsWithTooFewSynapsesToBeMatching PASSED
  171. tests/unit/nupic/research/temporal_memory_test.py:583: TemporalMemoryTest.testDestroyWeakSynapseOnActiveReinforce PASSED
  172. tests/unit/nupic/research/temporal_memory_test.py:550: TemporalMemoryTest.testDestroyWeakSynapseOnWrongPrediction PASSED
  173. tests/unit/nupic/research/temporal_memory_test.py:42: TemporalMemoryTest.testInitInvalidParams PASSED
  174. tests/unit/nupic/research/temporal_memory_test.py:979: TemporalMemoryTest.testMapCellsToColumns PASSED
  175. tests/unit/nupic/research/temporal_memory_test.py:516: TemporalMemoryTest.testMatchingSegmentAddSynapsesToAllWinnerCells PASSED
  176. tests/unit/nupic/research/temporal_memory_test.py:481: TemporalMemoryTest.testMatchingSegmentAddSynapsesToSubsetOfWinnerCells PASSED
  177. tests/unit/nupic/research/temporal_memory_test.py:441: TemporalMemoryTest.testNewSegmentAddSynapsesToAllWinnerCells PASSED
  178. tests/unit/nupic/research/temporal_memory_test.py:404: TemporalMemoryTest.testNewSegmentAddSynapsesToSubsetOfWinnerCells PASSED
  179. tests/unit/nupic/research/temporal_memory_test.py:330: TemporalMemoryTest.testNoChangeToMatchingSegmentsInPredictedActiveColumn PASSED
  180. tests/unit/nupic/research/temporal_memory_test.py:287: TemporalMemoryTest.testNoChangeToNonselectedMatchingSegmentsInBurstingColumn PASSED
  181. tests/unit/nupic/research/temporal_memory_test.py:213: TemporalMemoryTest.testNoGrowthOnCorrectlyActiveSegments PASSED
  182. tests/unit/nupic/research/temporal_memory_test.py:381: TemporalMemoryTest.testNoNewSegmentIfNotEnoughWinnerCells PASSED
  183. tests/unit/nupic/research/temporal_memory_test.py:971: TemporalMemoryTest.testNumberOfCells PASSED
  184. tests/unit/nupic/research/temporal_memory_test.py:963: TemporalMemoryTest.testNumberOfColumns PASSED
  185. tests/unit/nupic/research/temporal_memory_test.py:144: TemporalMemoryTest.testPredictedActiveCellsAreAlwaysWinners PASSED
  186. tests/unit/nupic/research/temporal_memory_test.py:733: TemporalMemoryTest.testPunishMatchingSegmentsInInactiveColumns PASSED
  187. tests/unit/nupic/research/temporal_memory_test.py:652: TemporalMemoryTest.testRecycleLeastRecentlyActiveSegmentToMakeRoomForNewSegment PASSED
  188. tests/unit/nupic/research/temporal_memory_test.py:616: TemporalMemoryTest.testRecycleWeakestSynapseToMakeRoomForNewSynapse PASSED
  189. tests/unit/nupic/research/temporal_memory_test.py:179: TemporalMemoryTest.testReinforceCorrectlyActiveSegments PASSED
  190. tests/unit/nupic/research/temporal_memory_test.py:243: TemporalMemoryTest.testReinforceSelectedMatchingSegmentInBurstingColumn PASSED
  191. tests/unit/nupic/research/temporal_memory_test.py:990: TemporalMemoryTest.testWriteRead PASSED
  192. tests/unit/nupic/research/temporal_memory_test.py:107: TemporalMemoryTest.testZeroActiveColumns PASSED
  193. tests/unit/nupic/research/tp10x2_test.py <- tests/unit/nupic/research/tp_test.py:62: TPTest.testCheckpointLearned PASSED
  194. tests/unit/nupic/research/tp10x2_test.py <- tests/unit/nupic/research/tp_test.py:96: TPTest.testCheckpointMiddleOfSequence PASSED
  195. tests/unit/nupic/research/tp10x2_test.py <- tests/unit/nupic/research/tp_test.py:132: TPTest.testCheckpointMiddleOfSequence2 PASSED
  196. tests/unit/nupic/research/tp10x2_test.py <- tests/unit/nupic/research/tp_test.py:58: TPTest.testInitDefaultTP PASSED
  197. tests/unit/nupic/research/tp_constant_test.py:149: TPConstantTest.testCppTpBasic PASSED
  198. tests/unit/nupic/research/tp_constant_test.py:157: TPConstantTest.testIdenticalTps PASSED
  199. tests/unit/nupic/research/tp_constant_test.py:153: TPConstantTest.testPyTpBasic PASSED
  200. tests/unit/nupic/research/tp_test.py:62: TPTest.testCheckpointLearned PASSED
  201. tests/unit/nupic/research/tp_test.py:96: TPTest.testCheckpointMiddleOfSequence PASSED
  202. tests/unit/nupic/research/tp_test.py:132: TPTest.testCheckpointMiddleOfSequence2 PASSED
  203. tests/unit/nupic/research/tp_test.py:58: TPTest.testInitDefaultTP PASSED
  204. tests/unit/nupic/research/monitor_mixin/metric_test.py:38: MetricTest.testCreateFromTrace PASSED
  205. tests/unit/nupic/research/monitor_mixin/metric_test.py:48: MetricTest.testCreateFromTraceExcludeResets PASSED
  206. tests/unit/nupic/research/monitor_mixin/trace_test.py:40: IndicesTraceTest.testMakeCountsTrace PASSED
  207. tests/unit/nupic/research/monitor_mixin/trace_test.py:46: IndicesTraceTest.testMakeCumCountsTrace PASSED
  208. tests/unit/nupic/support/configuration_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/support/configuration_test.py:258: ConfigurationTest.testClear PASSED
  209. tests/unit/nupic/support/configuration_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/support/configuration_test.py:550: ConfigurationTest.testConfiguration PASSED
  210. tests/unit/nupic/support/configuration_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/support/configuration_test.py:614: ConfigurationTest.testConfiguration2 PASSED
  211. tests/unit/nupic/support/configuration_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/support/configuration_test.py:212: ConfigurationTest.testDict PASSED
  212. tests/unit/nupic/support/configuration_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/support/configuration_test.py:229: ConfigurationTest.testDictReadsFilesFirstTime PASSED
  213. tests/unit/nupic/support/configuration_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/support/configuration_test.py:242: ConfigurationTest.testDictReplacesKeysFromEnvironment PASSED
  214. tests/unit/nupic/support/configuration_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/support/configuration_test.py:481: ConfigurationTest.testFindConfigFile PASSED
  215. tests/unit/nupic/support/configuration_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/support/configuration_test.py:493: ConfigurationTest.testFindConfigFileReturnsNoneForMissingFile PASSED
  216. tests/unit/nupic/support/configuration_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/support/configuration_test.py:127: ConfigurationTest.testGetBool PASSED
  217. tests/unit/nupic/support/configuration_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/support/configuration_test.py:99: ConfigurationTest.testGetBoolMissingRaisesKeyError PASSED
  218. tests/unit/nupic/support/configuration_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/support/configuration_test.py:110: ConfigurationTest.testGetBoolOutOfRangeRaisesValueError PASSED
  219. tests/unit/nupic/support/configuration_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/support/configuration_test.py:506: ConfigurationTest.testGetConfigPaths PASSED
  220. tests/unit/nupic/support/configuration_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/support/configuration_test.py:515: ConfigurationTest.testGetConfigPathsForNone SKIPPED
  221. tests/unit/nupic/support/configuration_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/support/configuration_test.py:527: ConfigurationTest.testGetConfigPathsForNoneWithNTA_CONF_PATHInEnv PASSED
  222. tests/unit/nupic/support/configuration_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/support/configuration_test.py:177: ConfigurationTest.testGetFloat PASSED
  223. tests/unit/nupic/support/configuration_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/support/configuration_test.py:166: ConfigurationTest.testGetFloatMissingRaisesKeyError PASSED
  224. tests/unit/nupic/support/configuration_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/support/configuration_test.py:274: ConfigurationTest.testGetFromEnvironment PASSED
  225. tests/unit/nupic/support/configuration_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/support/configuration_test.py:154: ConfigurationTest.testGetInt PASSED
  226. tests/unit/nupic/support/configuration_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/support/configuration_test.py:143: ConfigurationTest.testGetIntMissingRaisesKeyError PASSED
  227. tests/unit/nupic/support/configuration_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/support/configuration_test.py:189: ConfigurationTest.testGetMissingReturnsNone PASSED
  228. tests/unit/nupic/support/configuration_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/support/configuration_test.py:87: ConfigurationTest.testGetString PASSED
  229. tests/unit/nupic/support/configuration_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/support/configuration_test.py:76: ConfigurationTest.testGetStringMissingRaisesKeyError PASSED
  230. tests/unit/nupic/support/configuration_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/support/configuration_test.py:380: ConfigurationTest.testReadConfigFileEmptyNameAndValue PASSED
  231. tests/unit/nupic/support/configuration_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/support/configuration_test.py:357: ConfigurationTest.testReadConfigFileEmptyValue PASSED
  232. tests/unit/nupic/support/configuration_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/support/configuration_test.py:453: ConfigurationTest.testReadConfigFileEnvironmentOverride PASSED
  233. tests/unit/nupic/support/configuration_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/support/configuration_test.py:286: ConfigurationTest.testReadConfigFileFromPath PASSED
  234. tests/unit/nupic/support/configuration_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/support/configuration_test.py:428: ConfigurationTest.testReadConfigFileMalformedEnvReference PASSED
  235. tests/unit/nupic/support/configuration_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/support/configuration_test.py:317: ConfigurationTest.testReadConfigFileMissingDocumentRoot PASSED
  236. tests/unit/nupic/support/configuration_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/support/configuration_test.py:404: ConfigurationTest.testReadConfigFileMissingEnvVars PASSED
  237. tests/unit/nupic/support/configuration_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/support/configuration_test.py:335: ConfigurationTest.testReadConfigFileMissingNonPropertyConfigurationChildren PASSED
  238. tests/unit/nupic/support/configuration_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/support/configuration_test.py:298: ConfigurationTest.testReadConfigFileUnexpectedElementAtRoot PASSED
  239. tests/unit/nupic/support/configuration_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/support/configuration_test.py:200: ConfigurationTest.testSetAndGet PASSED
  240. tests/unit/nupic/support/configuration_test.py:541: ConfigurationTest.testSetConfigPathsForNoneWithNTA_CONF_PATHInEnv PASSED
  241. tests/unit/nupic/support/custom_configuration_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/support/custom_configuration_test.py:547: ConfigurationCustomTest.testClear PASSED
  242. tests/unit/nupic/support/custom_configuration_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/support/custom_configuration_test.py:265: ConfigurationCustomTest.testClearInvalidFile PASSED
  243. tests/unit/nupic/support/custom_configuration_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/support/custom_configuration_test.py:844: ConfigurationCustomTest.testConfiguration PASSED
  244. tests/unit/nupic/support/custom_configuration_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/support/custom_configuration_test.py:908: ConfigurationCustomTest.testConfiguration2 PASSED
  245. tests/unit/nupic/support/custom_configuration_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/support/custom_configuration_test.py:242: ConfigurationCustomTest.testCustomConfigDict PASSED
  246. tests/unit/nupic/support/custom_configuration_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/support/custom_configuration_test.py:217: ConfigurationCustomTest.testCustomConfigOverrides PASSED
  247. tests/unit/nupic/support/custom_configuration_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/support/custom_configuration_test.py:95: ConfigurationCustomTest.testCustomFileCreated PASSED
  248. tests/unit/nupic/support/custom_configuration_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/support/custom_configuration_test.py:501: ConfigurationCustomTest.testDict PASSED
  249. tests/unit/nupic/support/custom_configuration_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/support/custom_configuration_test.py:518: ConfigurationCustomTest.testDictReadsFilesFirstTime PASSED
  250. tests/unit/nupic/support/custom_configuration_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/support/custom_configuration_test.py:531: ConfigurationCustomTest.testDictReplacesKeysFromEnvironment PASSED
  251. tests/unit/nupic/support/custom_configuration_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/support/custom_configuration_test.py:189: ConfigurationCustomTest.testDictWithTemp PASSED
  252. tests/unit/nupic/support/custom_configuration_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/support/custom_configuration_test.py:833: ConfigurationCustomTest.testEmptyGetCustomDict PASSED
  253. tests/unit/nupic/support/custom_configuration_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/support/custom_configuration_test.py:763: ConfigurationCustomTest.testFindConfigFile PASSED
  254. tests/unit/nupic/support/custom_configuration_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/support/custom_configuration_test.py:776: ConfigurationCustomTest.testFindConfigFileReturnsNoneForMissingFile PASSED
  255. tests/unit/nupic/support/custom_configuration_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/support/custom_configuration_test.py:107: ConfigurationCustomTest.testGet PASSED
  256. tests/unit/nupic/support/custom_configuration_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/support/custom_configuration_test.py:416: ConfigurationCustomTest.testGetBool PASSED
  257. tests/unit/nupic/support/custom_configuration_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/support/custom_configuration_test.py:388: ConfigurationCustomTest.testGetBoolMissingRaisesKeyError PASSED
  258. tests/unit/nupic/support/custom_configuration_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/support/custom_configuration_test.py:399: ConfigurationCustomTest.testGetBoolOutOfRangeRaisesValueError PASSED
  259. tests/unit/nupic/support/custom_configuration_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/support/custom_configuration_test.py:789: ConfigurationCustomTest.testGetConfigPaths PASSED
  260. tests/unit/nupic/support/custom_configuration_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/support/custom_configuration_test.py:798: ConfigurationCustomTest.testGetConfigPathsForNone SKIPPED
  261. tests/unit/nupic/support/custom_configuration_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/support/custom_configuration_test.py:810: ConfigurationCustomTest.testGetConfigPathsForNoneWithNTA_CONF_PATHInEnv PASSED
  262. tests/unit/nupic/support/custom_configuration_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/support/custom_configuration_test.py:324: ConfigurationCustomTest.testGetCustomDict PASSED
  263. tests/unit/nupic/support/custom_configuration_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/support/custom_configuration_test.py:348: ConfigurationCustomTest.testGetCustomDictNoFile PASSED
  264. tests/unit/nupic/support/custom_configuration_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/support/custom_configuration_test.py:466: ConfigurationCustomTest.testGetFloat PASSED
  265. tests/unit/nupic/support/custom_configuration_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/support/custom_configuration_test.py:455: ConfigurationCustomTest.testGetFloatMissingRaisesKeyError PASSED
  266. tests/unit/nupic/support/custom_configuration_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/support/custom_configuration_test.py:563: ConfigurationCustomTest.testGetFromEnvironment PASSED
  267. tests/unit/nupic/support/custom_configuration_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/support/custom_configuration_test.py:443: ConfigurationCustomTest.testGetInt PASSED
  268. tests/unit/nupic/support/custom_configuration_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/support/custom_configuration_test.py:432: ConfigurationCustomTest.testGetIntMissingRaisesKeyError PASSED
  269. tests/unit/nupic/support/custom_configuration_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/support/custom_configuration_test.py:478: ConfigurationCustomTest.testGetMissingReturnsNone PASSED
  270. tests/unit/nupic/support/custom_configuration_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/support/custom_configuration_test.py:376: ConfigurationCustomTest.testGetString PASSED
  271. tests/unit/nupic/support/custom_configuration_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/support/custom_configuration_test.py:365: ConfigurationCustomTest.testGetStringMissingRaisesKeyError PASSED
  272. tests/unit/nupic/support/custom_configuration_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/support/custom_configuration_test.py:665: ConfigurationCustomTest.testReadConfigFileEmptyNameAndValue PASSED
  273. tests/unit/nupic/support/custom_configuration_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/support/custom_configuration_test.py:643: ConfigurationCustomTest.testReadConfigFileEmptyValue PASSED
  274. tests/unit/nupic/support/custom_configuration_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/support/custom_configuration_test.py:735: ConfigurationCustomTest.testReadConfigFileEnvironmentOverride PASSED
  275. tests/unit/nupic/support/custom_configuration_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/support/custom_configuration_test.py:575: ConfigurationCustomTest.testReadConfigFileFromPath PASSED
  276. tests/unit/nupic/support/custom_configuration_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/support/custom_configuration_test.py:711: ConfigurationCustomTest.testReadConfigFileMalformedEnvReference PASSED
  277. tests/unit/nupic/support/custom_configuration_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/support/custom_configuration_test.py:605: ConfigurationCustomTest.testReadConfigFileMissingDocumentRoot PASSED
  278. tests/unit/nupic/support/custom_configuration_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/support/custom_configuration_test.py:688: ConfigurationCustomTest.testReadConfigFileMissingEnvVars PASSED
  279. tests/unit/nupic/support/custom_configuration_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/support/custom_configuration_test.py:622: ConfigurationCustomTest.testReadConfigFileMissingNonPropertyConfigurationChildren PASSED
  280. tests/unit/nupic/support/custom_configuration_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/support/custom_configuration_test.py:587: ConfigurationCustomTest.testReadConfigFileUnexpectedElementAtRoot PASSED
  281. tests/unit/nupic/support/custom_configuration_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/support/custom_configuration_test.py:489: ConfigurationCustomTest.testSetAndGet PASSED
  282. tests/unit/nupic/support/custom_configuration_test.py:824: ConfigurationCustomTest.testSetConfigPathsForNoneWithNTA_CONF_PATHInEnv PASSED
  283. tests/unit/nupic/support/custom_configuration_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/support/custom_configuration_test.py:157: ConfigurationCustomTest.testSetCustomProperties PASSED
  284. tests/unit/nupic/support/custom_configuration_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/support/custom_configuration_test.py:130: ConfigurationCustomTest.testSetCustomProperty PASSED
  285. tests/unit/nupic/support/custom_configuration_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/support/custom_configuration_test.py:284: ConfigurationCustomTest.testSetInvalidFile PASSED
  286. tests/unit/nupic/support/decorators_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/support/decorators_test.py:250: RetryDecoratorTest.testFailsFirstSucceedsLater PASSED
  287. tests/unit/nupic/support/decorators_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/support/decorators_test.py:232: RetryDecoratorTest.testNoRetryIfCallSucceeds PASSED
  288. tests/unit/nupic/support/decorators_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/support/decorators_test.py:72: RetryDecoratorTest.testRetryNoTimeForRetries PASSED
  289. tests/unit/nupic/support/decorators_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/support/decorators_test.py:140: RetryDecoratorTest.testRetryRetryExceptionExcluded PASSED
  290. tests/unit/nupic/support/decorators_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/support/decorators_test.py:118: RetryDecoratorTest.testRetryRetryExceptionIncluded PASSED
  291. tests/unit/nupic/support/decorators_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/support/decorators_test.py:168: RetryDecoratorTest.testRetryRetryFilter PASSED
  292. tests/unit/nupic/support/decorators_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/support/decorators_test.py:95: RetryDecoratorTest.testRetryWaitsInitialRetryDelaySec PASSED
  293. tests/unit/nupic/support/decorators_test.py <- /data/home/sheiser1/nupic/tests/unit/nupic/support/decorators_test.py:211: RetryDecoratorTest.testReturnsExpectedWithExpectedArgs PASSED
  294. tests/unit/nupic/support/decorators_test.py:317: LogExceptionsTestCase.testLogExceptionsWithRuntimeErrorExceptionAndCustomLogger PASSED
  295. tests/unit/nupic/support/decorators_test.py:294: LogExceptionsTestCase.testLogExceptionsWithRuntimeErrorExceptionAndDefaultLogger PASSED
  296. tests/unit/nupic/support/decorators_test.py:339: LogExceptionsTestCase.testLogExceptionsWithSystemExitExceptionAndDefaultLogger PASSED
  297. tests/unit/nupic/support/decorators_test.py:278: LogExceptionsTestCase.testLogExceptionsWithoutException PASSED
  298. tests/unit/nupic/support/group_by_test.py:128: GroupByTest.testFiveSequences PASSED
  299. tests/unit/nupic/support/group_by_test.py:96: GroupByTest.testFourSequences PASSED
  300. tests/unit/nupic/support/group_by_test.py:29: GroupByTest.testOneSequence PASSED
  301. tests/unit/nupic/support/group_by_test.py:69: GroupByTest.testThreeSequences PASSED
  302. tests/unit/nupic/support/group_by_test.py:46: GroupByTest.testTwoSequences PASSED
  303. tests/unit/nupic/support/object_json_test.py:81: TestObjectJson.testBasicDumps PASSED
  304. tests/unit/nupic/support/object_json_test.py:78: TestObjectJson.testComplex PASSED
  305. tests/unit/nupic/support/object_json_test.py:51: TestObjectJson.testDates PASSED
  306. tests/unit/nupic/support/object_json_test.py:61: TestObjectJson.testDatetimes PASSED
  307. tests/unit/nupic/support/object_json_test.py:91: TestObjectJson.testDump PASSED
  308. tests/unit/nupic/support/object_json_test.py:117: TestObjectJson.testDumpsObject PASSED
  309. tests/unit/nupic/support/object_json_test.py:72: TestObjectJson.testDumpsTuple PASSED
  310. tests/unit/nupic/support/object_json_test.py:86: TestObjectJson.testDumpsWithIndent PASSED
  311. tests/unit/nupic/support/object_json_test.py:107: TestObjectJson.testLoad PASSED
  312. tests/unit/nupic/support/object_json_test.py:97: TestObjectJson.testLoads PASSED
  313. tests/unit/nupic/support/object_json_test.py:102: TestObjectJson.testLoadsWithIndent PASSED
  314. tests/unit/nupic/support/object_json_test.py:112: TestObjectJson.testNonStringKeys PASSED
  315. tests/unit/nupic/support/object_json_test.py:127: TestObjectJson.testObjectWithNonStringKeys PASSED
  316. tests/unit/nupic/support/object_json_test.py:37: TestObjectJson.testPrimitives PASSED
  317. tests/unit/nupic/support/object_json_test.py:75: TestObjectJson.testTuple PASSED
  318. tests/unit/nupic/support/consoleprinter_test/consoleprinter_test.py:48: ConsolePrinterTest.testPrint PASSED
  319.  
  320. =================================== FAILURES ===================================
  321. _________________ CLAModelTest.testTemporalAnomalyModelFactory _________________
  322. self = <tests.unit.nupic.frameworks.opf.clamodel_test.CLAModelTest testMethod=testTemporalAnomalyModelFactory>
  323.  
  324. def testTemporalAnomalyModelFactory(self):
  325. """ Simple test to assert that ModelFactory.create() with a given specific
  326. Temporal Anomaly configuration will return a model that can return
  327. inferences
  328. """
  329. modelConfig = (
  330. {u'aggregationInfo': {u'days': 0,
  331. u'fields': [],
  332. u'hours': 0,
  333. u'microseconds': 0,
  334. u'milliseconds': 0,
  335. u'minutes': 0,
  336. u'months': 0,
  337. u'seconds': 0,
  338. u'weeks': 0,
  339. u'years': 0},
  340. u'model': u'CLA',
  341. u'modelParams': {u'anomalyParams': {u'anomalyCacheRecords': None,
  342. u'autoDetectThreshold': None,
  343. u'autoDetectWaitRecords': 5030},
  344. u'clEnable': False,
  345. u'clParams': {u'alpha': 0.035828933612158,
  346. u'verbosity': 0,
  347. u'regionName': u'CLAClassifierRegion',
  348. u'steps': u'1'},
  349. u'inferenceType': u'TemporalAnomaly',
  350. u'sensorParams': {u'encoders': {u'c0_dayOfWeek': None,
  351. u'c0_timeOfDay': {u'fieldname': u'c0',
  352. u'name': u'c0',
  353. u'timeOfDay': [21,
  354. 9.49122334747737],
  355. u'type': u'DateEncoder'},
  356. u'c0_weekend': None,
  357. u'c1': {u'fieldname': u'c1',
  358. u'name': u'c1',
  359. u'resolution': 0.8771929824561403,
  360. u'seed': 42,
  361. u'type': u'RandomDistributedScalarEncoder'}},
  362. u'sensorAutoReset': None,
  363. u'verbosity': 0},
  364. u'spEnable': True,
  365. u'spParams': {u'potentialPct': 0.8,
  366. u'columnCount': 2048,
  367. u'globalInhibition': 1,
  368. u'inputWidth': 0,
  369. u'maxBoost': 1.0,
  370. u'numActiveColumnsPerInhArea': 40,
  371. u'seed': 1956,
  372. u'spVerbosity': 0,
  373. u'spatialImp': u'cpp',
  374. u'synPermActiveInc': 0.0015,
  375. u'synPermConnected': 0.1,
  376. u'synPermInactiveDec': 0.0005,
  377. },
  378. u'tpEnable': True,
  379. u'tpParams': {u'activationThreshold': 13,
  380. u'cellsPerColumn': 32,
  381. u'columnCount': 2048,
  382. u'globalDecay': 0.0,
  383. u'initialPerm': 0.21,
  384. u'inputWidth': 2048,
  385. u'maxAge': 0,
  386. u'maxSegmentsPerCell': 128,
  387. u'maxSynapsesPerSegment': 32,
  388. u'minThreshold': 10,
  389. u'newSynapseCount': 20,
  390. u'outputType': u'normal',
  391. u'pamLength': 3,
  392. u'permanenceDec': 0.1,
  393. u'permanenceInc': 0.1,
  394. u'seed': 1960,
  395. u'temporalImp': u'cpp',
  396. u'verbosity': 0},
  397. u'trainSPNetOnlyIfRequested': False},
  398. u'predictAheadTime': None,
  399. u'version': 1}
  400. )
  401.  
  402. inferenceArgs = {u'inputPredictedField': u'auto',
  403. u'predictedField': u'c1',
  404. u'predictionSteps': [1]}
  405.  
  406. data = [
  407. {'_category': [None],
  408. '_reset': 0,
  409. '_sequenceId': 0,
  410. '_timestamp': datetime.datetime(2013, 12, 5, 0, 0),
  411. '_timestampRecordIdx': None,
  412. u'c0': datetime.datetime(2013, 12, 5, 0, 0),
  413. u'c1': 5.0},
  414. {'_category': [None],
  415. '_reset': 0,
  416. '_sequenceId': 0,
  417. '_timestamp': datetime.datetime(2013, 12, 6, 0, 0),
  418. '_timestampRecordIdx': None,
  419. u'c0': datetime.datetime(2013, 12, 6, 0, 0),
  420. u'c1': 6.0},
  421. {'_category': [None],
  422. '_reset': 0,
  423. '_sequenceId': 0,
  424. '_timestamp': datetime.datetime(2013, 12, 7, 0, 0),
  425. '_timestampRecordIdx': None,
  426. u'c0': datetime.datetime(2013, 12, 7, 0, 0),
  427. u'c1': 7.0}
  428. ]
  429.  
  430. > model = ModelFactory.create(modelConfig=modelConfig)
  431.  
  432. tests/unit/nupic/frameworks/opf/clamodel_test.py:186:
  433. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  434.  
  435. modelConfig = {'aggregationInfo': {'days': 0, 'fields': [], 'hours': 0, 'microseconds': 0, ...}, 'model': 'CLA', 'modelParams': {'an...ssifierRegion', 'steps': '1', 'verbosity': 0}, 'inferenceType': 'TemporalAnomaly', ...}, 'predictAheadTime': None, ...}
  436. logLevel = 40
  437.  
  438. @staticmethod
  439. def create(modelConfig, logLevel=logging.ERROR):
  440. """ Create a new model instance, given a description dictionary.
  441. @param modelConfig (dict)
  442. A dictionary describing the current model (TODO: schema)
  443. @param logLevel (int) The level of logging output that should be generated
  444. @exception (Exception) Unsupported model type
  445. @returns (nupic.frameworks.opf.model.Model) A model.
  446. """
  447. logger = ModelFactory.__getLogger()
  448. logger.setLevel(logLevel)
  449. logger.debug("ModelFactory returning Model from dict: %s", modelConfig)
  450.  
  451. modelClass = None
  452. if modelConfig['model'] == "CLA":
  453. modelClass = CLAModel
  454. elif modelConfig['model'] == "TwoGram":
  455. modelClass = TwoGramModel
  456. elif modelConfig['model'] == "PreviousValue":
  457. modelClass = PreviousValueModel
  458. else:
  459. raise Exception("ModelFactory received unsupported Model type: %s" % \
  460. modelConfig['model'])
  461.  
  462. > return modelClass(**modelConfig['modelParams'])
  463.  
  464. ../.local/lib/python2.7/site-packages/nupic/frameworks/opf/modelfactory.py:80:
  465. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  466.  
  467. self = <nupic.frameworks.opf.clamodel.CLAModel object at 0x7f56cbdc7e10>
  468. sensorParams = {'encoders': {'c0_dayOfWeek': None, 'c0_timeOfDay': {'fieldname': 'c0', 'name': 'c0', 'timeOfDay': [21, 9.491223347477...ame': 'c1', 'name': 'c1', 'resolution': 0.8771929824561403, 'seed': 42, ...}}, 'sensorAutoReset': None, 'verbosity': 0}
  469. inferenceType = 'TemporalAnomaly', predictedField = None, spEnable = True
  470. spParams = {'columnCount': 2048, 'globalInhibition': 1, 'inputWidth': 0, 'maxBoost': 1.0, ...}
  471. trainSPNetOnlyIfRequested = False, tpEnable = True
  472. tpParams = {'activationThreshold': 13, 'cellsPerColumn': 32, 'columnCount': 2048, 'globalDecay': 0.0, ...}
  473. clEnable = False
  474. clParams = {'alpha': 0.035828933612158, 'regionName': 'CLAClassifierRegion', 'steps': '1', 'verbosity': 0}
  475. anomalyParams = {'anomalyCacheRecords': None, 'autoDetectThreshold': None, 'autoDetectWaitRecords': 5030}
  476. minLikelihoodThreshold = 0.0001, maxPredictionsPerStep = 8, network = None
  477.  
  478. def __init__(self,
  479. sensorParams={},
  480. inferenceType=InferenceType.TemporalNextStep,
  481. predictedField=None,
  482. spEnable=True,
  483. spParams={},
  484.  
  485. # TODO: We can't figure out what this is. Remove?
  486. trainSPNetOnlyIfRequested=False,
  487. tpEnable=True,
  488. tpParams={},
  489. clEnable=True,
  490. clParams={},
  491. anomalyParams={},
  492. minLikelihoodThreshold=DEFAULT_LIKELIHOOD_THRESHOLD,
  493. maxPredictionsPerStep=DEFAULT_MAX_PREDICTIONS_PER_STEP,
  494. network=None):
  495. """CLAModel constructor.
  496.  
  497. Args:
  498. inferenceType: A value from the InferenceType enum class.
  499. predictedField: The field to predict for multistep prediction.
  500. sensorParams: A dictionary specifying the sensor parameters.
  501. spEnable: Whether or not to use a spatial pooler.
  502. spParams: A dictionary specifying the spatial pooler parameters. These
  503. are passed to the spatial pooler.
  504. trainSPNetOnlyIfRequested: If set, don't create an SP network unless the
  505. user requests SP metrics.
  506. tpEnable: Whether to use a temporal pooler.
  507. tpParams: A dictionary specifying the temporal pooler parameters. These
  508. are passed to the temporal pooler.
  509. clEnable: Whether to use the classifier. If false, the classifier will
  510. not be created and no predictions will be generated.
  511. clParams: A dictionary specifying the classifier parameters. These are
  512. are passed to the classifier.
  513. anomalyParams: Anomaly detection parameters
  514. minLikelihoodThreshold: The minimum likelihood value to include in
  515. inferences. Currently only applies to multistep inferences.
  516. maxPredictionsPerStep: Maximum number of predictions to include for
  517. each step in inferences. The predictions with highest likelihood are
  518. included.
  519. """
  520. if not inferenceType in self.__supportedInferenceKindSet:
  521. raise ValueError("{0} received incompatible inference type: {1}"\
  522. .format(self.__class__, inferenceType))
  523.  
  524. # Call super class constructor
  525. super(CLAModel, self).__init__(inferenceType)
  526.  
  527. # self.__restoringFromState is set to True by our __setstate__ method
  528. # and back to False at completion of our _deSerializeExtraData() method.
  529. self.__restoringFromState = False
  530. self.__restoringFromV1 = False
  531.  
  532. # Intitialize logging
  533. self.__logger = initLogger(self)
  534. self.__logger.debug("Instantiating %s." % self.__myClassName)
  535.  
  536.  
  537. self._minLikelihoodThreshold = minLikelihoodThreshold
  538. self._maxPredictionsPerStep = maxPredictionsPerStep
  539.  
  540. # set up learning parameters (note: these may be replaced via
  541. # enable/disable//SP/TP//Learning methods)
  542. self.__spLearningEnabled = bool(spEnable)
  543. self.__tpLearningEnabled = bool(tpEnable)
  544.  
  545. # Explicitly exclude the TP if this type of inference doesn't require it
  546. if not InferenceType.isTemporal(self.getInferenceType()) \
  547. or self.getInferenceType() == InferenceType.NontemporalMultiStep:
  548. tpEnable = False
  549.  
  550. self._netInfo = None
  551. self._hasSP = spEnable
  552. self._hasTP = tpEnable
  553. self._hasCL = clEnable
  554.  
  555. self._classifierInputEncoder = None
  556. self._predictedFieldIdx = None
  557. self._predictedFieldName = None
  558. self._numFields = None
  559. # init anomaly
  560.  
  561. # -----------------------------------------------------------------------
  562. if network is not None:
  563. self._netInfo = NetworkInfo(net=network, statsCollectors=[])
  564. else:
  565. # Create the network
  566. self._netInfo = self.__createCLANetwork(
  567. sensorParams, spEnable, spParams, tpEnable, tpParams, clEnable,
  568. > clParams, anomalyParams)
  569.  
  570. ../.local/lib/python2.7/site-packages/nupic/frameworks/opf/clamodel.py:207:
  571. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  572.  
  573. self = <nupic.frameworks.opf.clamodel.CLAModel object at 0x7f56cbdc7e10>
  574. sensorParams = {'encoders': {'c0_dayOfWeek': None, 'c0_timeOfDay': {'fieldname': 'c0', 'name': 'c0', 'timeOfDay': [21, 9.491223347477...ame': 'c1', 'name': 'c1', 'resolution': 0.8771929824561403, 'seed': 42, ...}}, 'sensorAutoReset': None, 'verbosity': 0}
  575. spEnable = True
  576. spParams = {'columnCount': 2048, 'globalInhibition': 1, 'inputWidth': 454, 'maxBoost': 1.0, ...}
  577. tpEnable = True
  578. tpParams = {'activationThreshold': 13, 'cellsPerColumn': 32, 'columnCount': 2048, 'globalDecay': 0.0, ...}
  579. clEnable = False
  580. clParams = {'alpha': 0.035828933612158, 'regionName': 'CLAClassifierRegion', 'steps': '1', 'verbosity': 0}
  581. anomalyParams = {'anomalyCacheRecords': None, 'autoDetectThreshold': None, 'autoDetectWaitRecords': 5030}
  582.  
  583. def __createCLANetwork(self, sensorParams, spEnable, spParams, tpEnable,
  584. tpParams, clEnable, clParams, anomalyParams):
  585. """ Create a CLA network and return it.
  586.  
  587. description: CLA Model description dictionary (TODO: define schema)
  588. Returns: NetworkInfo instance;
  589. """
  590.  
  591. #--------------------------------------------------
  592. # Create the network
  593. n = Network()
  594.  
  595.  
  596. #--------------------------------------------------
  597. # Add the Sensor
  598. n.addRegion("sensor", "py.RecordSensor", json.dumps(dict(verbosity=sensorParams['verbosity'])))
  599. sensor = n.regions['sensor'].getSelf()
  600.  
  601. enabledEncoders = copy.deepcopy(sensorParams['encoders'])
  602. for name, params in enabledEncoders.items():
  603. if params is not None:
  604. classifierOnly = params.pop('classifierOnly', False)
  605. if classifierOnly:
  606. enabledEncoders.pop(name)
  607.  
  608. # Disabled encoders are encoders that are fed to CLAClassifierRegion but not
  609. # SP or TP Regions. This is to handle the case where the predicted field
  610. # is not fed through the SP/TP. We typically just have one of these now.
  611. disabledEncoders = copy.deepcopy(sensorParams['encoders'])
  612. for name, params in disabledEncoders.items():
  613. if params is None:
  614. disabledEncoders.pop(name)
  615. else:
  616. classifierOnly = params.pop('classifierOnly', False)
  617. if not classifierOnly:
  618. disabledEncoders.pop(name)
  619.  
  620. encoder = MultiEncoder(enabledEncoders)
  621.  
  622. sensor.encoder = encoder
  623. sensor.disabledEncoder = MultiEncoder(disabledEncoders)
  624. sensor.dataSource = DataBuffer()
  625.  
  626. prevRegion = "sensor"
  627. prevRegionWidth = encoder.getWidth()
  628.  
  629. # SP is not enabled for spatial classification network
  630. if spEnable:
  631. spParams = spParams.copy()
  632. spParams['inputWidth'] = prevRegionWidth
  633. self.__logger.debug("Adding SPRegion; spParams: %r" % spParams)
  634. n.addRegion("SP", "py.SPRegion", json.dumps(spParams))
  635.  
  636. # Link SP region
  637. n.link("sensor", "SP", "UniformLink", "")
  638. n.link("sensor", "SP", "UniformLink", "", srcOutput="resetOut",
  639. destInput="resetIn")
  640.  
  641. n.link("SP", "sensor", "UniformLink", "", srcOutput="spatialTopDownOut",
  642. destInput="spatialTopDownIn")
  643. n.link("SP", "sensor", "UniformLink", "", srcOutput="temporalTopDownOut",
  644. destInput="temporalTopDownIn")
  645.  
  646. prevRegion = "SP"
  647. prevRegionWidth = spParams['columnCount']
  648.  
  649. if tpEnable:
  650. tpParams = tpParams.copy()
  651. if prevRegion == 'sensor':
  652. tpParams['inputWidth'] = tpParams['columnCount'] = prevRegionWidth
  653. else:
  654. assert tpParams['columnCount'] == prevRegionWidth
  655. tpParams['inputWidth'] = tpParams['columnCount']
  656.  
  657. self.__logger.debug("Adding TPRegion; tpParams: %r" % tpParams)
  658. > n.addRegion("TP", "py.TPRegion", json.dumps(tpParams))
  659.  
  660. ../.local/lib/python2.7/site-packages/nupic/frameworks/opf/clamodel.py:1132:
  661. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  662.  
  663. self = <nupic.engine.Network; proxy of <Swig Object of type 'nupic::Network *' at 0x7f56cbdc5540> >
  664. name = 'TP', nodeType = 'py.TPRegion'
  665. nodeParams = '{"columnCount": 2048, "pamLength": 3, "permanenceInc": 0.1, "outputType": "normal", "initialPerm": 0.21, "seed": 1960...nputWidth": 2048, "maxSynapsesPerSegment": 32, "globalDecay": 0.0, "newSynapseCount": 20, "maxAge": 0, "verbosity": 0}'
  666.  
  667. def addRegion(self, name, nodeType, nodeParams):
  668. """
  669. @doc:place_holder(Network.addRegion)
  670. """
  671. > engine.Network.addRegion(self, name, nodeType, nodeParams)
  672.  
  673. ../.local/lib/python2.7/site-packages/nupic/engine/__init__.py:666:
  674. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  675.  
  676. self = <nupic.engine.Network; proxy of <Swig Object of type 'nupic::Network *' at 0x7f56cbdc5540> >
  677. args = ('TP', 'py.TPRegion', '{"columnCount": 2048, "pamLength": 3, "permanenceInc": 0.1, "outputType": "normal", "initialPer...putWidth": 2048, "maxSynapsesPerSegment": 32, "globalDecay": 0.0, "newSynapseCount": 20, "maxAge": 0, "verbosity": 0}')
  678. kwargs = {}
  679.  
  680. def addRegion(self, *args, **kwargs):
  681. """addRegion(self, name, nodeType, nodeParams) -> Region"""
  682. > return _engine_internal.Network_addRegion(self, *args, **kwargs)
  683.  
  684. ../.local/lib/python2.7/site-packages/nupic/bindings/engine_internal.py:1109:
  685. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  686.  
  687. import os
  688. import numpy
  689.  
  690. from nupic.algorithms import anomaly
  691. from nupic.research import TP
  692. from nupic.research import TP10X2
  693. > from nupic.research import TP_shim
  694.  
  695. ../.local/lib/python2.7/site-packages/nupic/regions/TPRegion.py:28:
  696. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  697.  
  698. """
  699.  
  700. import numpy
  701.  
  702. from nupic.research.temporal_memory import TemporalMemory
  703. from nupic.bindings.algorithms import TemporalMemory as TemporalMemoryCPP
  704. > from nupic.research.monitor_mixin.temporal_memory_monitor_mixin import (
  705. TemporalMemoryMonitorMixin)
  706.  
  707. ../.local/lib/python2.7/site-packages/nupic/research/TP_shim.py:31:
  708. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  709.  
  710. """
  711.  
  712. from collections import defaultdict
  713.  
  714. import copy
  715.  
  716. from prettytable import PrettyTable
  717.  
  718. from nupic.research.monitor_mixin.metric import Metric
  719. > from nupic.research.monitor_mixin.monitor_mixin_base import MonitorMixinBase
  720.  
  721. ../.local/lib/python2.7/site-packages/nupic/research/monitor_mixin/temporal_memory_monitor_mixin.py:33:
  722. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  723.  
  724. """
  725.  
  726. import abc
  727.  
  728. import numpy
  729. from prettytable import PrettyTable
  730.  
  731. > from nupic.research.monitor_mixin.plot import Plot
  732.  
  733. ../.local/lib/python2.7/site-packages/nupic/research/monitor_mixin/monitor_mixin_base.py:84:
  734. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  735.  
  736. """
  737.  
  738. import os
  739.  
  740. try:
  741. # We import in here to avoid creating a matplotlib dependency in nupic.
  742. > import matplotlib.pyplot as plt
  743.  
  744. ../.local/lib/python2.7/site-packages/nupic/research/monitor_mixin/plot.py:30:
  745. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  746.  
  747. """
  748. from __future__ import (absolute_import, division, print_function,
  749. unicode_literals)
  750.  
  751. import six
  752.  
  753. import sys
  754. import warnings
  755.  
  756. import matplotlib
  757. import matplotlib.colorbar
  758. from matplotlib import style
  759. from matplotlib import _pylab_helpers, interactive
  760. from matplotlib.cbook import dedent, silent_list, is_string_like, is_numlike
  761. from matplotlib.cbook import _string_to_bool
  762. from matplotlib import docstring
  763. from matplotlib.backend_bases import FigureCanvasBase
  764. from matplotlib.figure import Figure, figaspect
  765. from matplotlib.gridspec import GridSpec
  766. from matplotlib.image import imread as _imread
  767. from matplotlib.image import imsave as _imsave
  768. from matplotlib import rcParams, rcParamsDefault, get_backend
  769. from matplotlib import rc_context
  770. from matplotlib.rcsetup import interactive_bk as _interactive_bk
  771. from matplotlib.artist import getp, get, Artist
  772. from matplotlib.artist import setp as _setp
  773. from matplotlib.axes import Axes, Subplot
  774. from matplotlib.projections import PolarAxes
  775. from matplotlib import mlab # for csv2rec, detrend_none, window_hanning
  776. from matplotlib.scale import get_scale_docs, get_scale_names
  777.  
  778. from matplotlib import cm
  779. from matplotlib.cm import get_cmap, register_cmap
  780.  
  781. import numpy as np
  782.  
  783. # We may not need the following imports here:
  784. from matplotlib.colors import Normalize
  785. from matplotlib.colors import normalize # for backwards compat.
  786. from matplotlib.lines import Line2D
  787. from matplotlib.text import Text, Annotation
  788. from matplotlib.patches import Polygon, Rectangle, Circle, Arrow
  789. from matplotlib.widgets import SubplotTool, Button, Slider, Widget
  790.  
  791. from .ticker import TickHelper, Formatter, FixedFormatter, NullFormatter,\
  792. FuncFormatter, FormatStrFormatter, ScalarFormatter,\
  793. LogFormatter, LogFormatterExponent, LogFormatterMathtext,\
  794. Locator, IndexLocator, FixedLocator, NullLocator,\
  795. LinearLocator, LogLocator, AutoLocator, MultipleLocator,\
  796. MaxNLocator
  797.  
  798.  
  799. ## Backend detection ##
  800. def _backend_selection():
  801. """ If rcParams['backend_fallback'] is true, check to see if the
  802. current backend is compatible with the current running event
  803. loop, and if not switches to a compatible one.
  804. """
  805. backend = rcParams['backend']
  806. if not rcParams['backend_fallback'] or \
  807. backend not in _interactive_bk:
  808. return
  809. is_agg_backend = rcParams['backend'].endswith('Agg')
  810. if 'wx' in sys.modules and not backend in ('WX', 'WXAgg'):
  811. import wx
  812. if wx.App.IsMainLoopRunning():
  813. rcParams['backend'] = 'wx' + 'Agg' * is_agg_backend
  814. elif 'PyQt4.QtCore' in sys.modules and not backend == 'Qt4Agg':
  815. import PyQt4.QtGui
  816. if not PyQt4.QtGui.qApp.startingUp():
  817. # The mainloop is running.
  818. rcParams['backend'] = 'qt4Agg'
  819. elif 'PyQt5.QtCore' in sys.modules and not backend == 'Qt5Agg':
  820. import PyQt5.QtWidgets
  821. if not PyQt5.QtWidgets.qApp.startingUp():
  822. # The mainloop is running.
  823. rcParams['backend'] = 'qt5Agg'
  824. elif ('gtk' in sys.modules
  825. and backend not in ('GTK', 'GTKAgg', 'GTKCairo')
  826. and 'gi.repository.GObject' not in sys.modules):
  827. import gobject
  828. if gobject.MainLoop().is_running():
  829. rcParams['backend'] = 'gtk' + 'Agg' * is_agg_backend
  830. elif 'Tkinter' in sys.modules and not backend == 'TkAgg':
  831. # import Tkinter
  832. pass # what if anything do we need to do for tkinter?
  833.  
  834. _backend_selection()
  835.  
  836. ## Global ##
  837.  
  838. from matplotlib.backends import pylab_setup
  839. > _backend_mod, new_figure_manager, draw_if_interactive, _show = pylab_setup()
  840.  
  841. /usr/local/lib/python2.7/dist-packages/matplotlib/pyplot.py:109:
  842. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  843.  
  844. def pylab_setup():
  845. 'return new_figure_manager, draw_if_interactive and show for pylab'
  846. # Import the requested backend into a generic module object
  847.  
  848. if backend.startswith('module://'):
  849. backend_name = backend[9:]
  850. else:
  851. backend_name = 'backend_'+backend
  852. backend_name = backend_name.lower() # until we banish mixed case
  853. backend_name = 'matplotlib.backends.%s'%backend_name.lower()
  854.  
  855. # the last argument is specifies whether to use absolute or relative
  856. # imports. 0 means only perform absolute imports.
  857. backend_mod = __import__(backend_name,
  858. > globals(),locals(),[backend_name],0)
  859.  
  860. /usr/local/lib/python2.7/dist-packages/matplotlib/backends/__init__.py:32:
  861. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  862.  
  863. from __future__ import (absolute_import, division, print_function,
  864. unicode_literals)
  865.  
  866. import six
  867.  
  868. import numpy as np
  869. import sys
  870. import warnings
  871.  
  872. from . import backend_agg
  873. > from . import backend_gtk3
  874.  
  875. /usr/local/lib/python2.7/dist-packages/matplotlib/backends/backend_gtk3agg.py:11:
  876. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  877.  
  878. from __future__ import (absolute_import, division, print_function,
  879. unicode_literals)
  880.  
  881. import six
  882.  
  883. import os, sys
  884. def fn_name(): return sys._getframe(1).f_code.co_name
  885.  
  886. try:
  887. import gi
  888. except ImportError:
  889. raise ImportError("Gtk3 backend requires pygobject to be installed.")
  890.  
  891. try:
  892. gi.require_version("Gtk", "3.0")
  893. except AttributeError:
  894. raise ImportError(
  895. "pygobject version too old -- it must have require_version")
  896. except ValueError:
  897. raise ImportError(
  898. "Gtk3 backend requires the GObject introspection bindings for Gtk 3 "
  899. "to be installed.")
  900.  
  901. try:
  902. from gi.repository import Gtk, Gdk, GObject, GLib
  903. except ImportError:
  904. raise ImportError("Gtk3 backend requires pygobject to be installed.")
  905.  
  906. import matplotlib
  907. from matplotlib._pylab_helpers import Gcf
  908. from matplotlib.backend_bases import RendererBase, GraphicsContextBase, \
  909. FigureManagerBase, FigureCanvasBase, NavigationToolbar2, cursors, TimerBase
  910. from matplotlib.backend_bases import ShowBase
  911.  
  912. from matplotlib.cbook import is_string_like, is_writable_file_like
  913. from matplotlib.colors import colorConverter
  914. from matplotlib.figure import Figure
  915. from matplotlib.widgets import SubplotTool
  916.  
  917. from matplotlib import lines
  918. from matplotlib import cbook
  919. from matplotlib import verbose
  920. from matplotlib import rcParams
  921.  
  922. backend_version = "%s.%s.%s" % (Gtk.get_major_version(), Gtk.get_micro_version(), Gtk.get_minor_version())
  923.  
  924. _debug = False
  925. #_debug = True
  926.  
  927. # the true dots per inch on the screen; should be display dependent
  928. # see http://groups.google.com/groups?q=screen+dpi+x11&hl=en&lr=&ie=UTF-8&oe=UTF-8&safe=off&selm=7077.26e81ad5%40swift.cs.tcd.ie&rnum=5 for some info about screen dpi
  929. PIXELS_PER_INCH = 96
  930.  
  931. cursord = {
  932. > cursors.MOVE : Gdk.Cursor.new(Gdk.CursorType.FLEUR),
  933. cursors.HAND : Gdk.Cursor.new(Gdk.CursorType.HAND2),
  934. cursors.POINTER : Gdk.Cursor.new(Gdk.CursorType.LEFT_PTR),
  935. cursors.SELECT_REGION : Gdk.Cursor.new(Gdk.CursorType.TCROSS),
  936. }
  937. E TypeError: constructor returned NULL
  938.  
  939. /usr/local/lib/python2.7/dist-packages/matplotlib/backends/backend_gtk3.py:55: TypeError
  940. ------------------------------- Captured stdout --------------------------------
  941. ERR: Matching Python module for TPRegion not found. [/home/travis/build/numenta/nupic.core/src/nupic/engine/RegionImplFactory.cpp line 431]
  942. ------------------------------- Captured stderr --------------------------------
  943. Failed to connect to Mir: Failed to connect to server socket: No such file or directory
  944. Unable to init server: Could not connect: Connection refused
  945. Failed to connect to Mir: Failed to connect to server socket: No such file or directory
  946. Unable to init server: Could not connect: Connection refused
  947.  
  948. (py.test:4720): Gdk-CRITICAL **: gdk_cursor_new_for_display: assertion 'GDK_IS_DISPLAY (display)' failed
  949. ______________________ ClusterParamsTest.testModelParams _______________________
  950. self = <tests.unit.nupic.frameworks.opf.common_models.cluster_params_test.ClusterParamsTest testMethod=testModelParams>
  951.  
  952. def testModelParams(self):
  953. """
  954. Test that clusterParams loads returns a valid dict that can be instantiated
  955. as a CLAModel.
  956. """
  957. params = getScalarMetricWithTimeOfDayAnomalyParams([0],
  958. minVal=23.42,
  959. maxVal=23.420001)
  960.  
  961. encodersDict= (
  962. params['modelConfig']['modelParams']['sensorParams']['encoders'])
  963.  
  964. > model = ModelFactory.create(modelConfig=params['modelConfig'])
  965.  
  966. tests/unit/nupic/frameworks/opf/common_models/cluster_params_test.py:49:
  967. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  968.  
  969. modelConfig = {'aggregationInfo': {'days': 0, 'fields': [], 'hours': 0, 'microseconds': 0, ...}, 'model': 'CLA', 'modelParams': {'an...ssifierRegion', 'steps': '1', 'verbosity': 0}, 'inferenceType': 'TemporalAnomaly', ...}, 'predictAheadTime': None, ...}
  970. logLevel = 40
  971.  
  972. @staticmethod
  973. def create(modelConfig, logLevel=logging.ERROR):
  974. """ Create a new model instance, given a description dictionary.
  975. @param modelConfig (dict)
  976. A dictionary describing the current model (TODO: schema)
  977. @param logLevel (int) The level of logging output that should be generated
  978. @exception (Exception) Unsupported model type
  979. @returns (nupic.frameworks.opf.model.Model) A model.
  980. """
  981. logger = ModelFactory.__getLogger()
  982. logger.setLevel(logLevel)
  983. logger.debug("ModelFactory returning Model from dict: %s", modelConfig)
  984.  
  985. modelClass = None
  986. if modelConfig['model'] == "CLA":
  987. modelClass = CLAModel
  988. elif modelConfig['model'] == "TwoGram":
  989. modelClass = TwoGramModel
  990. elif modelConfig['model'] == "PreviousValue":
  991. modelClass = PreviousValueModel
  992. else:
  993. raise Exception("ModelFactory received unsupported Model type: %s" % \
  994. modelConfig['model'])
  995.  
  996. > return modelClass(**modelConfig['modelParams'])
  997.  
  998. ../.local/lib/python2.7/site-packages/nupic/frameworks/opf/modelfactory.py:80:
  999. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  1000.  
  1001. self = <nupic.frameworks.opf.clamodel.CLAModel object at 0x7f56cbcbb6d0>
  1002. sensorParams = {'encoders': {'c0_dayOfWeek': None, 'c0_timeOfDay': {'fieldname': 'c0', 'name': 'c0', 'timeOfDay': [21, 9.49], 'type':...c1': {'fieldname': 'c1', 'name': 'c1', 'resolution': 0.001, 'seed': 42, ...}}, 'sensorAutoReset': None, 'verbosity': 0}
  1003. inferenceType = 'TemporalAnomaly', predictedField = None, spEnable = True
  1004. spParams = {'columnCount': 2048, 'globalInhibition': 1, 'inputWidth': 0, 'maxBoost': 1.0, ...}
  1005. trainSPNetOnlyIfRequested = False, tpEnable = True
  1006. tpParams = {'activationThreshold': 13, 'cellsPerColumn': 32, 'columnCount': 2048, 'globalDecay': 0.0, ...}
  1007. clEnable = False
  1008. clParams = {'alpha': 0.035828933612158, 'regionName': 'SDRClassifierRegion', 'steps': '1', 'verbosity': 0}
  1009. anomalyParams = {'anomalyCacheRecords': None, 'autoDetectThreshold': None, 'autoDetectWaitRecords': 5030}
  1010. minLikelihoodThreshold = 0.0001, maxPredictionsPerStep = 8, network = None
  1011.  
  1012. def __init__(self,
  1013. sensorParams={},
  1014. inferenceType=InferenceType.TemporalNextStep,
  1015. predictedField=None,
  1016. spEnable=True,
  1017. spParams={},
  1018.  
  1019. # TODO: We can't figure out what this is. Remove?
  1020. trainSPNetOnlyIfRequested=False,
  1021. tpEnable=True,
  1022. tpParams={},
  1023. clEnable=True,
  1024. clParams={},
  1025. anomalyParams={},
  1026. minLikelihoodThreshold=DEFAULT_LIKELIHOOD_THRESHOLD,
  1027. maxPredictionsPerStep=DEFAULT_MAX_PREDICTIONS_PER_STEP,
  1028. network=None):
  1029. """CLAModel constructor.
  1030.  
  1031. Args:
  1032. inferenceType: A value from the InferenceType enum class.
  1033. predictedField: The field to predict for multistep prediction.
  1034. sensorParams: A dictionary specifying the sensor parameters.
  1035. spEnable: Whether or not to use a spatial pooler.
  1036. spParams: A dictionary specifying the spatial pooler parameters. These
  1037. are passed to the spatial pooler.
  1038. trainSPNetOnlyIfRequested: If set, don't create an SP network unless the
  1039. user requests SP metrics.
  1040. tpEnable: Whether to use a temporal pooler.
  1041. tpParams: A dictionary specifying the temporal pooler parameters. These
  1042. are passed to the temporal pooler.
  1043. clEnable: Whether to use the classifier. If false, the classifier will
  1044. not be created and no predictions will be generated.
  1045. clParams: A dictionary specifying the classifier parameters. These are
  1046. are passed to the classifier.
  1047. anomalyParams: Anomaly detection parameters
  1048. minLikelihoodThreshold: The minimum likelihood value to include in
  1049. inferences. Currently only applies to multistep inferences.
  1050. maxPredictionsPerStep: Maximum number of predictions to include for
  1051. each step in inferences. The predictions with highest likelihood are
  1052. included.
  1053. """
  1054. if not inferenceType in self.__supportedInferenceKindSet:
  1055. raise ValueError("{0} received incompatible inference type: {1}"\
  1056. .format(self.__class__, inferenceType))
  1057.  
  1058. # Call super class constructor
  1059. super(CLAModel, self).__init__(inferenceType)
  1060.  
  1061. # self.__restoringFromState is set to True by our __setstate__ method
  1062. # and back to False at completion of our _deSerializeExtraData() method.
  1063. self.__restoringFromState = False
  1064. self.__restoringFromV1 = False
  1065.  
  1066. # Intitialize logging
  1067. self.__logger = initLogger(self)
  1068. self.__logger.debug("Instantiating %s." % self.__myClassName)
  1069.  
  1070.  
  1071. self._minLikelihoodThreshold = minLikelihoodThreshold
  1072. self._maxPredictionsPerStep = maxPredictionsPerStep
  1073.  
  1074. # set up learning parameters (note: these may be replaced via
  1075. # enable/disable//SP/TP//Learning methods)
  1076. self.__spLearningEnabled = bool(spEnable)
  1077. self.__tpLearningEnabled = bool(tpEnable)
  1078.  
  1079. # Explicitly exclude the TP if this type of inference doesn't require it
  1080. if not InferenceType.isTemporal(self.getInferenceType()) \
  1081. or self.getInferenceType() == InferenceType.NontemporalMultiStep:
  1082. tpEnable = False
  1083.  
  1084. self._netInfo = None
  1085. self._hasSP = spEnable
  1086. self._hasTP = tpEnable
  1087. self._hasCL = clEnable
  1088.  
  1089. self._classifierInputEncoder = None
  1090. self._predictedFieldIdx = None
  1091. self._predictedFieldName = None
  1092. self._numFields = None
  1093. # init anomaly
  1094.  
  1095. # -----------------------------------------------------------------------
  1096. if network is not None:
  1097. self._netInfo = NetworkInfo(net=network, statsCollectors=[])
  1098. else:
  1099. # Create the network
  1100. self._netInfo = self.__createCLANetwork(
  1101. sensorParams, spEnable, spParams, tpEnable, tpParams, clEnable,
  1102. > clParams, anomalyParams)
  1103.  
  1104. ../.local/lib/python2.7/site-packages/nupic/frameworks/opf/clamodel.py:207:
  1105. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  1106.  
  1107. self = <nupic.frameworks.opf.clamodel.CLAModel object at 0x7f56cbcbb6d0>
  1108. sensorParams = {'encoders': {'c0_dayOfWeek': None, 'c0_timeOfDay': {'fieldname': 'c0', 'name': 'c0', 'timeOfDay': [21, 9.49], 'type':...c1': {'fieldname': 'c1', 'name': 'c1', 'resolution': 0.001, 'seed': 42, ...}}, 'sensorAutoReset': None, 'verbosity': 0}
  1109. spEnable = True
  1110. spParams = {'columnCount': 2048, 'globalInhibition': 1, 'inputWidth': 454, 'maxBoost': 1.0, ...}
  1111. tpEnable = True
  1112. tpParams = {'activationThreshold': 13, 'cellsPerColumn': 32, 'columnCount': 2048, 'globalDecay': 0.0, ...}
  1113. clEnable = False
  1114. clParams = {'alpha': 0.035828933612158, 'regionName': 'SDRClassifierRegion', 'steps': '1', 'verbosity': 0}
  1115. anomalyParams = {'anomalyCacheRecords': None, 'autoDetectThreshold': None, 'autoDetectWaitRecords': 5030}
  1116.  
  1117. def __createCLANetwork(self, sensorParams, spEnable, spParams, tpEnable,
  1118. tpParams, clEnable, clParams, anomalyParams):
  1119. """ Create a CLA network and return it.
  1120.  
  1121. description: CLA Model description dictionary (TODO: define schema)
  1122. Returns: NetworkInfo instance;
  1123. """
  1124.  
  1125. #--------------------------------------------------
  1126. # Create the network
  1127. n = Network()
  1128.  
  1129.  
  1130. #--------------------------------------------------
  1131. # Add the Sensor
  1132. n.addRegion("sensor", "py.RecordSensor", json.dumps(dict(verbosity=sensorParams['verbosity'])))
  1133. sensor = n.regions['sensor'].getSelf()
  1134.  
  1135. enabledEncoders = copy.deepcopy(sensorParams['encoders'])
  1136. for name, params in enabledEncoders.items():
  1137. if params is not None:
  1138. classifierOnly = params.pop('classifierOnly', False)
  1139. if classifierOnly:
  1140. enabledEncoders.pop(name)
  1141.  
  1142. # Disabled encoders are encoders that are fed to CLAClassifierRegion but not
  1143. # SP or TP Regions. This is to handle the case where the predicted field
  1144. # is not fed through the SP/TP. We typically just have one of these now.
  1145. disabledEncoders = copy.deepcopy(sensorParams['encoders'])
  1146. for name, params in disabledEncoders.items():
  1147. if params is None:
  1148. disabledEncoders.pop(name)
  1149. else:
  1150. classifierOnly = params.pop('classifierOnly', False)
  1151. if not classifierOnly:
  1152. disabledEncoders.pop(name)
  1153.  
  1154. encoder = MultiEncoder(enabledEncoders)
  1155.  
  1156. sensor.encoder = encoder
  1157. sensor.disabledEncoder = MultiEncoder(disabledEncoders)
  1158. sensor.dataSource = DataBuffer()
  1159.  
  1160. prevRegion = "sensor"
  1161. prevRegionWidth = encoder.getWidth()
  1162.  
  1163. # SP is not enabled for spatial classification network
  1164. if spEnable:
  1165. spParams = spParams.copy()
  1166. spParams['inputWidth'] = prevRegionWidth
  1167. self.__logger.debug("Adding SPRegion; spParams: %r" % spParams)
  1168. n.addRegion("SP", "py.SPRegion", json.dumps(spParams))
  1169.  
  1170. # Link SP region
  1171. n.link("sensor", "SP", "UniformLink", "")
  1172. n.link("sensor", "SP", "UniformLink", "", srcOutput="resetOut",
  1173. destInput="resetIn")
  1174.  
  1175. n.link("SP", "sensor", "UniformLink", "", srcOutput="spatialTopDownOut",
  1176. destInput="spatialTopDownIn")
  1177. n.link("SP", "sensor", "UniformLink", "", srcOutput="temporalTopDownOut",
  1178. destInput="temporalTopDownIn")
  1179.  
  1180. prevRegion = "SP"
  1181. prevRegionWidth = spParams['columnCount']
  1182.  
  1183. if tpEnable:
  1184. tpParams = tpParams.copy()
  1185. if prevRegion == 'sensor':
  1186. tpParams['inputWidth'] = tpParams['columnCount'] = prevRegionWidth
  1187. else:
  1188. assert tpParams['columnCount'] == prevRegionWidth
  1189. tpParams['inputWidth'] = tpParams['columnCount']
  1190.  
  1191. self.__logger.debug("Adding TPRegion; tpParams: %r" % tpParams)
  1192. > n.addRegion("TP", "py.TPRegion", json.dumps(tpParams))
  1193.  
  1194. ../.local/lib/python2.7/site-packages/nupic/frameworks/opf/clamodel.py:1132:
  1195. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  1196.  
  1197. self = <nupic.engine.Network; proxy of <Swig Object of type 'nupic::Network *' at 0x7f56cbcca840> >
  1198. name = 'TP', nodeType = 'py.TPRegion'
  1199. nodeParams = '{"columnCount": 2048, "pamLength": 3, "permanenceInc": 0.1, "outputType": "normal", "initialPerm": 0.21, "seed": 1960...nputWidth": 2048, "maxSynapsesPerSegment": 32, "globalDecay": 0.0, "newSynapseCount": 20, "maxAge": 0, "verbosity": 0}'
  1200.  
  1201. def addRegion(self, name, nodeType, nodeParams):
  1202. """
  1203. @doc:place_holder(Network.addRegion)
  1204. """
  1205. > engine.Network.addRegion(self, name, nodeType, nodeParams)
  1206.  
  1207. ../.local/lib/python2.7/site-packages/nupic/engine/__init__.py:666:
  1208. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  1209.  
  1210. self = <nupic.engine.Network; proxy of <Swig Object of type 'nupic::Network *' at 0x7f56cbcca840> >
  1211. args = ('TP', 'py.TPRegion', '{"columnCount": 2048, "pamLength": 3, "permanenceInc": 0.1, "outputType": "normal", "initialPer...putWidth": 2048, "maxSynapsesPerSegment": 32, "globalDecay": 0.0, "newSynapseCount": 20, "maxAge": 0, "verbosity": 0}')
  1212. kwargs = {}
  1213.  
  1214. def addRegion(self, *args, **kwargs):
  1215. """addRegion(self, name, nodeType, nodeParams) -> Region"""
  1216. > return _engine_internal.Network_addRegion(self, *args, **kwargs)
  1217.  
  1218. ../.local/lib/python2.7/site-packages/nupic/bindings/engine_internal.py:1109:
  1219. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  1220.  
  1221. import os
  1222. import numpy
  1223.  
  1224. from nupic.algorithms import anomaly
  1225. from nupic.research import TP
  1226. from nupic.research import TP10X2
  1227. > from nupic.research import TP_shim
  1228.  
  1229. ../.local/lib/python2.7/site-packages/nupic/regions/TPRegion.py:28:
  1230. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  1231.  
  1232. """
  1233.  
  1234. import numpy
  1235.  
  1236. from nupic.research.temporal_memory import TemporalMemory
  1237. from nupic.bindings.algorithms import TemporalMemory as TemporalMemoryCPP
  1238. > from nupic.research.monitor_mixin.temporal_memory_monitor_mixin import (
  1239. TemporalMemoryMonitorMixin)
  1240.  
  1241. ../.local/lib/python2.7/site-packages/nupic/research/TP_shim.py:31:
  1242. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  1243.  
  1244. """
  1245.  
  1246. from collections import defaultdict
  1247.  
  1248. import copy
  1249.  
  1250. from prettytable import PrettyTable
  1251.  
  1252. from nupic.research.monitor_mixin.metric import Metric
  1253. > from nupic.research.monitor_mixin.monitor_mixin_base import MonitorMixinBase
  1254.  
  1255. ../.local/lib/python2.7/site-packages/nupic/research/monitor_mixin/temporal_memory_monitor_mixin.py:33:
  1256. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  1257.  
  1258. """
  1259.  
  1260. import abc
  1261.  
  1262. import numpy
  1263. from prettytable import PrettyTable
  1264.  
  1265. > from nupic.research.monitor_mixin.plot import Plot
  1266.  
  1267. ../.local/lib/python2.7/site-packages/nupic/research/monitor_mixin/monitor_mixin_base.py:84:
  1268. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  1269.  
  1270. """
  1271.  
  1272. import os
  1273.  
  1274. try:
  1275. # We import in here to avoid creating a matplotlib dependency in nupic.
  1276. > import matplotlib.pyplot as plt
  1277.  
  1278. ../.local/lib/python2.7/site-packages/nupic/research/monitor_mixin/plot.py:30:
  1279. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  1280.  
  1281. """
  1282. from __future__ import (absolute_import, division, print_function,
  1283. unicode_literals)
  1284.  
  1285. import six
  1286.  
  1287. import sys
  1288. import warnings
  1289.  
  1290. import matplotlib
  1291. import matplotlib.colorbar
  1292. from matplotlib import style
  1293. from matplotlib import _pylab_helpers, interactive
  1294. from matplotlib.cbook import dedent, silent_list, is_string_like, is_numlike
  1295. from matplotlib.cbook import _string_to_bool
  1296. from matplotlib import docstring
  1297. from matplotlib.backend_bases import FigureCanvasBase
  1298. from matplotlib.figure import Figure, figaspect
  1299. from matplotlib.gridspec import GridSpec
  1300. from matplotlib.image import imread as _imread
  1301. from matplotlib.image import imsave as _imsave
  1302. from matplotlib import rcParams, rcParamsDefault, get_backend
  1303. from matplotlib import rc_context
  1304. from matplotlib.rcsetup import interactive_bk as _interactive_bk
  1305. from matplotlib.artist import getp, get, Artist
  1306. from matplotlib.artist import setp as _setp
  1307. from matplotlib.axes import Axes, Subplot
  1308. from matplotlib.projections import PolarAxes
  1309. from matplotlib import mlab # for csv2rec, detrend_none, window_hanning
  1310. from matplotlib.scale import get_scale_docs, get_scale_names
  1311.  
  1312. from matplotlib import cm
  1313. from matplotlib.cm import get_cmap, register_cmap
  1314.  
  1315. import numpy as np
  1316.  
  1317. # We may not need the following imports here:
  1318. from matplotlib.colors import Normalize
  1319. from matplotlib.colors import normalize # for backwards compat.
  1320. from matplotlib.lines import Line2D
  1321. from matplotlib.text import Text, Annotation
  1322. from matplotlib.patches import Polygon, Rectangle, Circle, Arrow
  1323. from matplotlib.widgets import SubplotTool, Button, Slider, Widget
  1324.  
  1325. from .ticker import TickHelper, Formatter, FixedFormatter, NullFormatter,\
  1326. FuncFormatter, FormatStrFormatter, ScalarFormatter,\
  1327. LogFormatter, LogFormatterExponent, LogFormatterMathtext,\
  1328. Locator, IndexLocator, FixedLocator, NullLocator,\
  1329. LinearLocator, LogLocator, AutoLocator, MultipleLocator,\
  1330. MaxNLocator
  1331.  
  1332.  
  1333. ## Backend detection ##
  1334. def _backend_selection():
  1335. """ If rcParams['backend_fallback'] is true, check to see if the
  1336. current backend is compatible with the current running event
  1337. loop, and if not switches to a compatible one.
  1338. """
  1339. backend = rcParams['backend']
  1340. if not rcParams['backend_fallback'] or \
  1341. backend not in _interactive_bk:
  1342. return
  1343. is_agg_backend = rcParams['backend'].endswith('Agg')
  1344. if 'wx' in sys.modules and not backend in ('WX', 'WXAgg'):
  1345. import wx
  1346. if wx.App.IsMainLoopRunning():
  1347. rcParams['backend'] = 'wx' + 'Agg' * is_agg_backend
  1348. elif 'PyQt4.QtCore' in sys.modules and not backend == 'Qt4Agg':
  1349. import PyQt4.QtGui
  1350. if not PyQt4.QtGui.qApp.startingUp():
  1351. # The mainloop is running.
  1352. rcParams['backend'] = 'qt4Agg'
  1353. elif 'PyQt5.QtCore' in sys.modules and not backend == 'Qt5Agg':
  1354. import PyQt5.QtWidgets
  1355. if not PyQt5.QtWidgets.qApp.startingUp():
  1356. # The mainloop is running.
  1357. rcParams['backend'] = 'qt5Agg'
  1358. elif ('gtk' in sys.modules
  1359. and backend not in ('GTK', 'GTKAgg', 'GTKCairo')
  1360. and 'gi.repository.GObject' not in sys.modules):
  1361. import gobject
  1362. if gobject.MainLoop().is_running():
  1363. rcParams['backend'] = 'gtk' + 'Agg' * is_agg_backend
  1364. elif 'Tkinter' in sys.modules and not backend == 'TkAgg':
  1365. # import Tkinter
  1366. pass # what if anything do we need to do for tkinter?
  1367.  
  1368. _backend_selection()
  1369.  
  1370. ## Global ##
  1371.  
  1372. from matplotlib.backends import pylab_setup
  1373. > _backend_mod, new_figure_manager, draw_if_interactive, _show = pylab_setup()
  1374.  
  1375. /usr/local/lib/python2.7/dist-packages/matplotlib/pyplot.py:109:
  1376. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  1377.  
  1378. def pylab_setup():
  1379. 'return new_figure_manager, draw_if_interactive and show for pylab'
  1380. # Import the requested backend into a generic module object
  1381.  
  1382. if backend.startswith('module://'):
  1383. backend_name = backend[9:]
  1384. else:
  1385. backend_name = 'backend_'+backend
  1386. backend_name = backend_name.lower() # until we banish mixed case
  1387. backend_name = 'matplotlib.backends.%s'%backend_name.lower()
  1388.  
  1389. # the last argument is specifies whether to use absolute or relative
  1390. # imports. 0 means only perform absolute imports.
  1391. backend_mod = __import__(backend_name,
  1392. > globals(),locals(),[backend_name],0)
  1393.  
  1394. /usr/local/lib/python2.7/dist-packages/matplotlib/backends/__init__.py:32:
  1395. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  1396.  
  1397. from __future__ import (absolute_import, division, print_function,
  1398. unicode_literals)
  1399.  
  1400. import six
  1401.  
  1402. import numpy as np
  1403. import sys
  1404. import warnings
  1405.  
  1406. from . import backend_agg
  1407. > from . import backend_gtk3
  1408.  
  1409. /usr/local/lib/python2.7/dist-packages/matplotlib/backends/backend_gtk3agg.py:11:
  1410. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  1411.  
  1412. from __future__ import (absolute_import, division, print_function,
  1413. unicode_literals)
  1414.  
  1415. import six
  1416.  
  1417. import os, sys
  1418. def fn_name(): return sys._getframe(1).f_code.co_name
  1419.  
  1420. try:
  1421. import gi
  1422. except ImportError:
  1423. raise ImportError("Gtk3 backend requires pygobject to be installed.")
  1424.  
  1425. try:
  1426. gi.require_version("Gtk", "3.0")
  1427. except AttributeError:
  1428. raise ImportError(
  1429. "pygobject version too old -- it must have require_version")
  1430. except ValueError:
  1431. raise ImportError(
  1432. "Gtk3 backend requires the GObject introspection bindings for Gtk 3 "
  1433. "to be installed.")
  1434.  
  1435. try:
  1436. from gi.repository import Gtk, Gdk, GObject, GLib
  1437. except ImportError:
  1438. raise ImportError("Gtk3 backend requires pygobject to be installed.")
  1439.  
  1440. import matplotlib
  1441. from matplotlib._pylab_helpers import Gcf
  1442. from matplotlib.backend_bases import RendererBase, GraphicsContextBase, \
  1443. FigureManagerBase, FigureCanvasBase, NavigationToolbar2, cursors, TimerBase
  1444. from matplotlib.backend_bases import ShowBase
  1445.  
  1446. from matplotlib.cbook import is_string_like, is_writable_file_like
  1447. from matplotlib.colors import colorConverter
  1448. from matplotlib.figure import Figure
  1449. from matplotlib.widgets import SubplotTool
  1450.  
  1451. from matplotlib import lines
  1452. from matplotlib import cbook
  1453. from matplotlib import verbose
  1454. from matplotlib import rcParams
  1455.  
  1456. backend_version = "%s.%s.%s" % (Gtk.get_major_version(), Gtk.get_micro_version(), Gtk.get_minor_version())
  1457.  
  1458. _debug = False
  1459. #_debug = True
  1460.  
  1461. # the true dots per inch on the screen; should be display dependent
  1462. # see http://groups.google.com/groups?q=screen+dpi+x11&hl=en&lr=&ie=UTF-8&oe=UTF-8&safe=off&selm=7077.26e81ad5%40swift.cs.tcd.ie&rnum=5 for some info about screen dpi
  1463. PIXELS_PER_INCH = 96
  1464.  
  1465. cursord = {
  1466. > cursors.MOVE : Gdk.Cursor.new(Gdk.CursorType.FLEUR),
  1467. cursors.HAND : Gdk.Cursor.new(Gdk.CursorType.HAND2),
  1468. cursors.POINTER : Gdk.Cursor.new(Gdk.CursorType.LEFT_PTR),
  1469. cursors.SELECT_REGION : Gdk.Cursor.new(Gdk.CursorType.TCROSS),
  1470. }
  1471. E TypeError: constructor returned NULL
  1472.  
  1473. /usr/local/lib/python2.7/dist-packages/matplotlib/backends/backend_gtk3.py:55: TypeError
  1474. ------------------------------- Captured stdout --------------------------------
  1475. ERR: Matching Python module for TPRegion not found. [/home/travis/build/numenta/nupic.core/src/nupic/engine/RegionImplFactory.cpp line 431]
  1476. ------------------------------- Captured stderr --------------------------------
  1477. Failed to connect to Mir: Failed to connect to server socket: No such file or directory
  1478. Unable to init server: Could not connect: Connection refused
  1479. Failed to connect to Mir: Failed to connect to server socket: No such file or directory
  1480. Unable to init server: Could not connect: Connection refused
  1481.  
  1482. (py.test:4771): Gdk-CRITICAL **: gdk_cursor_new_for_display: assertion 'GDK_IS_DISPLAY (display)' failed
  1483. ============== 2 failed, 879 passed, 24 skipped in 120.07 seconds ==============
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement