predict.model_sslr_fitted: Predictions of model_sslr_fitted class

Description Usage Arguments Value

View source: R/train_predict.R

Description

Predicts from model. There are different types: class, prob, raw class returns tibble with one column prob returns tibble with probabilities class columns raw returns factor or numeric values

Usage

1
2
## S3 method for class 'model_sslr_fitted'
predict(object, x, type = NULL, ...)

Arguments

object

model_sslr_fitted model built.

x

A object that can be coerced as matrix. Depending on how was the model built, x is interpreted as a matrix with the distances between the unseen instances and the selected training instances, or a matrix of instances.

type

of predict in principal model: class, raw, prob, vote, max_prob, numeric

...

This parameter is included for compatibility reasons.

Value

tibble or vector.


SSLR documentation built on July 22, 2021, 9:08 a.m.