FinalPred: Stores the prediction for a specific voting scheme.

FinalPredR Documentation

Stores the prediction for a specific voting scheme.

Description

The class is used to store the computed probability after executing an specific voting scheme.

Methods

Public methods


Method new()

Method for initializing the object variables during runtime.

Usage
FinalPred$new()

Method set()

Sets the computed probabilities after executing an specific voting scheme.

Usage
FinalPred$set(prob, raw, class.values, positive.class)
Arguments
prob

A vector containing the probabilities of the prediction for a specific voting scheme.

raw

A vector containing the raw results of the prediction for a specific voting scheme.

class.values

A vector containing the class values.

positive.class

A character value containing the positive class.


Method getProb()

Gets the probabilities of the prediction for a specific voting scheme.

Usage
FinalPred$getProb()
Returns

The vector value of probabilities of the prediction for a specific voting scheme.


Method getRaw()

Gets the raw results of the prediction for a specific voting scheme.

Usage
FinalPred$getRaw()
Returns

The vector value of raw results of the prediction for a specific voting scheme.


Method getClassValues()

Gets the class values (positive class + negative class).

Usage
FinalPred$getClassValues()
Returns

The vector value of class values.


Method getPositiveClass()

Gets the positive class.

Usage
FinalPred$getPositiveClass()
Returns

The character value of positive class.


Method getNegativeClass()

Gets the negative class.

Usage
FinalPred$getNegativeClass()
Returns

The character value of negative class.


Method clone()

The objects of this class are cloneable with this method.

Usage
FinalPred$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

See Also

Prediction, SimpleVoting, SingleVoting, CombinedVoting, VotingStrategy


D2MCS documentation built on Aug. 23, 2022, 5:07 p.m.