Create new Matrix hirearchy. #329
Conversation
Conflicts: src/main/java/org/numenta/nupic/Connections.java src/test/java/org/numenta/nupic/algorithms/SpatialPoolerTest.java
|
@chelu Thanks for adhering to the dev process. Just making sure you see that you need to add tests? |
|
OK, thanks @cogmission |
|
@chelu Yep, so this is what I do too. I submit test cases until the build passes :-P |
- Update BinarySparseMatrixTest to run test on both implementations.
|
@chelu Nice Work! So can you please explain very briefly the current hierarchy you are proposing? What classes inherit from what and their individual purposes? Also, did you confirm the memory savings? How much memory were you able to save for your implementation? I just would like to get an understanding of the code and the divisions of responsibility you're proposing... Thanks, |
|
Hi @cogmission, of course:
For a network with a Layer with 512x512 columns with an input for every column, the Note that for actually use it, you need to override I will try to use Thanks for your support. Jose. |
|
Can you change this too? : https://github.com/numenta/htm.java/pull/329/files#diff-542653af02823fbd7e8d10d022c66e84L969 The setter needs to be aligned with the getter |
|
So in your code are you subclassing the SpatialPooler in order to implement the different matrices? If so, are you running into any problems with the NAPI ? I would rather not have people have to subclass the SpatialPooler, in that light would you recommend the use of one of the other matrices as the default? |
|
Another small "nit". Can you correct the spacing (to 4 spaces) with no tabs? If you are using Eclipse, you can go to Preferences > Java> Editors and setting indentation to spaces is somewhere there. Then in your edited files, click , to re-indent, or in OSx click , . |
|
Fixed, No, I haven't problems with NAPI. |
|
@chelu Awesome! 👍 |
Create new Matrix hirearchy.
|
@chelu Please keep me informed on your performance observations in gitter, ok? |
Create new Matrix hirearchy to allow implementations of FlatMatrix and low memory usage of SparseBinaryMatrix.
Fix #328