rBayesianOptimization
rBayesianOptimization copied to clipboard
how to specify bounds if the input is in a vector format
see the header....Many programmers do not provide the details about specifying the parameter format...that is really time consuming.
You would need to create multiple parameters that can be mapped from the scoring function to the vector. For instance, neuralnet has a parameter hidden which can be c(4,5) for a 2 hidden layer network. You would need to create 2 parameters firstLayer and secondLayer, create bounds for them and inside the scoring function assign them to the hidden parameter: hidden = c(firstLayer,secondLayer).