get_tuning_grid: Generate the tuning grid for tuning hyperparameters

Description Usage Arguments Value Author(s) Examples

View source: R/hyperparameters.R

Description

Generate the tuning grid for tuning hyperparameters

Usage

1
get_tuning_grid(hyperparams_list, method)

Arguments

hyperparams_list

Named list of lists of hyperparameters.

method

ML method. Options: c("glmnet", "rf", "rpart2", "svmRadial", "xgbTree").

  • glmnet: linear, logistic, or multiclass regression

  • rf: random forest

  • rpart2: decision tree

  • svmRadial: support vector machine

  • xgbTree: xgboost

Value

The tuning grid.

Author(s)

Begüm Topçuoğlu, topcuoglu.begum@gmail.com

Kelly Sovacool, sovacool@umich.edu

Examples

1
2
3
ml_method <- "glmnet"
hparams_list <- get_hyperparams_list(otu_small, ml_method)
get_tuning_grid(hparams_list, ml_method)

SchlossLab/mikropml documentation built on Nov. 25, 2021, 1:13 p.m.