Posts

Showing posts with the label valueerror

Trying to plot with more than one parameter using BaysianOptimization

Image
Clash Royale CLAN TAG #URR8PPP Trying to plot with more than one parameter using BaysianOptimization I am new to python and Bayesian Optimization. I'm using this example to find the maximum value of the "target" polynomial function. The example uses only one "x" parameter for the function and produces a plot that looks like this: . But I want to use a function with two "x" and "z" parameters. After adding a second "z" parameter, the code (below) appears to still calculate and identify the max correctly, but does not plot the results, and produces this error: ValueError: XA and XB must have the same number of columns (i.e. feature dimension.) I've been playing with the code and searching for days, but still haven't figured out why it's doing this. Does anyone know how to get this code to plot when using two parameters in the "target" function? I'm using Python 3.6.4 with Anaconda and Jupyter. Here is my code...