get_hyperparams_from_df: Split hyperparameters dataframe into named lists for each...

View source: R/hyperparameters.R

get_hyperparams_from_dfR Documentation

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)

Arguments

hyperparams_df

dataframe of hyperparameters with columns param, value, and method

ml_method

machine learning method

Value

named list of lists of hyperparameters

Author(s)

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

Kelly Sovacool, sovacool@umich.edu

Examples

## Not run: 
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")

## End(Not run)

SchlossLab/mikropml documentation built on Aug. 24, 2023, 9:51 p.m.