| classp | R Documentation |
Computes the class assignment probability for classification models.
classp(x, ...)
## S3 method for class 'predx'
classp(x, ...)
## S3 method for class 'caretx'
classp(x, newdata, ...)
x |
|
... |
extra arguments passed to methods, currently none. |
newdata |
test data set (optional). |
Returns NULL for regression models and predictions and throws a warning.
The classp is a S3 generic function.
For predx objects, a data frame with
the columns .outcome and .fitted representing the true outcome
and predicted class assignment, respectively, columns storing class
assignment probabilities as welll as the winner_p variable storing
the probability for the predicted class.
For caretx models, the function returns a list of tibbles described above,
each one for the training, resample (CV) and test data sets.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.