Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions src/capymoa/evaluation/evaluation.py
Original file line number Diff line number Diff line change
Expand Up @@ -1276,10 +1276,13 @@ def prequential_evaluation_anomaly(
incompatible with ``optimize=True``.
"""
stream.restart()
if _is_fast_mode_compilable(stream, learner, optimise):
return _prequential_evaluation_anomaly_fast(
stream, learner, max_instances, window_size, store_y, store_predictions
)
try:
if _is_fast_mode_compilable(stream, learner, optimise):
return _prequential_evaluation_anomaly_fast(
stream, learner, max_instances, window_size, store_y, store_predictions
)
except ValueError:
pass # If the stream is not compatible, just ignore the error and continue with the normal evaluation.

predictions = None
if store_predictions:
Expand Down
Loading