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

[ML] Account for data frame memory in the peak memory usage estimate for classification and regression #996

Merged
merged 5 commits into from
Feb 14, 2020

Conversation

tveasey
Copy link
Contributor

@tveasey tveasey commented Feb 12, 2020

We weren't accounting for the data frame's memory usage when reporting peak memory usage for training. Also, we were missing some state when estimating peak memory usage during the line searches to initialise hyperparameters.

I've also taken the opportunity to more fully migrate instrumentation of training to use the new instrumentation object and provide better automatic stubbing.

Copy link
Contributor

@valeriy42 valeriy42 left a comment

Choose a reason for hiding this comment

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

LGTM. Good work on refactoring 👍

@@ -133,7 +132,7 @@ CBoostedTreeImpl::CBoostedTreeImpl(std::size_t numberThreads,
m_BestHyperparameters{
m_Regularization, m_DownsampleFactor, m_Eta,
m_EtaGrowthRatePerTree, m_MaximumNumberTrees, m_FeatureBagFraction},
m_Instrumentation{instrumentation} {
m_Instrumentation{instrumentation != nullptr ? instrumentation : &INSTRUMENTATION_STUB} {
Copy link
Contributor

Choose a reason for hiding this comment

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

good idea.

@tveasey tveasey merged commit c8b3fe2 into elastic:master Feb 14, 2020
@tveasey tveasey deleted the simplify-instrumentation branch February 14, 2020 16:34
tveasey added a commit to tveasey/ml-cpp-1 that referenced this pull request Feb 14, 2020
tveasey added a commit that referenced this pull request Feb 17, 2020
…mate for classification and regression (#1002)

Backport #996.
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.

2 participants