Skip to content
This repository has been archived by the owner on Sep 1, 2023. It is now read-only.

Commit

Permalink
SP check: WIP auto set input to SP input dimensions
Browse files Browse the repository at this point in the history
  • Loading branch information
breznak committed Jan 11, 2018
1 parent c100031 commit 2c0bdc0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/nupic/algorithms/SpatialPooler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,8 @@ const vector<Real>& SpatialPooler::getBoostedOverlaps() const

/** helper method that checks SP output is stable for given configuration */
bool checkUnstableParams_(SpatialPooler &sp) {
vector<UInt> input = { 1, 1, 0, 0, 1, 1, 0, 0, 1, 1};
vector<UInt> input = {1,1,0,0,1,0}; //FIXME auto to size of SP's input
if(sp.getInputDimensions().size()>1) return true; //FIXME skip nD as I cannot set auto input correctly
vector<UInt> out1(sp.getNumColumns(), 0);
vector<UInt> out2(sp.getNumColumns(), 0);
sp.compute(input.data(), true, out1.data());
Expand Down

0 comments on commit 2c0bdc0

Please sign in to comment.