View source: R/probs_classif.R
| extract_probabilities | R Documentation |
Extract probability predictions from any R model in a standardised format
extract_probabilities(model, X, y_train = NULL, verbose = FALSE)
model |
Fitted model object (any class) |
X |
Feature matrix or data.frame for predictions |
y_train |
Optional training labels used to name output columns |
verbose |
Print diagnostic information (default: FALSE) |
Numeric matrix of shape n_samples x n_classes with column names
as class labels. Attributes extraction_method and
model_class record how predictions were obtained.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.