Skip to content

Commit cff6c73

Browse files
BrennoMellohmgomes
authored andcommitted
update MixedGenerator documentation
1 parent 8e71b23 commit cff6c73

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/capymoa/stream/generator.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1013,22 +1013,22 @@ def __str__(self):
10131013
non_default_attributes = [attr for attr in attributes if attr is not None]
10141014
return f"SineGenerator({', '.join(non_default_attributes)})"
10151015

1016-
10171016
class MixedGenerator(MOAStream):
1018-
"""Generates MixedGenerator.
1017+
"""
1018+
Generates MixedGenerator
10191019
10201020
>>> from capymoa.stream.generator import MixedGenerator
10211021
...
10221022
>>> stream = MixedGenerator()
10231023
>>> stream.next_instance()
1024-
LabeledInstance(
1025-
Schema(generators.MixedGenerator ),
1026-
x=[1. 0. 0.208 0.333],
1027-
y_index=0,
1028-
y_label='positive'
1029-
)
1024+
LabeledInstance(
1025+
Schema(generators.MixedGenerator ),
1026+
x=[1. 0. 0.208 0.333],
1027+
y_index=0,
1028+
y_label='positive'
1029+
)
10301030
>>> stream.next_instance().x
1031-
array([1. , 0. , 0.20771484, 0.33271706])
1031+
array([1. , 0. , 0.9637048 , 0.93986539])
10321032
10331033
Proposed by "Gama, Joao, et al. "Learning with drift detection." Advances in artificial intelligence–SBIA 2004.
10341034
Springer Berlin Heidelberg, 2004. 286-295."

0 commit comments

Comments
 (0)