output: md_document: variant: markdown_github
Simple Random Search function for the smoof and ParamHelpers ecosystem with termination criteria and parallelization.
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)
## Randomsearch Result:
## Eval no.: 9
## x: x=-0.262,-1.75
## y: -0.9158972
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.