get_hyperparams_from_df {mikropml} | R 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 |
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)
[Package mikropml version 1.6.1 Index]