predict.setred: Predictions of the SETRED method

Description Usage Arguments Details Value

View source: R/SETRED.R

Description

Predicts the label of instances according to the setred model.

Usage

1
2
## S3 method for class 'setred'
predict(object, x, col_name = ".pred_class", ...)

Arguments

object

SETRED model built with the setred function.

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.

col_name

is the colname from returned tibble in class type. The same from parsnip and tidymodels Default is .pred_clas

...

This parameter is included for compatibility reasons.

Details

For additional help see setred examples.

Value

Vector with the labels assigned.


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