Skip to content

SP: strip unlearned columns: removed#286

Merged
breznak merged 5 commits into
masterfrom
sp_stripUnlearnedColumns
Mar 2, 2019
Merged

SP: strip unlearned columns: removed#286
breznak merged 5 commits into
masterfrom
sp_stripUnlearnedColumns

Conversation

@breznak
Copy link
Copy Markdown
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
Copy Markdown
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)

Comment thread src/nupic/algorithms/SpatialPooler.cpp Outdated
@breznak breznak changed the title SP: strip unlearned columns: return usage SP: strip unlearned columns: removed Mar 1, 2019
@breznak
Copy link
Copy Markdown
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
Copy Markdown
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
Comment thread API_CHANGELOG.md
* 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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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