Skip to content

Commit

Permalink
fix: update test_batch to enforce classification in basic test
Browse files Browse the repository at this point in the history
  • Loading branch information
Spencer Sun authored and hmgomes committed May 24, 2024
1 parent d8c44d8 commit bda30f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_batch.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def test_batch_basic():
y = np.arange(n)
assert x.shape == (n, feature_count)

stream = NumpyStream(x, y)
stream = NumpyStream(x, y, target_type='categorical')
learner = _DummyBatchClassifierSSL(batch_size, stream.schema, class_value_type=str)
prequential_ssl_evaluation(
stream=stream, learner=learner, label_probability=0.01, window_size=100
Expand Down

0 comments on commit bda30f5

Please sign in to comment.