Improve setinfo documentation on R package (#2357)
This commit is contained in:
parent
433269c335
commit
8e2a1ff2bf
@ -163,8 +163,11 @@ dimnames.xgb.DMatrix <- function(x) {
|
|||||||
#' \item \code{weight}: to do a weight rescale ;
|
#' \item \code{weight}: to do a weight rescale ;
|
||||||
#' \item \code{base_margin}: base margin is the base prediction Xgboost will boost from ;
|
#' \item \code{base_margin}: base margin is the base prediction Xgboost will boost from ;
|
||||||
#' \item \code{nrow}: number of rows of the \code{xgb.DMatrix}.
|
#' \item \code{nrow}: number of rows of the \code{xgb.DMatrix}.
|
||||||
|
#'
|
||||||
#' }
|
#' }
|
||||||
#'
|
#'
|
||||||
|
#' \code{group} can be setup by \code{setinfo} but can't be retrieved by \code{getinfo}.
|
||||||
|
#'
|
||||||
#' @examples
|
#' @examples
|
||||||
#' data(agaricus.train, package='xgboost')
|
#' data(agaricus.train, package='xgboost')
|
||||||
#' train <- agaricus.train
|
#' train <- agaricus.train
|
||||||
@ -214,7 +217,7 @@ getinfo.xgb.DMatrix <- function(object, name, ...) {
|
|||||||
#' \item \code{label}: label Xgboost learn from ;
|
#' \item \code{label}: label Xgboost learn from ;
|
||||||
#' \item \code{weight}: to do a weight rescale ;
|
#' \item \code{weight}: to do a weight rescale ;
|
||||||
#' \item \code{base_margin}: base margin is the base prediction Xgboost will boost from ;
|
#' \item \code{base_margin}: base margin is the base prediction Xgboost will boost from ;
|
||||||
#' \item \code{group}.
|
#' \item \code{group}: number of rows in each group (to use with \code{rank:pairwise} objective).
|
||||||
#' }
|
#' }
|
||||||
#'
|
#'
|
||||||
#' @examples
|
#' @examples
|
||||||
|
|||||||
@ -27,7 +27,10 @@ The \code{name} field can be one of the following:
|
|||||||
\item \code{weight}: to do a weight rescale ;
|
\item \code{weight}: to do a weight rescale ;
|
||||||
\item \code{base_margin}: base margin is the base prediction Xgboost will boost from ;
|
\item \code{base_margin}: base margin is the base prediction Xgboost will boost from ;
|
||||||
\item \code{nrow}: number of rows of the \code{xgb.DMatrix}.
|
\item \code{nrow}: number of rows of the \code{xgb.DMatrix}.
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
\code{group} can be setup by \code{setinfo} but can't be retrieved by \code{getinfo}.
|
||||||
}
|
}
|
||||||
\examples{
|
\examples{
|
||||||
data(agaricus.train, package='xgboost')
|
data(agaricus.train, package='xgboost')
|
||||||
|
|||||||
@ -28,7 +28,7 @@ The \code{name} field can be one of the following:
|
|||||||
\item \code{label}: label Xgboost learn from ;
|
\item \code{label}: label Xgboost learn from ;
|
||||||
\item \code{weight}: to do a weight rescale ;
|
\item \code{weight}: to do a weight rescale ;
|
||||||
\item \code{base_margin}: base margin is the base prediction Xgboost will boost from ;
|
\item \code{base_margin}: base margin is the base prediction Xgboost will boost from ;
|
||||||
\item \code{group}.
|
\item \code{group}: number of rows in each group (to use with \code{rank:pairwise} objective).
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
\examples{
|
\examples{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user