get a pass in function docstring
This commit is contained in:
parent
8127f31cdd
commit
d00302d3ac
@ -8,8 +8,10 @@ setClass("xgb.Booster")
|
|||||||
#' @param newdata takes \code{matrix}, \code{dgCMatrix}, local data file or
|
#' @param newdata takes \code{matrix}, \code{dgCMatrix}, local data file or
|
||||||
#' \code{xgb.DMatrix}.
|
#' \code{xgb.DMatrix}.
|
||||||
#' @param outputmargin whether the prediction should be shown in the original
|
#' @param outputmargin whether the prediction should be shown in the original
|
||||||
#' value or after the logit mapping
|
#' value of sum of functions, when outputmargin=TRUE, the prediction is
|
||||||
#'
|
#' untransformed margin value. In logistic regression, outputmargin=T will
|
||||||
|
#' output value before logistic transformation.
|
||||||
|
#'
|
||||||
#' @section Value
|
#' @section Value
|
||||||
#' return a numerical vector.
|
#' return a numerical vector.
|
||||||
#'
|
#'
|
||||||
|
|||||||
@ -5,8 +5,9 @@
|
|||||||
#' @param data a \code{matrix} object, a \code{dgCMatrix} object or a character
|
#' @param data a \code{matrix} object, a \code{dgCMatrix} object or a character
|
||||||
#' indicating the data file.
|
#' indicating the data file.
|
||||||
#' @param info a list of information of the xgb.DMatrix object
|
#' @param info a list of information of the xgb.DMatrix object
|
||||||
#' @param missing Sometime a data use 0 or other extreme value to represents
|
#' @param missing Missing is only used when input is dense matrix, pick a float
|
||||||
#' missing values.
|
# value that represents missing value. Sometime a data use 0 or other extreme value to represents missing values.
|
||||||
|
#
|
||||||
#' @param ... other information to pass to \code{info}.
|
#' @param ... other information to pass to \code{info}.
|
||||||
#'
|
#'
|
||||||
#' @examples
|
#' @examples
|
||||||
|
|||||||
@ -4,8 +4,10 @@
|
|||||||
#'
|
#'
|
||||||
#' @param model the model object.
|
#' @param model the model object.
|
||||||
#' @param fname the name of the binary file.
|
#' @param fname the name of the binary file.
|
||||||
#' @param fmap TODO(tqchen)
|
#' @param fmap feature map file representing the type of feature, to make it
|
||||||
#'
|
#' look nice, run demo/demo.R for result and demo/featmap.txt for example
|
||||||
|
#' Format: https://github.com/tqchen/xgboost/wiki/Binary-Classification#dump-model
|
||||||
|
#'
|
||||||
#' @examples
|
#' @examples
|
||||||
#' data(iris)
|
#' data(iris)
|
||||||
#' bst <- xgboost(as.matrix(iris[,1:4]),as.numeric(iris[,5]), nrounds = 2)
|
#' bst <- xgboost(as.matrix(iris[,1:4]),as.numeric(iris[,5]), nrounds = 2)
|
||||||
|
|||||||
@ -8,20 +8,25 @@
|
|||||||
#' @param dtrain takes an \code{xgb.DMatrix} as the input.
|
#' @param dtrain takes an \code{xgb.DMatrix} as the input.
|
||||||
#' @param nrounds the max number of iterations
|
#' @param nrounds the max number of iterations
|
||||||
#' @param watchlist what information should be printed when \code{verbose=1} or
|
#' @param watchlist what information should be printed when \code{verbose=1} or
|
||||||
#' \code{verbose=2}.
|
#' \code{verbose=2}. Watchlist is used to specify validation set monitoring
|
||||||
|
#' during training. For example user can specify
|
||||||
|
#' watchlist=list(validation1=mat1, validation2=mat2) to watch
|
||||||
|
#' the performance of each round's model on mat1 and mat2
|
||||||
|
#'
|
||||||
#' @param obj customized objective function. Given prediction and dtrain,
|
#' @param obj customized objective function. Given prediction and dtrain,
|
||||||
#' return gradient and second order gradient
|
#' return gradient and second order gradient.
|
||||||
#' @param feval custimized evaluation function. Given prediction and dtrain,
|
#' @param feval custimized evaluation function. Given prediction and dtrain,
|
||||||
#' return a \code{list(metric='metric-name', value='metric-value')}.
|
#' return a \code{list(metric='metric-name', value='metric-value')}.
|
||||||
#' @param ... other parameters to pass to \code{params}.
|
#' @param ... other parameters to pass to \code{params}.
|
||||||
#'
|
#'
|
||||||
#' @details
|
#' @details
|
||||||
#' This is the training function for xgboost.
|
#' This is the training function for xgboost.
|
||||||
#'
|
#'
|
||||||
#' Parallelization is automatically enabled under Linux/Windows. Mac users can
|
#' Parallelization is automatically enabled under Linux/Windows. Mac users can
|
||||||
#' also enjoy this feature if compile this package with openmp.
|
#' also enjoy this feature if compile this package with openmp.
|
||||||
#'
|
#'
|
||||||
#' This function only accepts an \code{xgb.DMatrix} object as the input,
|
#' This function only accepts an \code{xgb.DMatrix} object as the input.
|
||||||
|
#' It supports advanced features such as watchlist, customized objective function,
|
||||||
#' therefore it is more flexible than \code{\link{xgboost}}.
|
#' therefore it is more flexible than \code{\link{xgboost}}.
|
||||||
#'
|
#'
|
||||||
#' @section Value
|
#' @section Value
|
||||||
|
|||||||
@ -4,22 +4,24 @@
|
|||||||
#'
|
#'
|
||||||
#' @param data takes \code{matrix}, \code{dgCMatrix}, local data file or
|
#' @param data takes \code{matrix}, \code{dgCMatrix}, local data file or
|
||||||
#' \code{xgb.DMatrix}.
|
#' \code{xgb.DMatrix}.
|
||||||
#' @param label the response variable. Not required if data is local data file
|
#' @param label the response variable. User should not set this field,
|
||||||
#' or \code{xgb.DMatrix}.
|
# if data is local data file or \code{xgb.DMatrix}.
|
||||||
#' @param params the list of parameters. See
|
#' @param params the list of parameters. See
|
||||||
#' \url{https://github.com/tqchen/xgboost/wiki/Parameters} for
|
#' \url{https://github.com/tqchen/xgboost/wiki/Parameters} for
|
||||||
#' further details.
|
#' further details. See also demo/demo.R for walkthrough example in R.
|
||||||
#' @param nrounds the max number of iterations
|
#' @param nrounds the max number of iterations
|
||||||
#' @param verbose If 0, xgboost will stay silent. If 1, xgboost will print
|
#' @param verbose If 0, xgboost will stay silent. If 1, xgboost will print
|
||||||
#' information of performance. If 2, xgboost will print information of both
|
#' information of performance. If 2, xgboost will print information of both
|
||||||
#' performance and tree.
|
#' performance and construction progress information
|
||||||
#' @param ... other parameters to pass to \code{params}.
|
#' @param ... other parameters to pass to \code{params}.
|
||||||
#'
|
#'
|
||||||
#' @details
|
#' @details
|
||||||
#' This is the modeling function for xgboost.
|
#' This is the modeling function for xgboost.
|
||||||
#'
|
#'
|
||||||
#' Parallelization is automatically enabled under Linux/Windows. Mac users can
|
#' Parallelization is automatically enabled under Linux/Windows.
|
||||||
#' also enjoy this feature if compile this package with openmp.
|
#' Number of threads can also be manually specified via nthread parameter
|
||||||
|
#' Mac users can also enjoy this feature if R CMD COMPILE support compile
|
||||||
|
#' package with openmp.
|
||||||
#'
|
#'
|
||||||
#' @section Value
|
#' @section Value
|
||||||
#' return a \code{xgb.DMatrix} class object.
|
#' return a \code{xgb.DMatrix} class object.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user