Simple Random Search function for the smoof and ParamHelpers ecosystem with termination criteria and parallelization.
set.seed(123) knitr::opts_chunk$set(collapse = FALSE, warning = FALSE, error = FALSE) library("randomsearch")
We recommend to install the official release version:
install.packages("randomsearch")
For experimental use you can install the latest development version:
devtools::install_github("jakob-r/randomsearch")
library(randomsearch) fun = function(x) x[1]^2 + sin(x[2]) res = randomsearch(fun, lower = c(-1, -2), upper = c(2,4), minimize = TRUE, max.evals = 30) summary(res)
For a more detailed documentation you can check the Vignette.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.