R: predict method for oblique random forest objects
predict.obliqueRF
R Documentation
predict method for oblique random forest objects
Description
Prediction of test data using oblique random forest.
Usage
## S3 method for class 'obliqueRF'
predict(object, newdata, type="response", proximity=F,...)
Arguments
object
an object of class obliqueRF, as that
created by the function obliqueRF.
newdata
a matrix containing new data.
type
one of response, prob. or votes,
indicating the type of output: predicted values, matrix of class
probabilities, or matrix of vote counts.
proximity
should proximity measures be computed (based on all data)?
...
not used currently.
Value
pred, which can be the following, depending on type:
response
pred is a vector with predicted classes (threshold is 0.5).
prob
pred is a matrix of class probabilities (one row for each class
and one column for each input).
votes
pred is a matrix of vote counts (one row for each class
and one column for each new input).
If proximity=TRUE, the returned object is a list with two components: pred is the prediction (as described above) and proximity is the proximitry matrix.
Author(s)
Bjoern Menze <menze@csail.mit.edu> and D.N. Splitthoff <nico.splitthoff@gmx.de>.