30 lines
1.1 KiB
R
30 lines
1.1 KiB
R
% Generated by roxygen2: do not edit by hand
|
|
% Please edit documentation in R/callbacks.R
|
|
\name{xgb.cb.reset.parameters}
|
|
\alias{xgb.cb.reset.parameters}
|
|
\title{Callback for resetting the booster's parameters at each iteration.}
|
|
\usage{
|
|
xgb.cb.reset.parameters(new_params)
|
|
}
|
|
\arguments{
|
|
\item{new_params}{a list where each element corresponds to a parameter that needs to be reset.
|
|
Each element's value must be either a vector of values of length \code{nrounds}
|
|
to be set at each iteration,
|
|
or a function of two parameters \code{learning_rates(iteration, nrounds)}
|
|
which returns a new parameter value by using the current iteration number
|
|
and the total number of boosting rounds.}
|
|
}
|
|
\value{
|
|
An \code{xgb.Callback} object, which can be passed to \link{xgb.train} or \link{xgb.cv}.
|
|
}
|
|
\description{
|
|
Callback for resetting the booster's parameters at each iteration.
|
|
}
|
|
\details{
|
|
Note that when training is resumed from some previous model, and a function is used to
|
|
reset a parameter value, the \code{nrounds} argument in this function would be the
|
|
the number of boosting rounds in the current training.
|
|
|
|
Does not leave any attribute in the booster.
|
|
}
|