View source: R/validate_params.R
validate_params | R Documentation |
This function validates user-provided parameters against the formal arguments of a specified model function. It ensures that all user-specified parameters are recognized by the model and raises an error for invalid parameters.
validate_params(model_function, model_type, learner_type, user_params)
model_function |
The model function for which parameters are being validated (e.g., |
model_type |
The model type for policy learning. Options include |
learner_type |
The learner type for the chosen model. Options include |
user_params |
A named list of parameters provided by the user. |
A named list of validated parameters that are safe to pass to the model function.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.