mnj.pred: Predict function

Description Usage Arguments Details Examples

View source: R/predict.R

Description

A custom predict function for FlexBoost

Usage

1
mnj.pred(object, X, type = c("response", "prob"), n_tree = NULL)

Arguments

object

Tree information

X

Variable of train data

type

Class or probability

n_tree

Number of trees

Details

This is a predict function of FlexBoost. FlexBoost consists of two predict functions. One is built-in function in R and the other is this custom predict function for FlexBoost. This custom predict function is needed for the calculation of the final strong classifier. It returns the expected input data's labels.

Examples

1
2
3
data <- read.csv(url("http://bit.ly/flex_iris"), TRUE)
model <- flex(data[,1:2], data[,6], 10, 0.1, 3, 2)
mnj.pred(model, data[,1:2], "response", NULL)

mnj documentation built on Oct. 11, 2019, 5:05 p.m.

Related to mnj.pred in mnj...