Extract the AUC/brier score values or the prediction into a data.table format.
# S3 method for performance
as.data.table(
x,
keep.rownames = FALSE,
type = "performance",
format = NULL,
...
)
A data.table object
object of class "performance"
.
Not used. For compatibility with the generic method.
[character] either "metric"
to extract AUC/brier score or "prediction"
to extract predictions.
[character] should the result be outcome in the long format ("long"
) or in the wide format ("wide"
).
Note relevant when using type="metric"
.
Not used. For compatibility with the generic method.