Predict {BESTree} | R Documentation |
Classify a new observation point
Predict(Point, Fit)
Point |
A new observation |
Fit |
A BEST object |
The predicted class
n <- 500
Data <- BESTree::Data[1:n,]
NewPoint <- BESTree::Data[n+1,]
d <- ncol(Data)-1
VA <- ForgeVA(d,1,0,0,0)
Size <- 50
Fit <- BESTree::BEST(Data,Size,VA)
BESTree::Predict(NewPoint[1:d],Fit)