predict_target | R Documentation |
Predict target using a trained model.
predict_target(data, model, name = "prediction")
data |
A dataset (data.frame or tbl) |
model |
A model created with |
name |
Prefix of variable-name for prediction |
data containing predicted probabilities for target values
data_train <- create_data_buy(seed = 1)
data_test <- create_data_buy(seed = 2)
model <- explain_tree(data_train, target = buy, out = "model")
data <- predict_target(data = data_test, model = model)
describe(data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.