title: Overflow Error in Python's numpy.exp function
body: <p>I want to use <code>numpy.exp</code> like this:</p>
  
  <pre><code>cc = np.array([
      [0.120,0.34,-1234.1]
  ])
  
  print 1/(1+np.exp(-cc))
  </code></pre>
  
  <p>But this gives me error:</p>
  
  <pre><code>/usr/local/lib/python2.7/site-packages/ipykernel/__main__.py:5: RuntimeWarning: overflow encountered in exp
  </code></pre>
  
  <p>I can't understand why? How can I fix this? It seems the problem is with third number <code>(-1234.1)</code></p>