PredictTree: Predictions from an ImbTreeAUC 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 ImbTreeAUC or ImbTreeAUCInter 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

ImbTreeAUC, ImbTreeAUCInter, PredictTree, PrintTree, PrintTreeInter, ExtractRules

Examples

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

KrzyGajow/ImbTreeAUC documentation built on March 7, 2021, 1:24 a.m.