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

SP: strip unlearned columns: removed #286

Merged
merged 5 commits into from
Mar 2, 2019
Merged

Conversation

breznak
Copy link
Member

@breznak breznak commented Feb 28, 2019

removed strip

Fixes: #281

return number of cols removed/stripped.
and print if > 0
@breznak breznak added question Further information is requested SP labels Feb 28, 2019
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.

This PR makes SP::stripUnlearnedColumns() return the number of columns pruned, which is a useful improvement itself. Not breaking the API (as it was void, so no return usage)

In #281 it's suggested that the method is actually useless, which this PR aims to test, and indeed it never prunes anything.

Options:

  • just this improvement with return value (remove the print)
  • remove the method (I agree)

src/nupic/algorithms/SpatialPooler.cpp Outdated Show resolved Hide resolved
@breznak breznak changed the title SP: strip unlearned columns: return usage SP: strip unlearned columns: removed Mar 1, 2019
@breznak
Copy link
Member Author

breznak commented Mar 1, 2019

Happy saint David's day, @dkeeney @ctrl-z-9000-times @cogmission @david-ragazzi ! 🎉 🎈 🥂 Thanks for your ideas and work!!

@breznak breznak added the ready label Mar 2, 2019
@ctrl-z-9000-times
Copy link
Collaborator

Thank you Breznak for doing this. This is one less thing for users to worry about!

@breznak breznak merged commit 000f3c8 into master Mar 2, 2019
@breznak breznak deleted the sp_stripUnlearnedColumns branch March 2, 2019 15:09
@@ -57,4 +57,4 @@ are ignored. PR #271

* Removed all matrix libraries. Use the `Connections` class instead. PR #169

* Removed `void SpatialPooler::stripUnlearnedColumns()` as unused and not useful (did not effectively remove any columns). https://github.com/htm-community/nupic.cpp/pull/286
* Removed `void SpatialPooler::stripUnlearnedColumns()` as unused and not useful (did not effectively remove any columns). PR #286
Copy link
Member Author

Choose a reason for hiding this comment

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

@ctrl-z-9000-times just a mention, next time I'd prefer the full URL format. To a user reading the document in browser, it both shows as "#286", but the #286 breaks if you copy the code to a repo, or what not.

Copy link
Collaborator

Choose a reason for hiding this comment

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

If that is the case then you should update all of the cross references in the API_Changelog. I changed it to a short link for consistency with the rest of the file.

Copy link
Member Author

Choose a reason for hiding this comment

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

update all of the cross references in the API_Changelog

well, I probably don;t care enough to do that now. Was just saying for next time...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants