Custom `anomalies.csv
source file for load_anomalies
`
#585
Labels
enhancement
Improvements on the current features
anomalies.csv
source file for load_anomalies
`
#585
As in the discussion of #583, we need to allow dynamic loading of the source file to grab the respected anomaly. To do this, we can introduce an argument
path
to help localize the source file.default behavior
In the event when no
path
is defined, the function should retrieve the source fileanomalies.csv
hosted on s3 bucket which contains the ground truth of the public datasets we have in Orion.expected behavior
If
path
is specified, then use that file as the source to load the anomalies from. The source file should be acsv
file with the following format:where:
signal
column represents the name of the signal such that the function will fetch the anomalies of that particular signal.events
column that contains a list of tuples with two elements. the tuple contains thestart
andend
timestamps of the anomaly.after using
load_anomalies(signal, path)
the resulting dataframe iswhere each entry is an anomaly pertaining to the selected signal
The text was updated successfully, but these errors were encountered: