predict.enpointe: Make predictions from a enpointe object

Description Usage Arguments Value Examples

View source: R/pirouette.R

Description

Predict from a single rotation tree.

Usage

1
2
## S3 method for class 'enpointe'
predict(object, newx, ...)

Arguments

object

an enpointe object

newx

A sparse matrix.

...

passed to predict.rpart

Value

a vector

Examples

1
2
3
4
a <- matrix(runif(10000), ncol=10)
b <- as.vector(a %*% runif(ncol(a)))
m <- enpointe(a, b, distribution='gaussian')
predict(m, matrix(runif(1000), ncol=10))

zachmayer/pirouette documentation built on May 4, 2019, 9:04 p.m.