drift#

Simulate concept drift in datastreams.

Classes#

AbruptDrift

An instantaneous change of concept at position.

Concept

A concept and the number of instances it contributes to the stream.

Drift

Represents a concept drift in a DriftStream.

DriftStream

A stream composed of concepts separated by drifts.

GradualDrift

A drift where two concepts overlap over a window of instances.

IndexedCycle

An iterator that cycles through an iterable, returning tuples of (index, item).

RecurrentConceptDriftStream

Module Attributes#

capymoa.stream.drift.TRANSITION_FUNCTIONS = {'linear': <function <lambda>>, 'sigmoid': <function <lambda>>}#

Named transition ramps. Each maps progress through the drift window, 0.0 at the start and 1.0 at the end, to the probability that an instance is drawn from the new concept.

Functions#

capymoa.stream.drift.get_class_and_init_attributes_with_values(obj)[source]#
capymoa.stream.drift.get_recurrent_concept_drift_stream_list(
concept_list: list,
max_recurrences_per_concept: int = 3,
transition_type_template: Drift = AbruptDrift(position=5000),
concept_name_list: list = None,
) list[source]#