predict.RandomForestSemisupervised_fitted: Predictions of the SSLRDecisionTree_fitted method

Description Usage Arguments Value

View source: R/RandomForest.R

Description

Predicts the label of instances according to the RandomForestSemisupervised_fitted model.

Usage

1
2
## S3 method for class 'RandomForestSemisupervised_fitted'
predict(object, x, type = "class", confident = "max_prob", ...)

Arguments

object

RandomForestSemisupervised_fitted.

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

confident

Is param to define the type of predict. It can be "max_prob", to get class with sum of probability is the maximum Or "vote" to get the most frequented class in all trees. Default is "max_prob"

...

This parameter is included for compatibility reasons.

Value

Vector with the labels assigned.


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