pywatts.conditions package

Submodules

pywatts.conditions.cd_condition module

class pywatts.conditions.cd_condition.RiverDriftDetectionCondition(name='CDCondition', drift_detection=None)

Bases: pywatts_pipeline.core.condition.base_condition.BaseCondition

A Drift Detection Condition that wraps the detection algorithms from the River library, based on the RMSE metric. :param drift_detection: The Drift Detection Algorithm from the River library. The default algorithm is ADWIN.

evaluate(y: xarray.core.dataarray.DataArray, y_hat: xarray.core.dataarray.DataArray)

Returns True if the specified drift detection algorithm detects a drift. :param y: GT Time Series :type y: xr.DataArray :param y_hat: Forecast Time Series :type y_hat: xr.DataArray

pywatts.conditions.periodic_condition module

class pywatts.conditions.periodic_condition.PeriodicCondition(num_steps=10, name='PeriodicCondition')

Bases: pywatts_pipeline.core.condition.base_condition.BaseCondition

This Condition is raised after each num_steps. :param num_steps: After num_steps the periodicCondition should be True. :type num_steps: int :param name: The name of the PeriodicCondition. :type name: str

evaluate()

Returns True if it is num_steps times called else False.

Module contents