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
Remove ElemType template parameter from DecisionTree #2874
Conversation
Co-authored-by: Marcus Edel <marcus.edel@fu-berlin.de>
Co-authored-by: Marcus Edel <marcus.edel@fu-berlin.de>
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.
Looks great to me.
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.
Second approval provided automatically after 24 hours. 👍
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.
Are you looking to push this change with 4.0.0, or now?
We've already done the last 3.x release, since we've made a bunch of not-reverse-compatible changes, so let's go ahead and merge it now. 👍 |
While fixing #2872, I noticed that there is a template parameter
ElemType
forDecisionTree
andRandomForest
that is currently entirely unused. In fact, it gets in the way and is confusing a little bit, so I thought it was better to remove it.In addition, I changed some function signatures to force
arma::vec
for theclassProbabilities
member to actually fix #2872.This is an API change, but since the next release is 4.0.0 anyway, it should be okay to break reverse compatibility in this minor way.