Skip to content

Instantly share code, notes, and snippets.

@thierrymoudiki
Created December 14, 2025 12:18
Show Gist options
  • Select an option

  • Save thierrymoudiki/3453a0327a3048bcb5df6c1adbb76529 to your computer and use it in GitHub Desktop.

Select an option

Save thierrymoudiki/3453a0327a3048bcb5df6c1adbb76529 to your computer and use it in GitHub Desktop.
Bayesian optimization using bayesianrvfl::bayes_opt
# Run Bayesian optimization minimizing rmse
res_rmse <- bayesianrvfl::bayes_opt(
objective_function_rmse,
lower = c(3L, 1L, -4, -4, 5, 0),
upper = c(40L, 100L, 5, 5, 200, 5L),
init_points = 10,
n_iter = 50
)
saveRDS(res_rmse, "best_params_rmse.rds")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment