File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff 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_ )
You can’t perform that action at this time.
0 commit comments