Cross-Validated GLM with Elastic Net Regularization Survival Learner
mlr_learners_surv.cv_glmnet.Rd
Generalized linear models with elastic net regularization.
Calls glmnet::cv.glmnet()
from package glmnet.
Prediction types
This learner returns three prediction types:
lp
: a vector containing the linear predictors (relative risk scores), where each score corresponds to a specific test observation. Calculated usingglmnet::predict.cv.glmnet()
.crank
: same aslp
.distr
: a survival matrix in two dimensions, where observations are represented in rows and time points in columns. Calculated usingglmnet::survfit.cv.glmnet()
. Parametersstype
andctype
relate to howlp
predictions are transformed into survival predictions and are described insurvival::survfit.coxph()
. By default the Breslow estimator is used for computing the baseline hazard.
Meta Information
Task type: “surv”
Predict Types: “crank”, “distr”, “lp”
Feature Types: “logical”, “integer”, “numeric”
Required Packages: mlr3, mlr3proba, mlr3extralearners, glmnet
Parameters
Id | Type | Default | Levels | Range |
alignment | character | lambda | lambda, fraction | - |
alpha | numeric | 1 | \([0, 1]\) | |
big | numeric | 9.9e+35 | \((-\infty, \infty)\) | |
devmax | numeric | 0.999 | \([0, 1]\) | |
dfmax | integer | - | \([0, \infty)\) | |
eps | numeric | 1e-06 | \([0, 1]\) | |
epsnr | numeric | 1e-08 | \([0, 1]\) | |
exclude | untyped | - | - | |
exmx | numeric | 250 | \((-\infty, \infty)\) | |
fdev | numeric | 1e-05 | \([0, 1]\) | |
foldid | untyped | NULL | - | |
gamma | untyped | - | - | |
grouped | logical | TRUE | TRUE, FALSE | - |
intercept | logical | TRUE | TRUE, FALSE | - |
keep | logical | FALSE | TRUE, FALSE | - |
lambda | untyped | - | - | |
lambda.min.ratio | numeric | - | \([0, 1]\) | |
lower.limits | untyped | -Inf | - | |
maxit | integer | 100000 | \([1, \infty)\) | |
mnlam | integer | 5 | \([1, \infty)\) | |
mxit | integer | 100 | \([1, \infty)\) | |
mxitnr | integer | 25 | \([1, \infty)\) | |
nfolds | integer | 10 | \([3, \infty)\) | |
nlambda | integer | 100 | \([1, \infty)\) | |
offset | untyped | NULL | - | |
newoffset | untyped | - | - | |
parallel | logical | FALSE | TRUE, FALSE | - |
penalty.factor | untyped | - | - | |
pmax | integer | - | \([0, \infty)\) | |
pmin | numeric | 1e-09 | \([0, 1]\) | |
prec | numeric | 1e-10 | \((-\infty, \infty)\) | |
predict.gamma | numeric | gamma.1se | \((-\infty, \infty)\) | |
relax | logical | FALSE | TRUE, FALSE | - |
s | numeric | lambda.1se | \([0, \infty)\) | |
standardize | logical | TRUE | TRUE, FALSE | - |
standardize.response | logical | FALSE | TRUE, FALSE | - |
thresh | numeric | 1e-07 | \([0, \infty)\) | |
trace.it | integer | 0 | \([0, 1]\) | |
type.gaussian | character | - | covariance, naive | - |
type.logistic | character | Newton | Newton, modified.Newton | - |
type.measure | character | deviance | deviance, C | - |
type.multinomial | character | ungrouped | ungrouped, grouped | - |
upper.limits | untyped | Inf | - | |
stype | integer | 2 | \([1, 2]\) | |
ctype | integer | - | \([1, 2]\) |
References
Friedman J, Hastie T, Tibshirani R (2010). “Regularization Paths for Generalized Linear Models via Coordinate Descent.” Journal of Statistical Software, 33(1), 1–22. doi:10.18637/jss.v033.i01 .
See also
as.data.table(mlr_learners)
for a table of available Learners in the running session (depending on the loaded packages).Chapter in the mlr3book: https://mlr3book.mlr-org.com/basics.html#learners
mlr3learners for a selection of recommended learners.
mlr3cluster for unsupervised clustering learners.
mlr3pipelines to combine learners with pre- and postprocessing steps.
mlr3tuning for tuning of hyperparameters, mlr3tuningspaces for established default tuning spaces.
Super classes
mlr3::Learner
-> mlr3proba::LearnerSurv
-> LearnerSurvCVGlmnet
Methods
Method selected_features()
Returns the set of selected features as reported by glmnet::predict.glmnet()
with type
set to "nonzero"
.
Arguments
lambda
(
numeric(1)
)
Customlambda
, defaults to the active lambda depending on parameter set.
Returns
(character()
) of feature names.
Examples
# Define the Learner
learner = mlr3::lrn("surv.cv_glmnet")
print(learner)
#> <LearnerSurvCVGlmnet:surv.cv_glmnet>: Regularized Generalized Linear Model
#> * Model: -
#> * Parameters: list()
#> * Packages: mlr3, mlr3proba, mlr3extralearners, glmnet
#> * Predict Types: [crank], distr, lp
#> * Feature Types: logical, integer, numeric
#> * Properties: selected_features, weights
# Define a Task
task = mlr3::tsk("grace")
# Create train and test set
ids = mlr3::partition(task)
# Train the learner on the training ids
learner$train(task, row_ids = ids$train)
print(learner$model)
#> $model
#>
#> Call: (if (cv) glmnet::cv.glmnet else glmnet::glmnet)(x = data, y = target, family = "cox")
#>
#> Measure: Partial Likelihood Deviance
#>
#> Lambda Index Measure SE Nonzero
#> min 0.00342 44 8.678 0.3186 6
#> 1se 0.05579 14 8.963 0.2934 4
#>
#> $x
#> age los revasc revascdays stchange sysbp
#> [1,] 28 9 0 180 1 107
#> [2,] 33 2 0 2 0 150
#> [3,] 35 5 1 2 0 172
#> [4,] 35 10 1 9 0 106
#> [5,] 34 5 0 5 0 120
#> [6,] 37 9 0 180 1 151
#> [7,] 36 1 0 180 1 155
#> [8,] 38 12 1 8 1 120
#> [9,] 36 5 1 0 1 115
#> [10,] 38 12 1 11 1 92
#> [11,] 37 1 1 0 1 146
#> [12,] 40 2 1 1 1 148
#> [13,] 38 5 1 3 0 125
#> [14,] 40 6 0 180 1 138
#> [15,] 40 11 1 10 1 120
#> [16,] 42 2 0 180 0 100
#> [17,] 43 3 1 0 1 100
#> [18,] 40 1 1 0 1 145
#> [19,] 42 15 1 13 1 125
#> [20,] 43 2 1 1 1 116
#> [21,] 42 2 0 180 1 124
#> [22,] 44 5 1 1 0 170
#> [23,] 45 3 0 180 1 154
#> [24,] 41 10 1 8 0 150
#> [25,] 41 13 1 1 0 140
#> [26,] 45 6 0 180 1 170
#> [27,] 44 2 1 1 1 150
#> [28,] 43 2 0 180 1 140
#> [29,] 45 2 0 180 1 140
#> [30,] 46 15 0 180 0 120
#> [31,] 47 4 1 3 0 118
#> [32,] 45 3 0 150 0 130
#> [33,] 44 3 1 0 1 180
#> [34,] 43 29 0 180 1 180
#> [35,] 47 6 1 0 1 116
#> [36,] 46 13 1 10 0 100
#> [37,] 44 0 1 0 1 96
#> [38,] 43 3 1 0 1 124
#> [39,] 45 8 1 0 1 117
#> [40,] 45 5 0 5 0 141
#> [41,] 46 2 1 1 1 122
#> [42,] 46 6 1 0 1 100
#> [43,] 44 9 1 8 1 135
#> [44,] 45 5 0 180 1 190
#> [45,] 46 5 1 3 0 130
#> [46,] 46 4 0 180 1 121
#> [47,] 46 15 0 180 1 120
#> [48,] 45 9 1 0 1 145
#> [49,] 47 3 1 1 1 120
#> [50,] 48 3 0 180 0 154
#> [51,] 48 12 1 11 0 200
#> [52,] 47 5 1 3 1 130
#> [53,] 47 9 1 6 0 170
#> [54,] 47 10 0 10 1 140
#> [55,] 50 1 1 0 1 129
#> [56,] 48 2 1 0 0 184
#> [57,] 50 4 1 1 0 125
#> [58,] 50 6 1 2 1 140
#> [59,] 49 7 1 7 1 110
#> [60,] 46 3 1 1 1 140
#> [61,] 46 9 1 9 1 122
#> [62,] 50 7 0 180 1 110
#> [63,] 49 2 0 2 0 105
#> [64,] 51 1 0 1 1 145
#> [65,] 46 6 1 0 1 156
#> [66,] 51 3 1 2 0 113
#> [67,] 50 1 1 0 0 150
#> [68,] 50 9 0 180 0 130
#> [69,] 49 7 1 4 1 90
#> [70,] 47 8 0 180 0 160
#> [71,] 51 8 0 180 1 140
#> [72,] 46 3 0 180 1 120
#> [73,] 46 1 1 1 0 145
#> [74,] 50 4 1 1 0 150
#> [75,] 53 8 0 36 1 160
#> [76,] 48 17 1 10 0 111
#> [77,] 52 4 1 4 0 152
#> [78,] 49 9 1 3 0 102
#> [79,] 53 5 0 180 1 140
#> [80,] 54 6 1 3 0 129
#> [81,] 51 3 1 1 0 140
#> [82,] 53 8 1 7 0 160
#> [83,] 48 3 1 2 0 150
#> [84,] 51 25 1 1 0 202
#> [85,] 53 4 0 4 0 140
#> [86,] 48 6 0 180 0 160
#> [87,] 48 11 1 10 0 120
#> [88,] 51 13 0 99 1 160
#> [89,] 54 9 1 0 1 138
#> [90,] 49 16 0 16 0 125
#> [91,] 55 3 1 1 0 150
#> [92,] 54 23 1 10 0 131
#> [93,] 52 7 1 2 0 154
#> [94,] 55 6 1 2 1 114
#> [95,] 55 4 1 2 0 150
#> [96,] 51 13 1 11 0 145
#> [97,] 50 5 1 4 1 150
#> [98,] 52 4 0 180 0 183
#> [99,] 50 3 0 174 1 153
#> [100,] 55 28 1 13 1 160
#> [101,] 49 6 1 0 1 130
#> [102,] 49 1 0 1 1 110
#> [103,] 50 7 1 1 0 156
#> [104,] 53 8 1 0 1 130
#> [105,] 50 7 1 0 1 127
#> [106,] 52 5 0 175 1 117
#> [107,] 55 2 0 2 0 145
#> [108,] 54 7 1 0 1 100
#> [109,] 56 3 0 180 1 193
#> [110,] 56 2 0 180 0 132
#> [111,] 52 8 0 180 0 119
#> [112,] 53 18 1 9 1 150
#> [113,] 55 6 0 180 0 170
#> [114,] 53 10 1 9 0 172
#> [115,] 52 16 1 14 0 170
#> [116,] 53 4 0 180 1 150
#> [117,] 55 6 0 180 1 100
#> [118,] 55 6 1 5 1 138
#> [119,] 54 7 1 2 0 129
#> [120,] 54 2 1 1 1 176
#> [121,] 57 1 0 180 1 156
#> [122,] 57 1 0 1 1 100
#> [123,] 52 15 1 14 0 130
#> [124,] 56 14 1 11 0 130
#> [125,] 53 3 1 0 1 200
#> [126,] 54 5 0 180 1 108
#> [127,] 53 21 1 13 1 130
#> [128,] 59 3 1 1 0 172
#> [129,] 58 6 1 0 1 90
#> [130,] 53 15 1 10 1 130
#> [131,] 54 17 1 8 1 227
#> [132,] 55 13 0 166 1 140
#> [133,] 53 4 0 147 1 145
#> [134,] 53 7 1 0 1 120
#> [135,] 57 11 1 10 1 129
#> [136,] 55 3 1 2 0 140
#> [137,] 55 5 0 5 1 131
#> [138,] 54 7 1 0 1 141
#> [139,] 56 4 0 4 0 164
#> [140,] 59 15 1 10 0 140
#> [141,] 58 1 1 1 1 200
#> [142,] 56 7 1 5 1 120
#> [143,] 55 2 0 2 0 106
#> [144,] 57 1 0 180 0 148
#> [145,] 60 11 1 9 0 106
#> [146,] 57 2 0 2 1 120
#> [147,] 60 5 1 1 0 138
#> [148,] 57 5 0 180 1 130
#> [149,] 57 10 1 9 0 103
#> [150,] 59 6 1 0 1 140
#> [151,] 61 9 0 9 1 160
#> [152,] 58 4 1 3 0 120
#> [153,] 60 0 1 0 1 80
#> [154,] 59 2 1 1 0 140
#> [155,] 58 8 0 161 1 140
#> [156,] 58 14 1 6 0 190
#> [157,] 61 4 1 3 0 151
#> [158,] 61 9 1 8 0 150
#> [159,] 58 1 0 1 1 100
#> [160,] 61 20 1 13 0 130
#> [161,] 57 13 1 10 0 110
#> [162,] 57 2 1 0 1 116
#> [163,] 57 11 0 180 1 150
#> [164,] 57 3 1 2 0 120
#> [165,] 56 13 1 6 1 158
#> [166,] 59 9 1 0 1 80
#> [167,] 55 4 1 3 1 160
#> [168,] 58 11 0 172 1 135
#> [169,] 60 12 1 0 1 114
#> [170,] 55 9 1 7 1 135
#> [171,] 56 8 1 8 0 120
#> [172,] 61 13 1 12 1 130
#> [173,] 59 11 1 8 1 190
#> [174,] 57 1 0 1 0 126
#> [175,] 57 15 1 13 1 110
#> [176,] 59 5 1 2 0 182
#> [177,] 59 10 0 180 0 160
#> [178,] 61 13 0 13 0 210
#> [179,] 62 10 1 0 1 153
#> [180,] 62 7 1 2 1 180
#> [181,] 57 3 1 0 0 100
#> [182,] 61 18 0 170 0 140
#> [183,] 61 28 1 7 0 133
#> [184,] 58 8 1 3 1 150
#> [185,] 57 7 0 169 0 180
#> [186,] 61 6 0 6 0 134
#> [187,] 57 12 1 9 1 120
#> [188,] 62 4 1 0 0 160
#> [189,] 62 4 1 3 0 173
#> [190,] 58 2 0 30 0 202
#> [191,] 59 1 0 180 0 155
#> [192,] 61 13 0 13 0 120
#> [193,] 57 18 1 9 1 93
#> [194,] 61 5 0 5 1 160
#> [195,] 58 11 1 9 0 179
#> [196,] 57 2 1 1 0 159
#> [197,] 58 7 0 180 1 150
#> [198,] 63 3 1 1 0 180
#> [199,] 63 1 0 180 1 130
#> [200,] 63 4 1 3 0 222
#> [201,] 63 15 1 10 1 126
#> [202,] 63 4 1 1 0 155
#> [203,] 60 18 1 13 0 132
#> [204,] 59 8 0 180 1 140
#> [205,] 61 9 1 9 1 150
#> [206,] 58 9 1 9 0 110
#> [207,] 59 1 0 22 1 162
#> [208,] 59 4 0 180 0 196
#> [209,] 60 7 1 5 1 141
#> [210,] 59 5 1 1 0 148
#> [211,] 60 7 1 1 1 90
#> [212,] 65 13 0 180 1 100
#> [213,] 63 1 0 1 0 162
#> [214,] 63 1 0 1 0 130
#> [215,] 62 6 0 180 0 170
#> [216,] 59 4 0 4 0 149
#> [217,] 60 3 0 3 0 168
#> [218,] 64 10 1 9 0 160
#> [219,] 63 12 1 10 0 200
#> [220,] 59 10 0 180 1 130
#> [221,] 64 6 1 0 1 140
#> [222,] 63 14 1 9 0 123
#> [223,] 65 36 1 11 0 140
#> [224,] 63 4 1 3 0 162
#> [225,] 66 3 1 1 0 127
#> [226,] 61 10 1 2 1 194
#> [227,] 63 7 0 180 0 120
#> [228,] 65 8 1 0 0 168
#> [229,] 65 10 1 8 1 120
#> [230,] 64 0 0 0 1 90
#> [231,] 60 6 0 180 0 130
#> [232,] 64 21 1 10 0 190
#> [233,] 61 12 1 11 0 154
#> [234,] 61 4 0 180 1 113
#> [235,] 65 3 0 180 1 190
#> [236,] 63 16 1 7 1 110
#> [237,] 63 12 0 12 1 150
#> [238,] 62 3 1 1 1 199
#> [239,] 63 5 1 4 0 170
#> [240,] 62 13 1 11 0 180
#> [241,] 64 2 0 2 0 201
#> [242,] 61 15 1 10 0 130
#> [243,] 63 9 1 8 1 160
#> [244,] 63 3 1 2 0 120
#> [245,] 63 2 1 0 0 140
#> [246,] 64 19 1 8 1 160
#> [247,] 65 8 1 0 1 140
#> [248,] 67 6 0 180 1 170
#> [249,] 65 15 1 11 1 160
#> [250,] 64 6 1 0 1 125
#> [251,] 66 7 1 0 1 115
#> [252,] 66 13 1 0 0 118
#> [253,] 65 3 0 3 0 105
#> [254,] 64 0 0 0 1 148
#> [255,] 67 4 1 3 0 130
#> [256,] 66 3 1 0 1 135
#> [257,] 65 2 1 1 1 170
#> [258,] 67 8 1 1 1 130
#> [259,] 68 5 0 5 1 90
#> [260,] 66 14 0 180 0 130
#> [261,] 64 1 0 1 1 120
#> [262,] 68 18 0 180 1 260
#> [263,] 65 17 1 14 1 100
#> [264,] 63 8 1 1 1 162
#> [265,] 65 18 1 3 0 120
#> [266,] 63 1 1 0 1 155
#> [267,] 67 11 0 11 0 150
#> [268,] 68 11 0 180 0 160
#> [269,] 68 14 0 79 0 172
#> [270,] 66 12 1 10 1 150
#> [271,] 65 15 1 12 1 150
#> [272,] 65 4 1 2 1 145
#> [273,] 69 12 0 15 1 140
#> [274,] 66 15 1 13 1 160
#> [275,] 63 2 0 180 0 150
#> [276,] 65 11 1 6 0 130
#> [277,] 69 21 1 10 0 180
#> [278,] 69 6 0 180 1 100
#> [279,] 66 9 1 8 0 130
#> [280,] 63 8 0 180 1 120
#> [281,] 68 14 1 13 1 140
#> [282,] 65 8 1 0 1 90
#> [283,] 69 1 1 0 0 170
#> [284,] 68 10 1 10 1 150
#> [285,] 65 1 1 0 0 133
#> [286,] 67 7 1 4 1 130
#> [287,] 63 2 1 0 0 99
#> [288,] 67 2 0 180 0 184
#> [289,] 65 6 0 6 0 80
#> [290,] 66 19 1 12 1 150
#> [291,] 64 4 0 179 0 160
#> [292,] 66 4 0 180 1 130
#> [293,] 64 11 0 11 0 125
#> [294,] 64 4 0 180 1 140
#> [295,] 64 0 1 0 1 118
#> [296,] 67 2 0 18 0 131
#> [297,] 66 7 1 5 1 131
#> [298,] 69 4 1 3 1 150
#> [299,] 65 13 1 12 1 130
#> [300,] 69 17 1 10 0 140
#> [301,] 64 21 0 21 1 155
#> [302,] 66 6 0 180 0 140
#> [303,] 65 1 0 1 1 120
#> [304,] 68 18 1 0 1 160
#> [305,] 65 6 0 101 1 115
#> [306,] 68 4 0 4 1 190
#> [307,] 71 3 0 5 0 112
#> [308,] 68 7 0 150 0 210
#> [309,] 71 20 1 0 1 160
#> [310,] 67 2 0 180 0 128
#> [311,] 66 1 1 1 1 165
#> [312,] 69 8 0 180 1 153
#> [313,] 70 14 0 171 0 166
#> [314,] 66 4 0 180 0 130
#> [315,] 67 10 1 9 0 200
#> [316,] 67 6 1 4 0 130
#> [317,] 69 0 0 0 1 148
#> [318,] 68 7 1 0 1 150
#> [319,] 69 3 1 2 0 151
#> [320,] 67 14 1 13 0 130
#> [321,] 65 14 1 13 1 150
#> [322,] 71 7 0 7 0 230
#> [323,] 66 2 0 2 1 228
#> [324,] 71 6 0 45 1 158
#> [325,] 69 5 0 5 1 142
#> [326,] 70 22 1 13 0 103
#> [327,] 67 1 0 36 1 104
#> [328,] 67 5 0 5 0 130
#> [329,] 68 6 0 180 0 145
#> [330,] 69 8 1 5 1 195
#> [331,] 72 7 0 7 1 110
#> [332,] 69 8 1 7 1 108
#> [333,] 67 3 0 180 0 110
#> [334,] 66 2 1 1 0 123
#> [335,] 69 19 0 180 0 130
#> [336,] 67 14 0 172 1 140
#> [337,] 69 11 1 0 1 120
#> [338,] 66 2 0 180 0 130
#> [339,] 69 4 1 3 0 132
#> [340,] 68 2 0 7 1 130
#> [341,] 69 8 1 2 0 121
#> [342,] 67 13 1 9 0 130
#> [343,] 70 3 0 123 0 130
#> [344,] 70 9 0 180 1 142
#> [345,] 72 5 1 4 0 170
#> [346,] 67 22 1 1 1 140
#> [347,] 67 12 1 8 0 120
#> [348,] 67 1 0 1 1 60
#> [349,] 67 4 0 60 1 136
#> [350,] 67 8 1 0 1 130
#> [351,] 72 13 1 11 1 195
#> [352,] 68 10 1 8 1 160
#> [353,] 66 24 1 13 0 130
#> [354,] 70 35 1 0 1 105
#> [355,] 72 30 1 0 1 145
#> [356,] 70 7 0 7 0 102
#> [357,] 73 20 1 0 1 170
#> [358,] 71 6 0 9 0 120
#> [359,] 70 11 0 180 1 210
#> [360,] 72 12 1 10 0 170
#> [361,] 67 8 0 180 1 170
#> [362,] 67 9 0 180 0 158
#> [363,] 70 5 0 180 0 150
#> [364,] 72 2 0 2 1 100
#> [365,] 72 6 1 5 0 115
#> [366,] 71 1 0 173 1 188
#> [367,] 68 23 0 180 1 220
#> [368,] 70 3 0 180 0 121
#> [369,] 69 3 0 180 0 220
#> [370,] 68 4 1 3 0 210
#> [371,] 71 5 0 180 0 191
#> [372,] 73 6 0 180 1 117
#> [373,] 69 16 1 10 1 140
#> [374,] 69 8 1 1 0 164
#> [375,] 68 7 0 180 1 130
#> [376,] 72 16 1 1 1 130
#> [377,] 70 4 0 180 0 180
#> [378,] 69 1 1 0 0 155
#> [379,] 72 8 1 1 1 150
#> [380,] 71 2 1 0 1 180
#> [381,] 73 7 0 7 1 140
#> [382,] 70 3 0 3 1 159
#> [383,] 72 6 0 180 1 130
#> [384,] 73 0 0 180 1 161
#> [385,] 74 8 1 0 1 85
#> [386,] 69 2 1 0 1 110
#> [387,] 71 3 1 1 0 150
#> [388,] 74 0 1 0 1 90
#> [389,] 71 17 1 11 0 160
#> [390,] 71 3 1 2 1 190
#> [391,] 73 10 1 8 0 106
#> [392,] 69 12 1 1 1 149
#> [393,] 70 26 1 11 1 120
#> [394,] 74 4 0 4 0 120
#> [395,] 72 5 1 3 1 160
#> [396,] 70 3 0 180 1 154
#> [397,] 73 6 0 180 0 110
#> [398,] 72 15 1 0 1 150
#> [399,] 71 7 1 2 0 143
#> [400,] 74 3 0 3 1 150
#> [401,] 71 13 1 8 0 121
#> [402,] 69 2 1 1 1 80
#> [403,] 70 4 1 0 1 140
#> [404,] 74 7 1 0 1 117
#> [405,] 72 10 1 8 1 153
#> [406,] 69 7 0 180 1 144
#> [407,] 72 15 1 13 0 156
#> [408,] 70 8 0 8 0 120
#> [409,] 71 10 1 9 1 120
#> [410,] 75 1 0 1 0 133
#> [411,] 75 2 1 1 0 145
#> [412,] 73 10 1 9 1 146
#> [413,] 72 10 1 9 1 160
#> [414,] 73 10 1 10 1 120
#> [415,] 74 15 1 9 1 179
#> [416,] 71 2 0 10 1 112
#> [417,] 73 1 0 1 1 80
#> [418,] 75 13 1 1 1 130
#> [419,] 71 11 1 8 0 110
#> [420,] 71 4 0 4 0 134
#> [421,] 72 15 1 12 1 120
#> [422,] 70 7 1 4 0 184
#> [423,] 72 1 1 1 0 168
#> [424,] 72 7 0 57 1 145
#> [425,] 73 10 0 180 0 162
#> [426,] 72 11 0 11 1 140
#> [427,] 70 3 0 3 0 150
#> [428,] 73 5 1 3 1 112
#> [429,] 76 25 1 12 1 170
#> [430,] 72 2 0 180 0 120
#> [431,] 72 4 1 0 1 197
#> [432,] 71 3 1 0 0 144
#> [433,] 73 5 0 180 0 126
#> [434,] 73 4 0 180 0 124
#> [435,] 74 34 1 8 1 233
#> [436,] 76 3 1 0 1 120
#> [437,] 72 5 0 180 0 154
#> [438,] 75 3 1 1 0 180
#> [439,] 73 10 1 10 0 124
#> [440,] 74 7 0 180 1 150
#> [441,] 76 1 0 180 0 114
#> [442,] 74 2 1 1 0 140
#> [443,] 76 8 1 0 1 141
#> [444,] 73 6 0 6 1 114
#> [445,] 72 4 0 85 1 120
#> [446,] 76 17 1 0 1 200
#> [447,] 73 4 1 3 1 125
#> [448,] 75 4 1 0 1 122
#> [449,] 75 7 0 7 0 190
#> [450,] 75 0 0 0 1 130
#> [451,] 75 12 0 12 1 160
#> [452,] 74 6 0 180 0 160
#> [453,] 75 1 0 1 1 125
#> [454,] 74 2 0 180 0 111
#> [455,] 73 0 0 180 0 156
#> [456,] 76 44 1 10 0 105
#> [457,] 74 10 1 0 1 135
#> [458,] 74 8 1 8 1 170
#> [459,] 75 9 0 180 1 140
#> [460,] 73 33 1 12 1 175
#> [461,] 77 5 1 0 0 123
#> [462,] 77 12 1 9 1 100
#> [463,] 77 12 0 180 0 130
#> [464,] 76 12 1 11 1 120
#> [465,] 78 5 1 0 1 170
#> [466,] 73 7 1 0 0 174
#> [467,] 74 6 0 79 1 140
#> [468,] 75 3 1 1 1 171
#> [469,] 74 9 1 8 0 200
#> [470,] 79 10 1 8 0 190
#> [471,] 74 2 1 0 1 130
#> [472,] 77 3 0 180 0 110
#> [473,] 76 29 0 47 0 90
#> [474,] 73 11 1 2 1 110
#> [475,] 74 2 0 180 0 100
#> [476,] 78 8 1 6 1 110
#> [477,] 74 7 0 7 0 161
#> [478,] 76 13 1 1 1 170
#> [479,] 79 6 0 180 0 170
#> [480,] 80 10 1 6 1 147
#> [481,] 78 0 0 180 1 212
#> [482,] 78 13 1 5 0 130
#> [483,] 75 5 0 119 1 150
#> [484,] 75 12 1 1 1 120
#> [485,] 78 15 0 180 1 270
#> [486,] 80 8 0 8 1 120
#> [487,] 76 1 0 1 1 83
#> [488,] 79 4 0 80 0 145
#> [489,] 78 12 1 9 0 150
#> [490,] 78 2 1 1 0 130
#> [491,] 78 10 0 180 1 130
#> [492,] 75 3 0 3 0 0
#> [493,] 76 7 0 29 1 150
#> [494,] 77 24 0 24 1 160
#> [495,] 79 8 0 32 1 120
#> [496,] 80 9 0 23 1 128
#> [497,] 78 11 1 1 1 140
#> [498,] 79 11 0 180 0 160
#> [499,] 79 2 1 0 1 121
#> [500,] 81 1 0 1 0 130
#> [501,] 78 11 1 8 1 118
#> [502,] 76 4 0 4 1 160
#> [503,] 79 4 0 4 1 125
#> [504,] 76 10 1 8 0 180
#> [505,] 76 12 1 10 1 127
#> [506,] 80 3 1 0 1 120
#> [507,] 75 2 1 1 1 204
#> [508,] 78 11 0 180 1 135
#> [509,] 77 31 1 3 1 161
#> [510,] 79 3 0 3 0 120
#> [511,] 77 7 0 180 1 170
#> [512,] 79 4 1 0 1 120
#> [513,] 81 1 0 180 0 120
#> [514,] 80 15 1 12 1 150
#> [515,] 77 9 1 4 0 141
#> [516,] 82 5 0 8 1 120
#> [517,] 80 40 1 0 1 138
#> [518,] 78 4 0 59 1 112
#> [519,] 80 17 1 12 0 100
#> [520,] 76 7 0 161 0 151
#> [521,] 81 4 1 2 1 126
#> [522,] 79 28 0 164 0 100
#> [523,] 80 9 0 118 1 186
#> [524,] 79 1 0 37 1 140
#> [525,] 81 2 0 175 0 172
#> [526,] 78 15 0 15 0 165
#> [527,] 80 5 1 1 1 108
#> [528,] 78 4 0 180 0 175
#> [529,] 79 3 0 3 1 101
#> [530,] 78 26 1 5 0 194
#> [531,] 81 4 1 1 1 104
#> [532,] 78 20 1 0 1 109
#> [533,] 80 1 0 1 0 100
#> [534,] 77 10 1 8 1 130
#> [535,] 82 3 1 1 1 144
#> [536,] 77 5 0 85 0 188
#> [537,] 80 2 1 1 0 168
#> [538,] 79 6 0 6 0 152
#> [539,] 80 6 1 0 1 119
#> [540,] 81 1 0 108 0 129
#> [541,] 78 12 0 180 0 134
#> [542,] 84 22 1 10 0 180
#> [543,] 80 6 0 6 1 110
#> [544,] 83 9 1 5 1 170
#> [545,] 82 5 0 180 0 110
#> [546,] 79 7 1 6 0 130
#> [547,] 83 4 0 103 0 97
#> [548,] 81 11 1 8 0 160
#> [549,] 81 5 0 177 0 41
#> [550,] 80 11 1 8 0 170
#> [551,] 78 23 1 10 1 145
#> [552,] 78 9 1 4 1 120
#> [553,] 82 8 1 1 0 128
#> [554,] 79 1 0 180 1 170
#> [555,] 81 15 0 180 1 140
#> [556,] 84 5 1 1 1 85
#> [557,] 81 20 1 9 0 170
#> [558,] 83 8 0 8 0 115
#> [559,] 81 16 0 16 1 110
#> [560,] 80 6 1 0 1 150
#> [561,] 80 11 1 8 0 110
#> [562,] 79 7 0 177 0 197
#> [563,] 79 0 1 0 1 96
#> [564,] 85 4 0 180 0 90
#> [565,] 83 2 0 2 1 155
#> [566,] 84 4 0 167 0 198
#> [567,] 80 3 1 1 1 230
#> [568,] 82 23 1 0 0 110
#> [569,] 84 5 0 180 1 203
#> [570,] 84 4 0 4 1 85
#> [571,] 84 1 0 38 1 205
#> [572,] 83 3 0 180 0 174
#> [573,] 81 4 0 90 1 138
#> [574,] 79 9 1 8 0 150
#> [575,] 85 3 1 2 1 160
#> [576,] 80 2 1 0 1 130
#> [577,] 79 4 0 4 1 60
#> [578,] 80 6 0 71 1 189
#> [579,] 83 9 0 180 0 198
#> [580,] 79 14 1 0 0 110
#> [581,] 81 14 1 12 1 128
#> [582,] 82 0 0 2 1 100
#> [583,] 85 9 1 6 1 160
#> [584,] 83 1 0 180 0 160
#> [585,] 81 4 0 4 0 175
#> [586,] 84 15 1 13 1 110
#> [587,] 81 1 0 1 1 145
#> [588,] 81 12 0 12 1 163
#> [589,] 82 16 1 8 0 103
#> [590,] 82 5 1 0 1 146
#> [591,] 82 15 1 0 0 183
#> [592,] 83 7 0 126 0 135
#> [593,] 86 8 0 8 1 132
#> [594,] 81 16 1 9 0 180
#> [595,] 86 3 0 3 1 140
#> [596,] 82 9 0 180 1 134
#> [597,] 81 13 0 180 0 152
#> [598,] 81 2 1 0 1 118
#> [599,] 82 1 0 180 1 193
#> [600,] 83 4 0 4 0 130
#> [601,] 86 12 1 0 1 132
#> [602,] 82 14 1 11 1 103
#> [603,] 86 6 1 0 1 140
#> [604,] 83 19 0 43 0 150
#> [605,] 84 3 1 2 0 125
#> [606,] 83 10 1 0 1 190
#> [607,] 86 2 0 180 1 169
#> [608,] 84 3 0 3 1 121
#> [609,] 83 13 1 12 0 170
#> [610,] 84 7 1 2 0 148
#> [611,] 84 9 0 92 1 110
#> [612,] 84 3 0 180 1 170
#> [613,] 86 4 0 38 1 122
#> [614,] 82 4 0 4 0 130
#> [615,] 86 13 0 177 0 163
#> [616,] 85 3 0 3 1 113
#> [617,] 86 6 0 6 1 117
#> [618,] 84 13 0 62 1 100
#> [619,] 86 6 1 1 0 112
#> [620,] 88 4 0 4 0 100
#> [621,] 83 20 1 3 1 150
#> [622,] 85 22 0 22 1 184
#> [623,] 83 9 0 65 1 150
#> [624,] 87 2 0 180 1 130
#> [625,] 88 3 0 115 0 110
#> [626,] 88 2 0 180 1 68
#> [627,] 83 3 0 3 1 130
#> [628,] 87 8 0 8 1 157
#> [629,] 89 4 0 4 1 153
#> [630,] 87 1 0 1 0 170
#> [631,] 84 8 0 180 1 119
#> [632,] 87 29 0 29 1 97
#> [633,] 87 15 1 9 1 138
#> [634,] 84 0 0 180 1 136
#> [635,] 89 10 0 46 1 170
#> [636,] 91 8 0 8 0 100
#> [637,] 87 2 0 180 0 160
#> [638,] 87 6 1 0 0 125
#> [639,] 91 10 0 145 0 135
#> [640,] 88 7 0 24 0 119
#> [641,] 88 8 0 50 1 154
#> [642,] 87 6 0 126 1 168
#> [643,] 86 10 0 180 1 137
#> [644,] 90 4 1 0 0 121
#> [645,] 91 1 0 1 1 74
#> [646,] 87 43 0 178 1 130
#> [647,] 87 5 0 36 1 150
#> [648,] 90 5 1 0 1 125
#> [649,] 88 3 1 2 0 159
#> [650,] 89 3 1 1 1 160
#> [651,] 91 3 0 33 1 137
#> [652,] 91 5 0 169 1 176
#> [653,] 89 52 0 52 1 130
#> [654,] 91 0 0 0 0 0
#> [655,] 91 4 1 0 1 120
#> [656,] 90 19 1 11 1 129
#> [657,] 94 6 0 50 0 78
#> [658,] 90 1 0 1 1 118
#> [659,] 91 2 0 2 1 116
#> [660,] 94 8 0 8 1 142
#> [661,] 91 1 0 180 0 158
#> [662,] 90 16 0 16 1 106
#> [663,] 90 3 0 67 0 162
#> [664,] 96 3 0 12 1 97
#> [665,] 94 3 0 26 1 144
#> [666,] 93 0 1 0 1 122
#> [667,] 92 5 0 69 0 139
#> [668,] 92 2 0 2 0 112
#> [669,] 96 3 1 0 1 104
#> [670,] 96 15 1 0 1 140
#>
#> $y
#> [1] 180.0+ 2.0+ 5.0+ 180.0+ 5.0+ 180.0+ 180.0+ 12.0 5.0+ 180.0+
#> [11] 180.0+ 2.0+ 5.0+ 180.0+ 180.0+ 180.0+ 3.0 180.0+ 180.0+ 2.0+
#> [21] 180.0+ 155.0+ 180.0+ 180.0+ 180.0+ 180.0+ 180.0+ 180.0+ 180.0+ 180.0+
#> [31] 180.0+ 150.0 180.0+ 180.0+ 6.0+ 180.0+ 180.0+ 180.0+ 180.0+ 5.0+
#> [41] 161.0+ 180.0+ 180.0+ 180.0+ 5.0+ 180.0+ 180.0+ 177.0+ 180.0+ 180.0+
#> [51] 180.0+ 180.0+ 180.0+ 10.0+ 172.0+ 180.0+ 180.0+ 180.0+ 7.0 180.0+
#> [61] 180.0+ 180.0+ 2.0 1.0 180.0+ 180.0+ 180.0+ 180.0+ 180.0+ 180.0+
#> [71] 180.0+ 180.0+ 180.0+ 180.0+ 36.0 88.0+ 4.0+ 180.0+ 180.0+ 180.0+
#> [81] 180.0+ 180.0+ 180.0+ 180.0+ 4.0+ 180.0+ 180.0+ 99.0 180.0+ 16.0+
#> [91] 180.0+ 152.0+ 7.0+ 6.0+ 180.0+ 13.0+ 171.0+ 180.0+ 174.0+ 28.0
#> [101] 6.0+ 1.0 180.0+ 180.0+ 180.0+ 175.0+ 2.0 7.0+ 180.0+ 180.0+
#> [111] 180.0+ 180.0+ 180.0+ 180.0+ 16.0 180.0+ 180.0+ 180.0+ 180.0+ 180.0+
#> [121] 180.0+ 1.0 180.0+ 180.0+ 180.0+ 180.0+ 180.0+ 180.0+ 180.0+ 180.0+
#> [131] 171.0+ 166.0+ 147.0+ 180.0+ 180.0+ 180.0+ 5.0+ 180.0+ 4.0+ 180.0+
#> [141] 1.0 180.0+ 2.0+ 180.0+ 180.0+ 2.0 180.0+ 180.0+ 180.0+ 64.0
#> [151] 9.0+ 180.0+ 0.5 180.0+ 161.0+ 171.0+ 180.0+ 180.0+ 1.0 180.0+
#> [161] 180.0+ 180.0+ 180.0+ 3.0+ 180.0+ 9.0+ 180.0+ 172.0+ 172.0+ 24.0
#> [171] 8.0 180.0+ 180.0+ 1.0+ 15.0 180.0+ 180.0+ 13.0+ 180.0+ 180.0+
#> [181] 180.0+ 170.0 94.0 180.0+ 169.0 6.0 180.0+ 180.0+ 180.0+ 30.0
#> [191] 180.0+ 13.0+ 18.0 5.0+ 180.0+ 180.0+ 180.0+ 180.0+ 180.0+ 180.0+
#> [201] 180.0+ 4.0+ 180.0+ 180.0+ 180.0+ 9.0 22.0 180.0+ 84.0 180.0+
#> [211] 180.0+ 180.0+ 1.0 1.0 180.0+ 4.0+ 3.0+ 167.0 180.0+ 180.0+
#> [221] 180.0+ 14.0+ 36.0 180.0+ 3.0+ 88.0 180.0+ 180.0+ 180.0+ 0.5
#> [231] 180.0+ 180.0+ 12.0+ 180.0+ 180.0+ 180.0+ 12.0 180.0+ 180.0+ 180.0+
#> [241] 2.0+ 180.0+ 180.0+ 3.0+ 2.0+ 103.0 15.0 180.0+ 180.0+ 180.0+
#> [251] 179.0+ 166.0+ 3.0 0.5+ 180.0+ 3.0+ 175.0+ 8.0 5.0 180.0+
#> [261] 1.0 180.0+ 180.0+ 180.0+ 123.0+ 1.0+ 11.0+ 180.0+ 79.0 80.0
#> [271] 15.0+ 4.0+ 15.0 180.0+ 180.0+ 180.0+ 174.0+ 180.0+ 180.0+ 180.0+
#> [281] 180.0+ 8.0+ 175.0 10.0 180.0+ 180.0+ 180.0+ 180.0+ 6.0 19.0+
#> [291] 179.0+ 180.0+ 11.0+ 180.0+ 0.5 18.0 7.0+ 152.0+ 180.0+ 180.0+
#> [301] 21.0+ 180.0+ 1.0 18.0+ 101.0 4.0 5.0 150.0 180.0+ 180.0+
#> [311] 1.0 180.0+ 171.0 180.0+ 174.0+ 6.0 0.5 180.0+ 180.0+ 180.0+
#> [321] 14.0+ 7.0+ 2.0 45.0 5.0+ 180.0+ 36.0 5.0+ 180.0+ 180.0+
#> [331] 7.0 8.0+ 180.0+ 2.0+ 180.0+ 172.0+ 180.0+ 180.0+ 180.0+ 7.0
#> [341] 8.0+ 13.0+ 123.0 180.0+ 180.0+ 51.0 180.0+ 1.0 60.0 180.0+
#> [351] 132.0 10.0+ 180.0+ 180.0+ 162.0 7.0+ 124.0 9.0 180.0+ 12.0
#> [361] 180.0+ 180.0+ 180.0+ 2.0 180.0+ 173.0+ 180.0+ 180.0+ 180.0+ 180.0+
#> [371] 180.0+ 180.0+ 16.0+ 180.0+ 180.0+ 16.0+ 180.0+ 180.0+ 180.0+ 180.0+
#> [381] 7.0+ 3.0+ 180.0+ 180.0+ 180.0+ 2.0 3.0+ 0.5 180.0+ 3.0
#> [391] 87.0 12.0 180.0+ 4.0+ 180.0+ 180.0+ 180.0+ 180.0+ 180.0+ 3.0
#> [401] 175.0 2.0 180.0+ 180.0+ 10.0+ 180.0+ 180.0+ 8.0+ 179.0+ 1.0
#> [411] 180.0+ 180.0+ 159.0 15.0 180.0+ 10.0 1.0 13.0 180.0+ 4.0+
#> [421] 180.0+ 104.0+ 1.0 57.0 180.0+ 11.0 3.0+ 5.0 180.0+ 180.0+
#> [431] 180.0+ 180.0+ 180.0+ 180.0+ 34.0 180.0+ 180.0+ 180.0+ 10.0 180.0+
#> [441] 180.0+ 180.0+ 180.0+ 6.0 85.0 17.0+ 180.0+ 4.0 7.0 0.5
#> [451] 12.0 180.0+ 1.0 180.0+ 180.0+ 180.0+ 180.0+ 8.0 180.0+ 33.0
#> [461] 5.0 180.0+ 180.0+ 12.0 180.0+ 7.0+ 79.0 3.0 168.0+ 180.0+
#> [471] 176.0+ 180.0+ 47.0 11.0 180.0+ 8.0+ 7.0 180.0+ 180.0+ 10.0
#> [481] 180.0+ 172.0 119.0 12.0 180.0+ 8.0 1.0 80.0 180.0+ 180.0+
#> [491] 180.0+ 3.0 29.0 24.0 32.0 23.0 180.0+ 180.0+ 180.0+ 1.0
#> [501] 11.0 4.0 4.0 10.0+ 180.0+ 3.0+ 2.0+ 180.0+ 171.0 3.0
#> [511] 180.0+ 138.0 180.0+ 180.0+ 71.0 8.0 40.0 59.0 17.0 161.0
#> [521] 93.0 164.0 118.0 37.0 175.0+ 15.0+ 5.0+ 180.0+ 3.0 171.0+
#> [531] 71.0 20.0+ 1.0 10.0 180.0+ 85.0 10.0 6.0+ 6.0 108.0
#> [541] 180.0+ 180.0+ 6.0 9.0+ 180.0+ 180.0+ 103.0 180.0+ 177.0+ 169.0
#> [551] 70.0 180.0+ 180.0+ 180.0+ 180.0+ 180.0+ 20.0 8.0+ 16.0 180.0+
#> [561] 180.0+ 177.0+ 0.5 180.0+ 2.0 167.0 3.0+ 62.0 180.0+ 4.0
#> [571] 38.0 180.0+ 90.0 180.0+ 180.0+ 180.0+ 4.0 71.0 180.0+ 180.0+
#> [581] 180.0+ 2.0 180.0+ 180.0+ 4.0+ 180.0+ 1.0 12.0 16.0+ 5.0+
#> [591] 83.0 126.0 8.0 180.0+ 3.0 180.0+ 180.0+ 180.0+ 180.0+ 4.0+
#> [601] 180.0+ 174.0 6.0 43.0 180.0+ 180.0+ 180.0+ 3.0 13.0 180.0+
#> [611] 92.0 180.0+ 38.0 4.0 177.0 3.0+ 6.0+ 62.0 6.0+ 4.0+
#> [621] 20.0 22.0 65.0 180.0+ 115.0 180.0+ 3.0+ 8.0+ 4.0 1.0+
#> [631] 180.0+ 29.0 180.0+ 180.0+ 46.0 8.0 180.0+ 25.0 145.0 24.0
#> [641] 50.0 126.0 180.0+ 4.0 1.0 178.0+ 36.0 89.0 75.0 3.0+
#> [651] 33.0 169.0 52.0 0.5 4.0 180.0+ 50.0 1.0+ 2.0 8.0+
#> [661] 180.0+ 16.0 67.0 12.0 26.0 0.5 69.0 2.0 3.0 15.0+
#>
#> $weights
#> NULL
#>
# Make predictions for the test rows
predictions = learner$predict(task, row_ids = ids$test)
# Score the predictions
predictions$score()
#> surv.cindex
#> 0.8425192