This commit is contained in:
tqchen 2014-08-28 07:43:26 -07:00
parent d79161cfce
commit df6cd25fd5
2 changed files with 20 additions and 6 deletions

View File

@ -2,9 +2,16 @@
#' #'
#' The training function of xgboost #' The training function of xgboost
#' #'
#' @param params the list of parameters. See #' @param params the list of parameters. Commonly used ones are:
#' \url{https://github.com/tqchen/xgboost/wiki/Parameters} for #' objective: objective function, common ones are
#' further details. #' - reg:linear linear regression
#' - binary:logistic logistic regression for classification
#' eta: step size of each boosting step
#' max_depth: maximum depth of the tree
#' nthread: number of thread used in training, if not set, all threads are used
#'
#' See \url{https://github.com/tqchen/xgboost/wiki/Parameters} for
#' further details. See also demo/demo.R for walkthrough example in R.
#' @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

View File

@ -6,8 +6,15 @@
#' \code{xgb.DMatrix}. #' \code{xgb.DMatrix}.
#' @param label the response variable. User should not set this field, #' @param label the response variable. User should not set this field,
# if data is local data file 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. Commonly used ones are:
#' \url{https://github.com/tqchen/xgboost/wiki/Parameters} for #' objective: objective function, common ones are
#' - reg:linear linear regression
#' - binary:logistic logistic regression for classification
#' eta: step size of each boosting step
#' max_depth: maximum depth of the tree
#' nthread: number of thread used in training, if not set, all threads are used
#'
#' See \url{https://github.com/tqchen/xgboost/wiki/Parameters} for
#' further details. See also demo/demo.R for walkthrough example in R. #' 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