Skip to content
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

Issue #1380: Add SP test checking results with no learning and 0 boos… #1381

Closed
wants to merge 1 commit into from

Conversation

breznak
Copy link
Member

@breznak breznak commented Jan 10, 2018

…ting

Tests verifying the issue.

Fixes: #1380

Copy link
Member Author

@breznak breznak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am also investigating this issue, so it's great to see some other confirmation.

I see it after some time (~10 mins) of running a large (2-4000 cols) SP&TM on quite noisy data.

For me the issue manifests as "the network stops acting" which is caused by weight decay in SP, which I presume is caused by the "random" mistakes in SP output.

const UInt nColumns = 20;
SpatialPooler sp;
sp.initialize({inputSize}, {nColumns});
sp.setBoostStrength(0);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd suggest some explanatory comment here:
"This test verifies possible issue where SP with 0-boosting and learning disabled produces different (random) output, compared to the python SP. "
and add
bool learning = False;

vector<UInt> out1(nColumns, 0);
vector<UInt> out2(nColumns, 0);
sp.compute(input.data(), false, out1.data());
sp.compute(input.data(), false, out2.data());
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • we'll definitely need more then one iteration, the issue seems to manifest "after some time" (-> an overflow?); I'm suggesting to test on a sequence of random with a fixed seed
  • I'm not sure what @scottpurdy was thinking, I'd either compare two c++ SP instances, or better a c++ and py SP.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I take it back. Neither of that is needed, I can replicate the issue now and will post the test-case. Seems to be related to initial params (and initialization via constructor vs. sp.setXXX())

@breznak
Copy link
Member Author

breznak commented Jan 11, 2018

Moving to #1382

@breznak breznak closed this Jan 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants