We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac8cbb1 commit d9d02aaCopy full SHA for d9d02aa
sklearn/utils/fixes.py
@@ -27,8 +27,9 @@
27
28
try:
29
from scipy.special import expit # SciPy >= 0.10
30
- if np.isnan(expit(1000)): # SciPy < 0.14
31
- raise ImportError("no stable expit in scipy.special")
+ with np.errstate(invalid='ignore', over='ignore'):
+ if np.isnan(expit(1000)): # SciPy < 0.14
32
+ raise ImportError("no stable expit in scipy.special")
33
except ImportError:
34
def expit(x, out=None):
35
"""Logistic sigmoid function, ``1 / (1 + exp(-x))``.
0 commit comments