Skip to content

Commit 7c84c41

Browse files
committed
Fix unintended code change
1 parent f09fe5c commit 7c84c41

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/automl/test_multiclass.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,11 @@ def test_sparse_matrix_classification(self):
368368
"n_jobs": 1,
369369
"model_history": True,
370370
}
371-
X_train = scipy.sparse.random(1554, 21, dtype=int)
371+
# NOTE: Avoid `dtype=int` here. On some NumPy/SciPy combinations (notably
372+
# Windows + Python 3.13), `scipy.sparse.random(..., dtype=int)` may trigger
373+
# integer sampling paths which raise "low is out of bounds for int32".
374+
# A float sparse matrix is sufficient to validate sparse-input support.
375+
X_train = scipy.sparse.random(1554, 21, dtype=np.float32)
372376
y_train = np.random.randint(3, size=1554)
373377
automl_experiment.fit(X_train=X_train, y_train=y_train, **automl_settings)
374378
print(automl_experiment.classes_)

0 commit comments

Comments
 (0)