patch params
argument with xgboost
engine in boost_tree()
#787
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #774, closes #459. Related to #411.
The goal of this PR is to ensure that folks can pass arguments that live in the
param
argument toxgb.train
. The new docs section is probably the best place to start for big picture here. :)Some notes-to-self that helped me keep track of arguments:
xgb.train
routes arguments from its dots to theparams
argument. For simplicity of our own argument routing, this PR proposes we pass non-main params arguments to the dots rather than params.xgb_train
previously tookobjective
as a main argument. This argument is eventually routed to the params argument inxgb.train
, so again for simplicity of our machinery, I deleted theobjective
argument toxgb_train
so that it will be passed through dots. This change isn’t user-facing and doesn’t change the way the argument is passed in practice.set_engine
rather than as part of theparams
list so that tune machinery works “out-of-the-box.” This PR now raises a warning when users supply a non-emptyparams
argument (though now correctly handles patching theparams
argument with mainboost_tree
arguments).An additional unit test that arguments passed via
...
toxgb_train
can indeed be tuned; will PR to extratests after this is merged:Created on 2022-08-15 by the reprex package (v2.0.1)