Nilesh_Pandey:

centers_update = self.centers - (imm/s)*0.5


This is how I am calculating wiegth of the center
centers_update = self.centers - (imm/s)*0.5
I need to update self.centers by the values of centers_update