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 9c3f807 commit 30070c9Copy full SHA for 30070c9
sklearn/linear_model/tests/test_logistic.py
@@ -69,9 +69,9 @@ def test_nan():
69
70
Regression test for Issue #252: fit used to go into an infinite loop.
71
"""
72
- Xnan = np.array(X)
+ Xnan = np.array(X, dtype=np.float64)
73
Xnan[0, 1] = np.nan
74
- logistic.LogisticRegression().fit(X, Y1)
+ logistic.LogisticRegression().fit(Xnan, Y1)
75
76
77
def test_transform():
0 commit comments