guess: Predict unseen data

Description Usage Arguments Details Value

View source: R/guess.R

Description

An enhanced predict() that returns the provided data, predictions for that data, and additional information about the predictions.

Usage

1
guess(object, new_data, mode)

Arguments

object

A workflow object.

new_data

A data.frame containing data with which to predict.

mode

Either "regression" or "classification".

Details

Setting mode = "regression" provides prediction intervals and setting mode = "classification" provides class probabilities.

Value

A data.frame (new_data with new columns containing the predictions).


szego/cassoulet documentation built on Dec. 31, 2020, 7:40 a.m.