Learn R Programming

deepboost (version 0.1.5)

deepboost.predict: Predicts instances responses based on a deepboost model

Description

Predicts instances responses based on a deepboost model

Usage

deepboost.predict(object, newdata)

Arguments

object
A Deepboost S4 class object
newdata
A data.frame to predict responses for

Value

A vector of respones

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.predict(dpb,data.frame(x1=rep(c(1,1,1,0),5),x2=rep(c(1,1,1,1),5)))

Run the code above in your browser using DataLab