predx | R Documentation |
Creates a predx
object storing extended predictions of
caretx
models with information
concerning model type, class number and the type of prediction
(training, cross-validation or test).
predx(
data,
classes = NULL,
type = c("regression", "binary", "multi_class"),
prediction = c("train", "cv", "test")
)
is_predx(x)
data |
a data frame with predictions, the columns .outcome and .fitted are obligatory. |
classes |
an optional character vector with class names. |
type |
model type ( |
prediction |
type of prediction ( |
x |
an object. |
The type
argument describes the prediction type:
regression
, binary
or multi_class
.
a predx
object; is_predx()
returns a logical value.
Kuhn M. Building predictive models in R using the caret package. J Stat Softw (2008) 28:1–26. doi:10.18637/jss.v028.i05
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.