Skip to content

[ML] Add unit test checks for new hyperparameters in supervised learning #855

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

Merged
merged 6 commits into from
Nov 28, 2019

Conversation

valeriy42
Copy link
Contributor

@valeriy42 valeriy42 commented Nov 28, 2019

This PR adds check that user-specified hyperparameters are used as final hyperparameters by the boosted trees. Implementation of the unit test required factoring out classes CBoostedTreeHyperparameters and CBoostedTreeRegularization from CBoostedTreeImpl.

Also I added the setting of some user-specified hyperparameters in CBoostedTreeFactory.cc that were missing before.

Fixes #851
Fixes #849

@valeriy42 valeriy42 requested a review from tveasey November 28, 2019 14:12
@valeriy42 valeriy42 added review and removed WIP labels Nov 28, 2019
Copy link
Contributor

@tveasey tveasey left a comment

Choose a reason for hiding this comment

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

This is basically LGTM and good to add in some testing around propagation of user overrides.

valeriy42 and others added 2 commits November 28, 2019 15:40
Co-Authored-By: Tom Veasey <tveasey@users.noreply.github.com>
Co-Authored-By: Tom Veasey <tveasey@users.noreply.github.com>
@valeriy42 valeriy42 merged commit 6404b92 into elastic:master Nov 28, 2019
valeriy42 added a commit to valeriy42/ml-cpp that referenced this pull request Nov 29, 2019
…ing (elastic#855)

This PR adds check that user-specified hyperparameters are used as final hyperparameters by the boosted trees. Implementation of the unit test required factoring out classes CBoostedTreeHyperparameters and CBoostedTreeRegularization from CBoostedTreeImpl.

Also I added the setting of some user-specified hyperparameters in CBoostedTreeFactory.cc that were missing before.
valeriy42 added a commit that referenced this pull request Nov 29, 2019
@valeriy42 valeriy42 deleted the fix-parameter-overrides branch May 6, 2020 11:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[ML] Add unit test checks for new hyperparameters in supervised learning [ML] Trees can have leaves without any data points
2 participants