Description Usage Arguments Details Value See Also
predict, print and resample consistency checking methods for 'bestMpTuneModel', 'resampledMpTune'
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ## S3 method for class 'bestMpTuneModel.formula'
predict(object, newdata, type = c("raw",
"prob"), ...)
## S3 method for class 'bestMpTuneModel'
predict(object, newdata, type = c("raw", "prob"),
...)
## S3 method for class 'bestMpTuneModel'
print(x, digits = 4, row.names = FALSE, ...)
## S3 method for class 'resampledMpTune'
print(x, digits = 4, ...)
checkConsistency(object)
|
object |
A 'bestMpTuneModel' or 'resampleMpTune' |
newdata |
A new design matrix if object is 'bestMpTuneModel' or a new data frame if object is 'bestMpTuneModel.formula' |
type |
A string indicated type of prediction, only for classification and possibly survival. |
... |
Just for campatibility |
x |
A 'bestMpTuneModel' or 'resampleMpTune' |
digits |
Number of effective digits to keep for numeric variables |
row.names |
Should row names / numbers be printed |
For predict, it depends on problem types and models,
'classifiction' a vector of predictions if type = 'raw' and a matrix where each coloumn is predicted probabilities for an each class named by its class label if type = 'prob
'regression' it is always a vector of prediction
'survival' if type = 'raw', return a vector of 'risk' or predicted survival time (depending on models). If type = 'prob', for some model (e.g., randomForestSRC::rfsrc), it returns a matrix of survival probabilities with each columns named by survival times
.
Function checkConsistency
checks on the consistency of resampling in 'resampledMpTune
prediction vector or matrix, performance summary, consistency indicators
See mpTune
for examples
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.