Learn R Programming

deepboost (version 0.1.5)

deepboost.evaluate: Evaluates and prints statistics for a deepboost model

Description

Evaluates and prints statistics for a deepboost model

Usage

deepboost.evaluate(object, data)

Arguments

object
A Deepboost S4 class object
data
a data.frame object to evaluate with the model

Value

a list with model statistics - error, avg_tree_size, num_trees

Examples

Run this code
dpb <- deepboost(y ~ .,
 data.frame(x1=rep(c(0,0,1,1),2),x2=rep(c(0,1,0,1),2),y=factor(rep(c(0,0,0,1),2))),
 num_iter=2,tree_depth=2)
deepboost.evaluate(dpb,data.frame(x1=rep(c(1,1,1,0),2),x2=rep(c(1,1,1,1),2)))

Run the code above in your browser using DataLab