Learn R Programming

HMDA (version 0.1.1)

list_hyperparameter: Create Hyperparameter List from a leaderboard dataset

Description

Detects columns in a data frame that contain hyperparameters for H2O DRF/GBM algorithms and returns a list with the unique values from each parameter column.

Usage

list_hyperparameter(df)

Value

A named list where each hyperparameter element is a vector of unique values for a hyperparameter.

Arguments

df

A data frame containing model results with hyperparameter columns.

Author

E. F. Haghish

Details

This function scans the column names of the input data frame for common H2O hyperparameter names, such as "ntrees", "max_depth", "min_rows", "sample_rate", "col_sample_rate_per_tree", "min_split_improvement", "learn_rate", "mtries", and "seed". It extracts the unique values from each matching column and returns them in a list. The resulting list can be used as a hyperparameter grid for tuning via H2O grid search functions.