Drift#
- class capymoa.stream.drift.Drift[source]#
Bases:
object
Represents a concept drift in a DriftStream. See 2.7.1 Concept drift framework in [1].
- __init__(position, width=0, alpha=0.0, random_seed=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.