geoist.snoopy package¶
Subpackages¶
- geoist.snoopy.algorithms package
- Subpackages
- geoist.snoopy.algorithms.anomaly_detector_algorithms package
- Submodules
- geoist.snoopy.algorithms.anomaly_detector_algorithms.absolute_threshold module
- geoist.snoopy.algorithms.anomaly_detector_algorithms.all module
- geoist.snoopy.algorithms.anomaly_detector_algorithms.bitmap_detector module
- geoist.snoopy.algorithms.anomaly_detector_algorithms.default_detector module
- geoist.snoopy.algorithms.anomaly_detector_algorithms.derivative_detector module
- geoist.snoopy.algorithms.anomaly_detector_algorithms.diff_percent_threshold module
- geoist.snoopy.algorithms.anomaly_detector_algorithms.exp_avg_detector module
- geoist.snoopy.algorithms.anomaly_detector_algorithms.sign_test module
- Module contents
- geoist.snoopy.algorithms.correlator_algorithms package
- geoist.snoopy.algorithms.anomaly_detector_algorithms package
- Module contents
- Subpackages
- geoist.snoopy.modules package
Submodules¶
geoist.snoopy.anomaly_detector module¶
API for Anomaly Detector Module This module detects anomalies in a single time series.
-
class
geoist.snoopy.anomaly_detector.
AnomalyDetector
(time_series, baseline_time_series=None, score_only=False, score_threshold=None, score_percent_threshold=None, algorithm_name=None, algorithm_params=None, refine_algorithm_name=None, refine_algorithm_params=None, algorithm_class=None)[源代码]¶ 基类:
object
geoist.snoopy.constants module¶
Constants to use for geoist.snoopy
-
geoist.snoopy.constants.
DEFAULT_DETECTOR_EMA_SIGNIFICANT
= 0.94¶ Correlator Constants
geoist.snoopy.correlator module¶
API for Correlator Module This module finds correlation between two time series.
-
class
geoist.snoopy.correlator.
Correlator
(time_series_a, time_series_b, time_period=None, use_anomaly_score=False, algorithm_name=None, algorithm_params=None)[源代码]¶ 基类:
object
-
get_correlation_result
()[源代码]¶ Get correlation result. :return CorrelationResult: a CorrelationResult object.
Compare with a threshold to determine whether two timeseries correlate to each other. :return: a CorrelationResult object if two time series correlate otherwise false.
-
geoist.snoopy.exceptions module¶
Exception Classes
-
exception
geoist.snoopy.exceptions.
AlgorithmNotFound
[源代码]¶ 基类:
Exception
Raise when algorithm can not be found.
-
exception
geoist.snoopy.exceptions.
InvalidDataFormat
[源代码]¶ 基类:
Exception
Raise when data has invalid format.
geoist.snoopy.tsa module¶
geoist.snoopy.utils module¶
Utilities for snoopy
-
geoist.snoopy.utils.
compute_ema
(smoothing_factor, points)[源代码]¶ Compute exponential moving average of a list of points. :param float smoothing_factor: the smoothing factor. :param list points: the data points. :return list: all ema in a list.
-
geoist.snoopy.utils.
pbinom
(k, n)[源代码]¶ Compute cdf for binomial with prob = 0.5 compare to R pbinom :param k: :param n: :return: cumulative probability
-
geoist.snoopy.utils.
qbinom
(p, n)[源代码]¶ quantile function for binomial with probability of success 0.5 returns smallest k such that Prob(X <= k) >= p compare to R qbinom :param n: number :param p: quantile level :return: k