Guest User

Untitled

a guest
Jan 28th, 2018
360
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 10.61 KB | None | 0 0
  1. vedhas_augs@eihw229:~/Setups/Numenta/nupic$ py.test tests/unit/
  2. ============================= test session starts ==============================
  3. platform linux2 -- Python 2.7.12, pytest-3.0.7, py-1.4.31, pluggy-0.4.0
  4. rootdir: /home/vedhas_augs/Setups/Numenta/nupic, inifile:
  5. plugins: xdist-1.16.0, cov-2.5.0
  6. collected 735 items
  7.  
  8. tests/unit/nupic/serializable_test.py ..
  9. tests/unit/nupic/utils_test.py ......
  10. tests/unit/nupic/algorithms/anomaly_likelihood_jeff_test.py ...ss..
  11. tests/unit/nupic/algorithms/anomaly_likelihood_test.py .....................
  12. tests/unit/nupic/algorithms/anomaly_test.py ..............
  13. tests/unit/nupic/algorithms/backtracking_tm_constant_test.py ...
  14. tests/unit/nupic/algorithms/backtracking_tm_cpp2_test.py .
  15. tests/unit/nupic/algorithms/backtracking_tm_cpp_test.py .......
  16. tests/unit/nupic/algorithms/backtracking_tm_test.py .......
  17. tests/unit/nupic/algorithms/connections_test.py .........
  18. tests/unit/nupic/algorithms/inhibition_object_test.py s
  19. tests/unit/nupic/algorithms/knn_classifier_test.py .........s...
  20. tests/unit/nupic/algorithms/sdr_classifier_test.py ...........................
  21. tests/unit/nupic/algorithms/sp_learn_inference_test.py s
  22. tests/unit/nupic/algorithms/sp_overlap_test.py .s.s
  23. tests/unit/nupic/algorithms/spatial_pooler_boost_test.py ..
  24. tests/unit/nupic/algorithms/spatial_pooler_compatability_test.py ...ss....
  25. tests/unit/nupic/algorithms/spatial_pooler_compute_test.py ..
  26. tests/unit/nupic/algorithms/spatial_pooler_cpp_api_test.py ............................
  27. tests/unit/nupic/algorithms/spatial_pooler_cpp_unit_test.py .F...
  28. tests/unit/nupic/algorithms/spatial_pooler_py_api_test.py ............................
  29. tests/unit/nupic/algorithms/spatial_pooler_unit_test.py s...................................
  30. tests/unit/nupic/algorithms/temporal_memory_test.py ...............................s.....s.
  31. tests/unit/nupic/algorithms/monitor_mixin/metric_test.py ..
  32. tests/unit/nupic/algorithms/monitor_mixin/trace_test.py ..
  33. tests/unit/nupic/data/aggregator_test.py .
  34. tests/unit/nupic/data/dictutils_test.py ......
  35. tests/unit/nupic/data/fieldmeta_test.py .....
  36. tests/unit/nupic/data/file_record_stream_test.py ......
  37. tests/unit/nupic/data/filters_test.py s
  38. tests/unit/nupic/data/functionsource_test.py ......
  39. tests/unit/nupic/data/inference_shifter_test.py ........
  40. tests/unit/nupic/data/record_stream_test.py .......
  41. tests/unit/nupic/data/utils_test.py .......
  42. tests/unit/nupic/data/generators/anomalyzer_test.py ...........
  43. tests/unit/nupic/data/generators/pattern_machine_test.py .........
  44. tests/unit/nupic/data/generators/sequence_machine_test.py .....
  45. tests/unit/nupic/docs/examples_test.py .xx.xxxxxx
  46. tests/unit/nupic/encoders/adaptivescalar_test.py .......
  47. tests/unit/nupic/encoders/category_test.py ..
  48. tests/unit/nupic/encoders/coordinate_test.py .................
  49. tests/unit/nupic/encoders/date_test.py ........
  50. tests/unit/nupic/encoders/delta_test.py .....
  51. tests/unit/nupic/encoders/geospatial_coordinate_test.py ...........
  52. tests/unit/nupic/encoders/logenc_test.py ......
  53. tests/unit/nupic/encoders/multi_test.py ..
  54. tests/unit/nupic/encoders/pass_through_encoder_test.py ....
  55. tests/unit/nupic/encoders/random_distributed_scalar_test.py ...............
  56. tests/unit/nupic/encoders/scalar_test.py .............
  57. tests/unit/nupic/encoders/scalarspace_test.py .
  58. tests/unit/nupic/encoders/sdrcategory_test.py ...
  59. tests/unit/nupic/encoders/sparse_pass_through_encoder_test.py .....
  60. tests/unit/nupic/engine/network_test.py ...........
  61. tests/unit/nupic/engine/syntactic_sugar_test.py .....
  62. tests/unit/nupic/engine/unified_py_parameter_test.py ..
  63. tests/unit/nupic/frameworks/opf/htmpredictionmodel_classifier_helper_test.py ......................
  64. tests/unit/nupic/frameworks/opf/htmpredictionmodel_test.py ......
  65. tests/unit/nupic/frameworks/opf/opf_metrics_test.py ...............................
  66. tests/unit/nupic/frameworks/opf/previous_value_model_test.py .......
  67. tests/unit/nupic/frameworks/opf/safe_interpreter_test.py ........
  68. tests/unit/nupic/frameworks/opf/two_gram_model_test.py ......
  69. tests/unit/nupic/frameworks/opf/common_models/cluster_params_test.py .
  70. tests/unit/nupic/math/lgamma_test.py .
  71. tests/unit/nupic/math/topology_test.py ....................
  72. tests/unit/nupic/regions/anomaly_likelihood_region_test.py ..F
  73. tests/unit/nupic/regions/anomaly_region_test.py .
  74. tests/unit/nupic/regions/knn_anomaly_classifier_region_test.py .....................
  75. tests/unit/nupic/regions/knn_classifier_region_test.py .
  76. tests/unit/nupic/regions/record_sensor_region_test.py ...
  77. tests/unit/nupic/regions/regions_spec_test.py s...s......
  78. tests/unit/nupic/regions/sdr_classifier_region_test.py ..
  79. tests/unit/nupic/regions/tm_region_test.py ....
  80. tests/unit/nupic/support/configuration_test.py ............s....................
  81. tests/unit/nupic/support/custom_configuration_test.py ...................s.........................
  82. tests/unit/nupic/support/decorators_test.py ............
  83. tests/unit/nupic/support/group_by_test.py ......
  84. tests/unit/nupic/support/object_json_test.py ...............
  85. tests/unit/nupic/support/consoleprinter_test/consoleprinter_test.py .
  86.  
  87. =================================== FAILURES ===================================
  88. ______________ SpatialPoolerTest.testComputeParametersValidation _______________
  89.  
  90. self = <tests.unit.nupic.algorithms.spatial_pooler_cpp_unit_test.SpatialPoolerTest testMethod=testComputeParametersValidation>
  91.  
  92.     def testComputeParametersValidation(self):
  93.       sp = SpatialPooler(inputDimensions=[5], columnDimensions=[5])
  94.       inputGood = np.ones(5, dtype=uintDType)
  95.       outGood = np.zeros(5, dtype=uintDType)
  96.       inputBad = np.ones(5, dtype=realDType)
  97.       inputBad2D = np.ones((5, 5), dtype=realDType)
  98.       outBad = np.zeros(5, dtype=realDType)
  99.       outBad2D = np.zeros((5, 5), dtype=realDType)
  100.    
  101.       # Validate good parameters
  102.       sp.compute(inputGood, False, outGood)
  103.    
  104.       # Validate bad parameters
  105.       with self.assertRaises(RuntimeError):
  106. >       sp.compute(inputBad, False, outBad)
  107. E       AssertionError: RuntimeError not raised
  108.  
  109. tests/unit/nupic/algorithms/spatial_pooler_cpp_unit_test.py:195: AssertionError
  110. ________________ AnomalyLikelihoodRegionTest.testSerialization _________________
  111.  
  112. self = <tests.unit.nupic.regions.anomaly_likelihood_region_test.AnomalyLikelihoodRegionTest testMethod=testSerialization>
  113.  
  114.     @unittest.skipUnless(
  115.       capnp, "pycapnp is not installed, skipping serialization test.")
  116.     def testSerialization(self):
  117.       """ test to ensure serialization preserves the state of the region
  118.            correctly. """
  119.       anomalyLikelihoodRegion1 = AnomalyLikelihoodRegion()
  120.       inputs = AnomalyLikelihoodRegion.getSpec()['inputs']
  121.       outputs = AnomalyLikelihoodRegion.getSpec()['outputs']
  122.       parameters = AnomalyLikelihoodRegion.getSpec()['parameters']
  123.    
  124.       # Make sure to calculate distribution by passing the probation period
  125.       learningPeriod = parameters['learningPeriod']['defaultValue']
  126.       reestimationPeriod = parameters['reestimationPeriod']['defaultValue']
  127.       probation = learningPeriod + reestimationPeriod
  128.       for _ in xrange(0, probation + 1):
  129.         inputs['rawAnomalyScore'] = numpy.array([random.random()])
  130.         inputs['metricValue'] = numpy.array([random.random()])
  131.         anomalyLikelihoodRegion1.compute(inputs, outputs)
  132.         score1 = outputs['anomalyLikelihood'][0]
  133.    
  134.       proto1 = AnomalyLikelihoodRegionProto.new_message()
  135. >     anomalyLikelihoodRegion1.write(proto1)
  136.  
  137. tests/unit/nupic/regions/anomaly_likelihood_region_test.py:105:
  138. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  139. /usr/local/lib/python2.7/dist-packages/nupic/regions/anomaly_likelihood_region.py:139: in write
  140.     self.anomalyLikelihood.write(proto)
  141. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  142.  
  143. self = <nupic.algorithms.anomaly_likelihood.AnomalyLikelihood object at 0x7fc70a7f10d0>
  144. proto = <nupic.regions.AnomalyLikelihoodRegion_capnp:AnomalyLikelihoodRegionProto buil...eriod = 0, learningPeriod = 0, reestimationPeriod = 0, historicWindowSize = 0)>
  145.  
  146.     def write(self, proto):
  147.       """ capnp serialization method for the anomaly likelihood object
  148.    
  149.        :param proto: (Object) capnp proto object specified in
  150.                              nupic.regions.AnomalyLikelihoodRegion.capnp
  151.        """
  152.       proto.iteration = self._iteration
  153.    
  154.       pHistScores = proto.init('historicalScores', len(self._historicalScores))
  155.       for i, score in enumerate(list(self._historicalScores)):
  156.         _, value, anomalyScore = score
  157.         record = pHistScores[i]
  158.         record.value = float(value)
  159.         record.anomalyScore = float(anomalyScore)
  160.    
  161.       if self._distribution:
  162. >       proto.distribution.name = self._distribution["distributionParams"]["name"]
  163. E       KeyError: 'distributionParams'
  164.  
  165. /usr/local/lib/python2.7/dist-packages/nupic/algorithms/anomaly_likelihood.py:321: KeyError
  166. ============================ pytest-warning summary ============================
  167. WC1 /home/vedhas_augs/Setups/Numenta/nupic/tests/unit/nupic/engine/network_test.py cannot collect test class 'TestNode' because it has a __init__ constructor
  168. WC1 /home/vedhas_augs/Setups/Numenta/nupic/tests/unit/nupic/frameworks/opf/htmpredictionmodel_classifier_helper_test.py cannot collect test class 'TestOptionParser' because it has a __init__ constructor
  169. WC1 /home/vedhas_augs/Setups/Numenta/nupic/tests/unit/nupic/regions/knn_anomaly_classifier_region_test.py cannot collect test class 'TestOptionParser' because it has a __init__ constructor
  170. WC1 /home/vedhas_augs/Setups/Numenta/nupic/tests/unit/nupic/support/decorators_test.py cannot collect test class 'TestParentException' because it has a __init__ constructor
  171. WC1 /home/vedhas_augs/Setups/Numenta/nupic/tests/unit/nupic/support/decorators_test.py cannot collect test class 'TestChildException' because it has a __init__ constructor
  172.  2 failed, 708 passed, 17 skipped, 8 xfailed, 5 pytest-warnings in 104.47 seconds
  173. vedhas_augs@eihw229:~/Setups/Numenta/nupic$ sudo pip install pycapnp
  174. [sudo] password for vedhas_augs:
  175. The directory '/home/vedhas_augs/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
  176. The directory '/home/vedhas_augs/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
  177. Requirement already satisfied: pycapnp in /usr/local/lib/python2.7/dist-packages
Advertisement
Add Comment
Please, Sign In to add comment