-
Notifications
You must be signed in to change notification settings - Fork 75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Column pooler2 update #293
Conversation
return number of cols removed/stripped. and print if > 0
This reverts commit 19ef852.
removed duplicit MNIST cmake entry
add check for segfault from CP
@@ -42,6 +42,10 @@ | |||
#include <nupic/math/Math.hpp> | |||
#include <nupic/math/Topology.hpp> | |||
|
|||
namespace nupic { | |||
namespace algorithms { | |||
namespace column_pooler { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added ns
@@ -61,7 +65,7 @@ class ColumnPooler // : public Serializable | |||
vector<UInt> distalInputDimensions_; | |||
vector<UInt> inhibitionDimensions_; | |||
vector<UInt> cellDimensions_; | |||
UInt cellsPerInhbitionArea_; | |||
UInt cellsPerInhibitionArea_; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
confusing name/typo
@@ -112,11 +116,65 @@ class ColumnPooler // : public Serializable | |||
|
|||
Connections distalConnections; | |||
|
|||
|
|||
ColumnPooler() {}; //default constructor, must call initialize to setup properly |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
default constructor & initialize()
@@ -400,6 +458,7 @@ class ColumnPooler // : public Serializable | |||
for(const auto &cell : active.getFlatSparse()) | |||
{ | |||
// Adapt Proximal Segments | |||
NTA_CHECK(cell < proximalMaxSegment_.size()) << "cell oob! " << cell << " < " << proximalMaxSegment_.size(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure, but sometimes I may crash here
Connections: adaptSegment make const input,
SP: strip unlearned columns: removed
Conflicts: src/nupic/algorithms/SpatialPooler.cpp
SDR renamed data formats
Thanks for working on this @breznak! |
thanks! This was working ok, but some merge conglict broke between me merging your 2nd push to cp2 branch, and merging master.. I'll be trying to fix that. |
Thanks for merging this in the main devel branch. Closing. |
updates to CP branch