I'm able to draw a 3D animation of Firefly algorithm using SwarmPackagePy library.
I want to use this algorithm to optimize the hyperparameter in Gaussian Process Regression(GPR). For this, I defined the optimizer of GPR as:
alh = SwarmPackagePy.fa(50, tf.easom_function, 0, 16, 2, 10, 1, 1, 1, 0.1, 0, 0.1)
animation3D(alh.get_agents(),tf.easom_function, 10,-10)
Then I used this optimizer (alh) in GPR as follows:
gp = GaussianProcessRegressor(kernel=kernel, alpha=1.5, optimizer=alh, n_restarts_optimizer=5)
However, after running the python code, I get an error as follows:
ValueError: Unknown optimizer <SwarmPackagePy.fa.fa object at 0x0982A3B0>.
Am I doing the wrong way? What could be the cause of the error?
Thank you!