Skip to content

tune() alpha and lambda hyperparameters in XGBoost #176

Closed
@afewmoments

Description

@afewmoments

I want to be able to tune() all available hyperparameters in xgboost (in particular lambda and alpha).
It seems that I can only tune() what is listed in the help https://parsnip.tidymodels.org/reference/details_boost_tree_xgboost.html:

  • tree_depth
  • trees
  • learn_rate
  • mtry
  • min_n
  • loss_reduction
  • sample_size
  • stop_iter

Currently, to specify lambda I need to specify explicitly:

boost_tree("regression",
    trees = tune(),
    learn_rate = tune()) %>%
set_engine("xgboost", lambda = 100)

How can I tune() lambda in that case? In general, why can't I tune() all hyperparameters available on
https://xgboost.readthedocs.io/en/latest/parameter.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    featurea feature request or enhancement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions