Debian Codegraph @

man/xgb.cb.reset.parameters.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/callbacks.R
3 \name{xgb.cb.reset.parameters}
4 \alias{xgb.cb.reset.parameters}
5 \title{Callback for resetting booster parameters at each iteration}
6 \usage{
7 xgb.cb.reset.parameters(new_params)
8 }
9 \arguments{
10 \item{new_params}{List of parameters needed to be reset.
11 Each element's value must be either a vector of values of length \code{nrounds}
12 to be set at each iteration,
13 or a function of two parameters \code{learning_rates(iteration, nrounds)}
14 which returns a new parameter value by using the current iteration number
15 and the total number of boosting rounds.}
16 }
17 \value{
18 An \code{xgb.Callback} object, which can be passed to \code{\link[=xgb.train]{xgb.train()}} or \code{\link[=xgb.cv]{xgb.cv()}}.
19 }
20 \description{
21 Callback for resetting booster parameters at each iteration
22 }
23 \details{
24 Note that when training is resumed from some previous model, and a function is used to
25 reset a parameter value, the \code{nrounds} argument in this function would be the
26 the number of boosting rounds in the current training.
27
28 Does not leave any attribute in the booster.
29 }