GradualDrift#
- class capymoa.stream.drift.GradualDrift[source]#
Bases:
Drift
- __init__(
- position=None,
- width=None,
- start=None,
- end=None,
- alpha=0.0,
- random_seed=1,
Construct a drift in a DriftStream.
- Parameters:
position – The location of the drift in terms of the number of instances processed prior to it occurring.
width – The size of the window of change. A width of 0 or 1 corresponds to an abrupt drift.
alpha – The grade of change, defaults to 0.0.
random_seed – Seed for random number generation, defaults to 1.