tuneTWIX {TWIX}R Documentation

Parameter tuning.

Description

This function tunes hyperparameter minbuck.

Usage

tuneTWIX(formula, data = NULL, minbuck = seq(5,20,by=5),
        maxdepth=30, xval = 10, runs = 10, trace.plot = TRUE)

Arguments

formula formula of the form y ~ x1 + x2 + ..., where y must be a factor and x1,x2,... are numeric or factor.
data an optional data frame containing the variables in the model.
minbuck the sampling space for parameter minbuck.
maxdepth set the maximum depth of the final tree.
xval number of cross-validations.
runs number of runs.
trace.plot Should trace plot be ploted?

See Also

plot.TWIX, TWIX

Examples

    library(mlbench)
    data(PimaIndiansDiabetes2)
    Pima <- na.omit(PimaIndiansDiabetes2)

    tuneTWIX(diabetes~.,data=Pima,minbuck=c(5,10,15,20,25),runs=5)

[Package TWIX version 0.2.6 Index]