AbruptDrift#
- class capymoa.stream.drift.AbruptDrift[source]#
Bases:
Drift
- __init__(position: int, random_seed: int = 1)[source]#
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.