Closed VargBurz closed 4 years ago
This PR adds new AnomalyCache class which is used in AnomalyDetector instead of dict.
AnomalyCache
AnomalyDetector
alpha
confidence
enable_bounds
seasonality
segments
time_step
set_segments
self.segments
SerializableList
get_enabled_bound
self.enable_bound
Bound
meta.JSONClass
utils.meta
list
to_json
serialize
object.to_json()
object
JSONClass.to_json
train
detect
process_data
get_window_size
enabled_bounds
enum Bound
detector_typing
utils.meta.serialize
This PR adds new
AnomalyCache
class which is used inAnomalyDetector
instead of dict.Changes:
AnomalyCache
class with:alpha
,confidence
,enable_bounds
seasonality
,segments
,time_step
set_segments
, which setsself.segments
wrapped inSerializableList
get_enabled_bound
, which returnsself.enable_bound
wrapped inBound
meta.JSONClass
decorator forAnomalyCache
utils.meta
:SerializableList
class, which extendslist
withto_json
methodserialize
which returnsobject.to_json()
ifobject
hasto_json
methodJSONClass.to_json
usesserialize
method for class fieldsAnomalyCache
inAnomalyDetector
's methods:train
,detect
,process_data
,get_window_size
enable_bounds
toenabled_bounds
inAnomalyDetector
enum Bound
fromAnomalyDetector
todetector_typing
utils.meta.serialize
method