Skip to content

Commit 56f58b4

Browse files
committed
[fix] [test] Fix an error in test
The previous version provided non-sparse data at the training and sparse data at the test time, which is invalid. That is why I fixed this error.
1 parent 13fa571 commit 56f58b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test_data/test_validation.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def test_sparse_data_validation_for_regression():
103103

104104
validator.fit(X_train=X_sp, y_train=y)
105105

106-
X_t, y_t = validator.transform(X, y)
106+
X_t, y_t = validator.transform(X_sp, y)
107107
assert np.shape(X) == np.shape(X_t)
108108

109109
# make sure everything was encoded to number

0 commit comments

Comments
 (0)