| plot.bayesOpt | R Documentation |
bayesOpt objectReturns 2 stacked plots - the top shows the results from FUN at each iteration. The bottom shows the utility from each point before the search took place.
## S3 method for class 'bayesOpt' plot(x, ...)
x |
An object of class bayesOpt |
... |
Passed to |
an object of class ggarrange from the ggpubr package.
scoringFunction <- function(x) {
a <- exp(-(2-x)^2)*1.5
b <- exp(-(4-x)^2)*2
c <- exp(-(6-x)^2)*1
return(list(Score = a+b+c))
}
bounds <- list(x = c(0,8))
Results <- bayesOpt(
FUN = scoringFunction
, bounds = bounds
, initPoints = 3
, iters.n = 2
, gsPoints = 10
)
# This plot will also show in real time with parameter plotProgress = TRUE in bayesOpt()
plot(Results)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.