title: a value too large for dtype('float64')
body: <p>I'm using numpy for reading an arff file and I'm getting the following error:</p>
  
  <blockquote>
    <p>ValueError: Input contains NaN, infinity or a value too large for dtype('float64').</p>
  </blockquote>
  
  <p>I used <code>np.isnan(X2.any())</code> and <code>np.isfinite(X2.all())</code>to check if it's a <code>nan</code> or infinite case. But it's none of these. This means it's the third case, which is <code>infinity or a value too large for dtype('float64').</code></p>
  
  <p>I would appreciate if someone could tell me how to take care of this error.</p>
  
  <p>Thanks. </p>