Comments (6)
same with category_test.py
from nupic.
..E.s.E
======================================================================
ERROR: testNonPeriodicEncoderMinMaxNotSpec (__main__.AdaptiveScalarTest)
Non-periodic encoder, min and max not specified
----------------------------------------------------------------------
Traceback (most recent call last):
File "adaptivescalar_test.py", line 150, in testNonPeriodicEncoderMinMaxNotSpec
_verify(1, [1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0])
File "adaptivescalar_test.py", line 143, in _verify
abs(l.getBucketInfo(l.getBucketIndices(v))[0].value - expV),
File "D:\nupic\src\python\python3\nupic\encoders\adaptive_scalar.py", line 186, in getBucketInfo
return super(AdaptiveScalarEncoder, self).getBucketInfo(buckets)
File "D:\nupic\src\python\python3\nupic\encoders\scalar.py", line 659, in getBucketInfo
encoding = self._topDownMappingM.getRow(category)
TypeError: getRow(): incompatible function arguments. The following argument types are supported:
1. (self: nupic.bindings.math.SM32, arg0: int) -> numpy.ndarray[float32]
Invoked with: <nupic.bindings.math.SM32 object at 0x00000158698C42D0>, 0.0
======================================================================
ERROR: testTopDownDecode (__main__.AdaptiveScalarTest)
Test the input description generation and topDown decoding
----------------------------------------------------------------------
Traceback (most recent call last):
File "adaptivescalar_test.py", line 96, in testTopDownDecode
topDown = l.topDownCompute(output)[0]
File "D:\nupic\src\python\python3\nupic\encoders\adaptive_scalar.py", line 197, in topDownCompute
return super(AdaptiveScalarEncoder, self).topDownCompute(encoded)
File "D:\nupic\src\python\python3\nupic\encoders\scalar.py", line 679, in topDownCompute
category = topDownMappingM.rightVecProd(encoded).argmax()
AttributeError: 'nupic.bindings.math.SM32' object has no attribute 'rightVecProd'
----------------------------------------------------------------------
Ran 7 tests in 0.027s
FAILED (errors=2, skipped=1)
from nupic.
The original python errors have been resolved by adding int(float value).
from nupic.
encoding = self._topDownMappingM.getRow(category)
TypeError: getRow(): incompatible function arguments. The following argument types are supported:
1. (self: nupic.bindings.math.SM32, arg0: int) -> numpy.ndarray[float32]
encoding = self._topDownMappingM.getRow(category)
to
encoding = self._topDownMappingM.getRow(int(category))
from nupic.
Previous error is fixed. Now we have:
D:\nupic\src\python\python3\tests\unit\nupic\encoders>python adaptivescalar_test.py
....s.F
======================================================================
FAIL: testTopDownDecode (__main__.AdaptiveScalarTest)
Test the input description generation and topDown decoding
----------------------------------------------------------------------
Traceback (most recent call last):
File "adaptivescalar_test.py", line 94, in testTopDownDecode
self.assertLess(abs(rangeMin - v), l.resolution)
AssertionError: 1.0 not less than 1.0
----------------------------------------------------------------------
Ran 7 tests in 0.010s
FAILED (failures=1, skipped=1)
from nupic.
It was an integer division issue.
from nupic.
Related Issues (20)
- docs\examples_test.py
- coordinate_test.py HOT 1
- Add SparseBinaryMatrix (SM_01_32_16) HOT 1
- date_test.py
- geospatial_coordinate.py
- logenc_test.py HOT 3
- sdrcategory_test.py
- nupic.engine.__init__.py HOT 2
- RuntimeError: Attempting to use the value of the environment variable 'USER', which is not defined
- two_gram_model_test.py
- knn_anomaly_classifier_region_test.py
- object_json_test.py
- sparse_matrix_how_to.py
- Add not implemented SparseMatrix functions
- SparseMatrix::setBox bug
- SparseMatrix toDense() HOT 1
- How to setup Python3 NUPIC version HOT 1
- swig vs. pybind11? HOT 1
- random_distributed_scalar.py
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nupic.