Learn R Programming

emil (version 2.2.10)

tune: Tune parameters of modeling procedures

Description

These functions are rarely needed to be called manually as they are automatically called by fit and evaluate when needed.

Usage

tune(procedure, ..., .verbose = getOption("emil_verbose", FALSE))

is_tuned(procedure)

is_tunable(procedure)

detune(procedure)

Arguments

procedure

Modeling procedure, or list of modeling procedures, as produced by modeling_procedure.

...

Sent to evaluate.

.verbose

Whether to print an activity log. Set to -1 to suppress all messages.

Value

A tuned modeling procedures or a list of such.

Logical indicating if the procedure(s) are tuned.

Logical indicating if the has tunable parameters.

A list of untuned modeling procedures.

See Also

emil, modeling_procedure, evaluate, fit, predict, get_importance

Examples

Run this code
# NOT RUN {
procedure <- modeling_procedure("randomForest", parameter=list(mtry=1:4))
tuned.procedure <- tune(procedure, x=iris[-5], y=iris$Species)
mod <- fit(tuned.procedure, x=iris[-5], y=iris$Species)
# }

Run the code above in your browser using DataLab