How to fix 'Float' object has no attribute 'exp'?
I have the following Gaussian equation in Python: numpy.exp((-(x-m)**2)/(2*sigma)) Provided that x is an matrix. However, the equation won't run, and I get the following error: AttributeError: 'Float' object has no attribute 'exp' How can I solve this issue? EDIT-1 Making the following edit: map(float(),np.exp((-(x-m)**2)/(2*sigma))) Raised the error: TypeError: 'float' object is not callable EDIT-2 This is a sample of the value x : [[-0.20646505 0.07763347 -0.16161097 0.370439 ] [-0.91295327 -0.73768934 -0.78909055 0.06156045] [-0.37242104 0.51828245 -1.16138222 -0.02489585] [-1.07890926 -0