load_params {ubair} | R Documentation |
Load Parameters from YAML File
Description
Reads a YAML file containing model parameters, including station settings,
variables, and configurations for various models. If no file path is
provided, the function defaults to loading params.yaml
from the package's
extdata
directory.
Usage
load_params(filepath = NULL)
Arguments
filepath |
Character. Path to the YAML file. If |
Details
The YAML file should define parameters in a structured format, such as:
target: 'NO2' lightgbm: nrounds: 200 eta: 0.03 num_leaves: 32 dynamic_regression: ntrain: 8760 random_forest: num.trees: 300 max.depth: 10 meteo_variables: - GLO - TMP
Value
A list containing the parameters loaded from the YAML file.
Examples
params <- load_params()
[Package ubair version 1.1.0 Index]