title: How to fix 'Float' object has no attribute 'exp'?
body: <p>I have the following Gaussian equation in Python:</p>
  
  <pre><code>numpy.exp((-(x-m)**2)/(2*sigma))
  </code></pre>
  
  <p>Provided that <code>x</code> is an matrix.</p>
  
  <p>However, the equation won't run, and I get the following error:</p>
  
  <pre><code>AttributeError: 'Float' object has no attribute 'exp'
  </code></pre>
  
  <p>How can I solve this issue?</p>
  
  <p><strong>EDIT-1</strong></p>
  
  <p>Making the following edit:</p>
  
  <pre><code>map(float(),np.exp((-(x-m)**2)/(2*sigma)))
  </code></pre>
  
  <p>Raised the error:</p>
  
  <pre><code>TypeError: 'float' object is not callable
  </code></pre>
  
  <p><strong>EDIT-2</strong></p>
  
  <p>This is a sample of the value <code>x</code>:</p>
  
  <pre><code>[[-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.29704036 -1.7888618  -0.3337744 ]]
  
  m = 5
  sigma = 1
  </code></pre>
  
  <p>Thanks.</p>