Skip to content

Commit ab3b2f8

Browse files
Justin Liuhmgomes
authored andcommitted
fix: update example
1 parent 1c7fa0f commit ab3b2f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/capymoa/anomaly/_stream_rhf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,8 +274,8 @@ class StreamRHF(AnomalyDetector):
274274
Example:
275275
276276
>>> from capymoa.datasets import ElectricityTiny
277-
>>> from capymoa.anomaly import Autoencoder
278277
>>> from capymoa.anomaly import StreamRHF
278+
>>> from capymoa.evaluation import AnomalyDetectionEvaluator
279279
>>> stream = ElectricityTiny()
280280
>>> schema = stream.get_schema()
281281
>>> learner = StreamRHF(schema=schema)
@@ -287,7 +287,7 @@ class StreamRHF(AnomalyDetector):
287287
... learner.train(instance)
288288
>>> auc = evaluator.auc()
289289
>>> print(f"AUC: {auc:.2f}")
290-
AUC: 0.50
290+
AUC: 0.61
291291
292292
"""
293293

0 commit comments

Comments
 (0)