predict.tidylearn_model: Predict using a tidylearn model

View source: R/core.R

predict.tidylearn_modelR Documentation

Predict using a tidylearn model

Description

Unified prediction interface for both supervised and unsupervised models

Usage

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

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

Value

Predictions as a tibble


tidylearn documentation built on Feb. 6, 2026, 5:07 p.m.