File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed
Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff 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-
10171016class 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."
You can’t perform that action at this time.
0 commit comments