Learn R Programming

mikropml (version 1.6.1)

get_hyperparams_from_df: Split hyperparameters dataframe into named lists for each parameter

Description

Using get_hyperparams_list is preferred over this function.

Usage

get_hyperparams_from_df(hyperparams_df, ml_method)

Value

named list of lists of hyperparameters

Arguments

hyperparams_df

dataframe of hyperparameters with columns param, value, and method

ml_method

machine learning method

Author

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

Kelly Sovacool, sovacool@umich.edu

Examples

Run this code
if (FALSE) {
hparams_df <- dplyr::tibble(
  param = c("alpha", "lambda", "lambda"),
  value = c(1, 0, 1),
  method = rep("glmnet", 3)
)
get_hyperparams_from_df(hparams_df, "glmnet")
}

Run the code above in your browser using DataLab