predict.mondrianforest: Predicts with an existing mondrianforest

Description Usage Arguments Value Examples

View source: R/predict_mondrian_forest.R

Description

Predict method for object of class 'mondrianforest'.

Usage

1
2
3
## S3 method for class 'mondrianforest'
predict(mforest, newdata, gamma = 1e-04,
  type = "prob")

Arguments

mforest

A mondrianforest.

newdata

A new dataset. If missing, predicts on training set.

gamma

Hierarchical smoothing parameter, defaults to 0.0001.

Value

A matrix with class probabilities if type = "prob". If type = "class", returns MAP class estimates.

Examples

1
predict(mf, type = "class")

millerjoey/mondrianforest documentation built on May 25, 2019, 10:30 p.m.