predict.selfTraining {SSLR}R Documentation

Predictions of the Self-training method

Description

Predicts the label of instances according to the selfTraining model.

Usage

## S3 method for class 'selfTraining'
predict(object, x, type = "class", ...)

Arguments

object

Self-training model built with the selfTraining 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.

type

of predict in principal model

...

This parameter is included for compatibility reasons.

Details

For additional help see selfTraining examples.

Value

Vector with the labels assigned.


[Package SSLR version 0.9.3.3 Index]