Learn R Programming

emil (version 2.0.2)

get_tuning: Extract parameter tuning statistics

Description

Extract parameter tuning statistics

Usage

get_tuning(object)

Arguments

object
Fitted model or modeling procedure

Value

  • A data frame of tuning statistics in long format.

Examples

Run this code
procedure <- modeling_procedure("randomForest",
    parameter = list(mtry = c(1, 3),
                     nodesize = c(4, 10)))
model <- fit(procedure, x=iris[-5], y=iris$Species)
get_tuning(model)

options(emil_max_indent=4)
cv <- resample("holdout", iris$Species, nfold=5)
result <- evaluate(procedure, iris[-5], iris$Species, resample=cv,
                   .save=c(model=TRUE))
get_tuning(result)

Run the code above in your browser using DataLab