Closed mtartila closed 3 years ago
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
Description
im doing a two 5x5 covariance (P estimate and Q process noice) tuning for my Unscented Kalman Filter system. im having an error of
What I Did
I first initialize the parameter with 10 dimension of X, 5 for P and 5 for Q with a testing swarm of 1 for testing :
swarm_size = 1 dim = 10 # Dimension of X epsilon = 1.0 options = {'c1': 1.5, 'c2':1.5, 'w':0.5}
Next, i create an error function to calculate the RMSE based by the covariance P and Q which changed by X as PSO input particles that i dump to yaml, then to be read by my ROS and C++ script to calculate positions of absolute x and y and predicted x and y position. After that, i calculate the error rmse :later, i create an opt function to reduce the distance between my rmse to the target of 0 as to minimize the rmse `
lastly, i call the optimizer to optimize the covariance with the dimension of X to minimize the RMSE with 1 iteration for testing if it works or not by writing : %%time
Call an instance of PSO
optimizer = ps.single.GlobalBestPSO(n_particles=swarm_size, dimensions=dim, options=options)
Perform optimization
cost, covariance = optimizer.optimize(opt_func, iters=2)
and thats the error i got, i try to use swarm particle to optimize 10 dimension array for 1 output of rmse. any idea how to fix the error of shape?