Skip to content

make error context more informative in boost_tree() helper #1196

@simonpcouch

Description

@simonpcouch

Code
boost_tree(mtry = 0.9, trees = 4) %>% set_engine("xgboost") %>% set_mode(
"regression") %>% fit(mpg ~ ., data = mtcars)
Condition
Error in `recalc_param()`:
! The option `counts = TRUE` was used but `colsample_bynode` was given as 0.9.
i Please use a value >= 1 or use `counts = FALSE`.

Needs a caller_env() passed through. Noticed this in the transition to snapshot testing in #1190.

Metadata

Metadata

Assignees

No one assigned

    Labels

    upkeepmaintenance, infrastructure, and similar

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions