Learn R Programming

tidylearn (version 0.1.0)

predict.tidylearn_model: Predict using a tidylearn model

Description

Unified prediction interface for both supervised and unsupervised models

Usage

# S3 method for tidylearn_model
predict(object, new_data = NULL, type = "response", ...)

Value

Predictions as a tibble

Arguments

object

A tidylearn model object

new_data

A data frame containing the new data. If NULL, uses training data.

type

Type of prediction. For supervised: "response" (default), "prob", "class". For unsupervised: "scores", "clusters", "transform" depending on method.

...

Additional arguments