You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
1.2 KiB

EPSILON = 1e-7
COL_TIMESTAMP = 'timestamp'
COL_DATE = 'date'
COL_VALUE = 'value'
NAB_TIMESTAMP_FORMAT = '%Y-%m-%d %H:%M:%S'
ITSI_TIMESTAMP_FORMAT = '%Y-%m-%dT%H:%M:%S.000%z'
ITSI_TIMESTAMP_FORMAT_PD = '%Y-%m-%d %H:%M:%S%z'
# The default value of the threshold on the test statistic for window method of level drift detection
LEVEL_DRIFT_THRESHOLD = 2.5
# The default window length for window_method of level drift detection
WINDOW_LENGTH = 7
# For continuous PLA model fitting:
# The smoothing factor regulate the balance of the smoothing spline:
# being as smooth as possible, while
# closely fitting the input data
# This default value is empirically decided on available dataset in developing the solution.
SMOOTH_FACTOR = 2.5
# The number of points for local LOWESS smoothing, used in SND calculation for drift detection
LOWESS_POINTS = 7
# Heuristical parameters, for post-processing to avoid reporting small or temporary level drifts
THRESHOLD_SMALL_DRIFT = 10.0
THRESHOLD_TEMPORARY_DRIFT_LENGTH = 14
THRESHOLD_TEMPORARY_DRIFT = 20.0
DEFAULT_THRESHOLD = 80
NO_DRIFT = 0
DRIFTED = 1
DRIFT_PART = 2
DRIFT_DIRECTION_BOTH = 'both'
DRIFT_DIRECTION_UP = 'up'
DRIFT_DIRECTION_DOWN = 'down'
ZERO_LEVEL_TOLERANCE = 0.005
FEATURE_SCALED = False