You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
surv.xgboost model type split + add distr predictions to surv.xgboost.cox (#333)
* add type init parameter
* update tests, add one more
* update docs
* revert back to xgboost without type argument + small refactoring
* add doc template for early stopping
* refactor: convert function from task to xgboost data matrix
* add xgboost Cox and AFT separate learners
* fix roxygen warning
* remove deprecated parameter
* export new xgboost learners
* small doc fix
* doc: change early stopping position
* update aorsf doc
* revert back to old doc for surv.xgboost (objective-non-specific)
* add doc for prediction types doc and refactor output prediction for xgboost AFT
* more parmaeter tests
* revert tests back to use original xgboost implementation
* add new tests
* add docs for the two types of xgboost learners
* correct parameter name in aorsf
* fix style warnings
* more styling issues fixed
* fix test (using rvest 1.0.4)
* add comments
* refactor xgboost importance function
* add distr predictions to surv.xgboost.cox via Breslow
* update xgboost tests
* small fix
* fix importance return value
* doc update
* add distr breslow test for surv.xgboost.cox
* add note to old xgboost survival learner
* clean up return type + add online doc for it as a comment
* update NEWS.md
* update docs
* doc improvements
* supress warnings for to-be-deprecated surv.xgboost learner
* update: run document() across all learners
* hardcode 'objective' and 'eval_metric' learner parameters and update tests
---------
Co-authored-by: Sebastian Fischer <[email protected]>
Copy file name to clipboardExpand all lines: NEWS.md
+1
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,6 @@
1
1
# mlr3extralearners 0.7.1-9000
2
2
3
+
* Added `surv.xgboost.cox` and `surv.xgboost.aft` separate survival learners. `distr` prediction on the cox xgboost learner is now estimated via Breslow by default and aft xgboost has now in addition a `response` prediction (survival time)
3
4
* Ported `surv.parametric` code to `survivalmodels`, changed `type` parameter to `form` to avoid conflict with survivalmodels's default parameter list
4
5
* Fix: Replace hardcoded `VectorDistribution`s from partykit and flexsurv survival learners with survival matrices (`Matdist`) (thanks to @bblodfon)
5
6
* Feat: Add `discrete` parameter in `surv.parametric` learner to return `Matdist` survival predictions
Copy file name to clipboardExpand all lines: R/learner_xgboost_surv_xgboost.R
+13-47
Original file line number
Diff line number
Diff line change
@@ -6,24 +6,23 @@
6
6
#' eXtreme Gradient Boosting regression.
7
7
#' Calls [xgboost::xgb.train()] from package \CRANpkg{xgboost}.
8
8
#'
9
+
#' **Note:** We strongly advise to use the separate [Cox][LearnerSurvXgboostCox]
10
+
#' and [AFT][LearnerSurvXgboostAFT] xgboost survival learners since they represent
11
+
#' two very distinct survival modeling methods and we offer more prediction
12
+
#' types in the respective learners compared to the ones available here.
13
+
#' This learner will be deprecated in the future.
14
+
#'
9
15
#' @template note_xgboost
10
16
#'
11
17
#' @section Initial parameter values:
12
18
#' - `nrounds` is initialized to 1.
13
19
#' - `nthread` is initialized to 1 to avoid conflicts with parallelization via \CRANpkg{future}.
14
20
#' - `verbose` is initialized to 0.
15
21
#' - `objective` is initialized to `survival:cox` for survival analysis.
16
-
#' @section Early stopping:
17
-
#' Early stopping can be used to find the optimal number of boosting rounds.
18
-
#' The `early_stopping_set` parameter controls which set is used to monitor the performance.
19
-
#' Set `early_stopping_set = "test"` to monitor the performance of the model on the test set while training.
20
-
#' The test set for early stopping can be set with the `"test"` row role in the [mlr3::Task].
21
-
#' Additionally, the range must be set in which the performance must increase with `early_stopping_rounds` and the maximum number of boosting rounds with `nrounds`.
22
-
#' While resampling, the test set is automatically applied from the [mlr3::Resampling].
23
-
#' Not that using the test set for early stopping can potentially bias the performance scores.
0 commit comments