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

Remove ElemType template parameter from DecisionTree #2874

Merged
merged 4 commits into from Mar 20, 2021

Conversation

rcurtin
Copy link
Member

@rcurtin rcurtin commented Mar 13, 2021

While fixing #2872, I noticed that there is a template parameter ElemType for DecisionTree and RandomForest 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 the classProbabilities 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.

@zoq zoq added this to Need Review in PR Tracking Mar 14, 2021
@zoq zoq added this to mlpack 4.0.0 in Roadmap Mar 14, 2021
src/mlpack/tests/decision_tree_test.cpp Outdated Show resolved Hide resolved
src/mlpack/tests/decision_tree_test.cpp Outdated Show resolved Hide resolved
@zoq zoq moved this from Need Review to Waiting for Feedback in PR Tracking Mar 14, 2021
rcurtin and others added 2 commits March 15, 2021 12:50
Co-authored-by: Marcus Edel <marcus.edel@fu-berlin.de>
Co-authored-by: Marcus Edel <marcus.edel@fu-berlin.de>
Copy link
Member

@zoq zoq left a 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.

@zoq zoq moved this from Waiting for Feedback to Done in PR Tracking Mar 16, 2021
Copy link

@mlpack-bot mlpack-bot bot left a 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. 👍

Copy link
Member

@birm birm left a 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?

@rcurtin
Copy link
Member Author

rcurtin commented Mar 20, 2021

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. 👍

@rcurtin rcurtin merged commit 3aa9a72 into mlpack:master Mar 20, 2021
@rcurtin rcurtin deleted the remove-dt-elemtype branch March 20, 2021 01:04
This was referenced Oct 14, 2022
@rcurtin rcurtin mentioned this pull request Oct 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Roadmap
mlpack 4.0.0
Development

Successfully merging this pull request may close these issues.

Should ClassProbabilities be ElemType?
3 participants