Thieu Nguyen sir I am working in python i am unable to understand how to use PSO during during training of Autoencode. I have MxN data set i.e. M particles and N dimensions. I want use fitness function as MSE I am unable to use PSO as optimizer. please help me out. There is also a library of PSO but i am not understanding how to use my fitness function mse in this. Thanks
I am also providing this. please tell me how to use mse as fitness function. the way i have used is not correct.
I do not know which library of PSO you are using. I assume that you know how to calculate the MSE function in Autoencoder
MSE = sum ((y_predict - y_true) ^ 2 / n)
where,
+ y_predict: Output value of Autoencoder (the predict)
+ y_true: The actual value (the ground true)
The MSE function shows the difference between the predicted value and the actual value => the smaller MSE is the better ==> Your problem is the minimum problem.
When your problem is minimum problem, the cost_function = MSE (in this case)
When your problem is maximum problem, you can choose cost_function = 1 / (1 + MSE)