Orion
orion.
detect_anomalies
Detect anomalies on timeseries data.
The anomalies are detected using an Orion pipeline which can be passed as:
An Orion instance. An str with the path to an Orion pickle file. An str with a path to a JSON file. An str with the name of a registered Orion pipeline. An MLPipeline instance. A dict with an MLPipeline specification.
An Orion instance.
An str with the path to an Orion pickle file.
str
An str with a path to a JSON file.
An str with the name of a registered Orion pipeline.
An MLPipeline instance.
MLPipeline
A dict with an MLPipeline specification.
dict
If no pipeline is passed, the default Orion pipeline is used.
Optionally, separated learning data can be passed to fit the pipeline to it before using it to detect anomalies.
data (str or DataFrame) – Data to analyze searching for anomalies. It can be passed as a path to a CSV file or as a DataFrame.
pipeline (str or Pipeline or dict) –
An str with the name of a registered pipeline.
hyperparameters (str or dict) – Hyperparameters to set to the pipeline. It can be passed as a hyperparameters dict in the mlblocks format or as a path to the corresponding JSON file. Ignored if being passed a previously serialized Orion instance. Defaults to None.
mlblocks
None
train_data (str or DataFrame) – Data to which the pipeline should be fitted. It can be passed as a path to a CSV file or as a DataFrame. If not given, the pipeline is used without fitting it first.
pandas.DataFrame containing the detected anomalies.
pandas.DataFrame
DataFrame