.get_prediction_column_names | R Documentation |
.get_prediction_column_names()
returns a list that has the names of the
columns for the primary prediction types for a model.
.get_prediction_column_names(x, syms = FALSE)
x |
A fitted parsnip model (class |
syms |
Should the column names be converted to symbols? Defaults to |
A list with elements "estimate"
and "probabilities"
.
library(dplyr)
library(modeldata)
data("two_class_dat")
levels(two_class_dat$Class)
lr_fit <- logistic_reg() %>% fit(Class ~ ., data = two_class_dat)
.get_prediction_column_names(lr_fit)
.get_prediction_column_names(lr_fit, syms = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.