Skip to content

Commit 972b7e3

Browse files
authored
add aft scale parameter to R docs (#11981)
1 parent bf04dcd commit 972b7e3

4 files changed

Lines changed: 14 additions & 3 deletions

File tree

R-package/R/xgb.train.R

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -745,8 +745,10 @@ xgb.train <- function(params = xgb.params(), data, nrounds, evals = list(),
745745
#' A scalar or a list of targeted quantiles (passed as a numeric vector).
746746
#'
747747
#' Version added: 2.0.0
748-
#' @param aft_loss_distribution (for using AFT Survival Loss (`"survival:aft"`) and Negative Log Likelihood of AFT metric (`"aft-nloglik"`))
748+
#' @param aft_loss_distribution (when using AFT Survival Loss (`"survival:aft"`) and Negative Log Likelihood of AFT metric (`"aft-nloglik"`))
749749
#' Probability Density Function, `"normal"`, `"logistic"`, or `"extreme"`.
750+
#' @param aft_loss_distribution_scale (when using AFT Survival Loss (`"survival:aft"`) and Negative Log Likelihood of AFT metric (`"aft-nloglik"`))
751+
#' Scaling factor for the AFT distribution. Range: \eqn{(0, \infty)}.
750752
#' @param lambdarank_pair_method (for learning to rank (`"rank:ndcg"`, `"rank:map"`, `"rank:pairwise"`)) (default = `"topk"`)
751753
#' How to construct pairs for pair-wise learning.
752754
#' - `"mean"`: Sample `lambdarank_num_pair_per_sample` pairs for each document in the query list.
@@ -834,6 +836,7 @@ xgb.params <- function(
834836
huber_slope = NULL,
835837
quantile_alpha = NULL,
836838
aft_loss_distribution = NULL,
839+
aft_loss_distribution_scale = NULL,
837840
lambdarank_pair_method = NULL,
838841
lambdarank_num_pair_per_sample = NULL,
839842
lambdarank_normalization = NULL,

R-package/man/xgb.params.Rd

Lines changed: 5 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

R-package/man/xgboost.Rd

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

doc/parameter.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
..
2+
IMPORTANT: When adding new entries to this file (e.g. a new parameter),
3+
the parameter should also be added under file 'R-package/R/xgb.train.R'.
4+
15
##################
26
XGBoost Parameters
37
##################

0 commit comments

Comments
 (0)