PredictTree: Predictions from an ImbTreeEntropy Object

Usage Arguments Value See Also Examples

View source: R/Predict.R

Usage

1
PredictTree( tree, data )

Arguments

tree

Fitted model object. This is assumed to be the result of some function that produces an object with the same named components as that returned by the ImbTreeEntropy or ImbTreeEntropyInter functions.

data

Data frame of new examples to be predicted.

Value

Data frame with the probability of each class and predicted class label.

See Also

ImbTreeEntropy, ImbTreeEntropyInter, PredictTree, PrintTree, PrintTreeInter, ExtractRules

Examples

1
2
3
4
5
6
library("ImbTreeEntropy")
data(iris)
Tree <- ImbTreeEntropy(Y_name = "Species", 
                       X_names = colnames(iris)[-ncol(iris)], 
                       data = iris) 
Tree <- PredictTree(Tree, iris)

KrzyGajow/ImbTreeEntropy documentation built on Dec. 31, 2020, 2:13 p.m.