How to fix 'Float' object has no attribute 'exp'?
cmsdk.com › python › how-to-fix-39float39-object-hasAttributeError: 'float' object has no attribute 'exp'. Convert it to float i.e: np.exp((-(x.astype(float)-m)**2)/(2*sigma))array([[ 1.29935943e-06, 5.47758566e-06, 1.63950875e-06, 2.21778276e-05], [ 2.55786406e-08, 7.10033001e-08, 5.27984133e-08, 5.06026050e-06], [ 5.40131118e-07, 4.34936286e-05, 5.70846640e-09, 3.28945338e-06], [ 9.45644899e-09, 8.07503629e-07, 9.81698210e-11, 6.64271640e-07]])