Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sol pipelines #387

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 11 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added 2'
Empty file.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -308,4 +308,4 @@ docker-jupyter-package: docker-jupyter-save ## Build the docker-jupyter image an

.PHONY: checkdeps
checkdeps: # Save the currently installed versions of the dependencies as the latest versions
invoke checkdeps $(OUTPUT_PATH)
invoke checkdeps $(OUTPUT_PATH)
16 changes: 16 additions & 0 deletions orion/pipelines/sandbox/SOL/diff_OMNI_SDM_3_11.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"primitives": [
"orion.primitives.timeseries_postprocessing.extract_dimension",
"orion.primitives.timeseries_postprocessing.diff_thres",
"orion.primitives.timeseries_postprocessing.get_intervals"
],
"init_params": {
"orion.primitives.timeseries_postprocessing.diff_thres#1": {
"thres": 0.1,
"op": ">"
},
"orion.primitives.intervals.get_intervals#1": {
"severity": true
}
}
}
17 changes: 17 additions & 0 deletions orion/pipelines/sandbox/SOL/movstd_OMNI_SDM_3_11.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"primitives": [
"orion.primitives.timeseries_postprocessing.extract_dimension",
"orion.primitives.timeseries_postprocessing.rolling_std_thres",
"orion.primitives.timeseries_postprocessing.get_intervals"
],
"init_params": {
"orion.primitives.timeseries_postprocessing.rolling_std_thres#1": {
"thres": 10,
"op": ">",
"window_size": 5
},
"orion.primitives.intervals.get_intervals#1": {
"severity": false
}
}
}
17 changes: 17 additions & 0 deletions orion/pipelines/sandbox/SOL/movstd_numenta_AISD.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"primitives": [
"orion.primitives.timeseries_postprocessing.extract_dimension",
"orion.primitives.timeseries_postprocessing.rolling_std_thres",
"orion.primitives.timeseries_postprocessing.get_intervals"
],
"init_params": {
"orion.primitives.timeseries_postprocessing.rolling_std_thres#1": {
"thres": 10,
"op": ">",
"window_size": 5
},
"orion.primitives.intervals.get_intervals#1": {
"severity": true
}
}
}
16 changes: 16 additions & 0 deletions orion/pipelines/sandbox/SOL/thres_OMNI_SDM_3_11.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"primitives": [
"orion.primitives.timeseries_postprocessing.extract_dimension",
"orion.primitives.timeseries_postprocessing.thresholding",
"orion.primitives.timeseries_postprocessing.get_intervals"
],
"init_params": {
"orion.primitives.timeseries_postprocessing.thresholding#1": {
"thres": 0.01,
"op": "<"
},
"orion.primitives.intervals.get_intervals#1": {
"severity": true
}
}
}
16 changes: 16 additions & 0 deletions orion/pipelines/sandbox/SOL/thres_yahoo_real1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"primitives": [
"orion.primitives.timeseries_postprocessing.extract_dimension",
"orion.primitives.timeseries_postprocessing.thresholding",
"orion.primitives.timeseries_postprocessing.get_intervals"
],
"init_params": {
"orion.primitives.timeseries_postprocessing.thresholding#1": {
"thres": 0.45,
"op": ">"
},
"orion.primitives.intervals.get_intervals#1": {
"severity": true
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I noticed build_anomaly_intervals is not being used. Is there a reason for adding it to the PR? (similar comment applies to the function, if it is not part of the pipelines, we can remove it)

"name": "build_anomaly_intervals",
"primitive": "orion.primitives.timeseries_postprocessing.build_anomaly_intervals",
"description": "Builds anomaly intervals",
"produce": {
"args": [
{
"name": "y",
"type": "ndarray"
}
],
"output": [
{
"name": "y",
"type": "ndarray"
}
]
},
"hyperparameters": {
"tunable": {
"severity": {
"type": "bool",
"default": true
},
"indices": {
"type": "bool",
"default": false
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"name": "diff_thres",
"primitive": "orion.primitives.timeseries_postprocessing.diff_thres",
"description": "Detects anomalies by calculating n-th order discrete difference",
"produce": {
"args": [
{
"name": "X",
"type": "ndarray"
}
],
"output": [
{
"name": "y",
"type": "ndarray"
}
]
},
"hyperparameters": {
"tunable": {
"thres": {
"type": "float",
"default": "0.1"
},
"op": {
"type": "str",
"default": ">",
"options": ["<", ">", "<=", ">=", "=="]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"name": "extract_dimension",
"primitive": "orion.primitives.timeseries_postprocessing.extract_dimension",
"description": "Dataset checks and slicing dimension",
"produce": {
"args": [
{
"name": "X",
"type": "ndarray"
}
],
"output": [
{
"name": "X",
"type": "ndarray"
}
]
},
"hyperparameters": {
"tunable": {
"dim": {
"type": "int",
"default": null
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"name": "get_intervals",
"primitive": "orion.primitives.timeseries_postprocessing.get_intervals",
"description": "Builds anomaly intervals",
"produce": {
"args": [
{
"name": "y",
"type": "ndarray"
}
],
"output": [
{
"name": "y",
"type": "ndarray"
}
]
},
"hyperparameters": {
"tunable": {
"severity": {
"type": "bool",
"default": true
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"name": "rolling_std_thres",
"primitive": "orion.primitives.timeseries_postprocessing.rolling_std_thres",
"description": "Detects anomalies through moving standard deviation thresholding",
"produce": {
"args": [
{
"name": "X",
"type": "ndarray"
}

],
"output": [
{
"name": "y",
"type": "ndarray"
}
]
},
"hyperparameters": {
"tunable": {
"thres": {
"type": "float",
"default": 10
},
"op": {
"type": "str",
"default": ">",
"options": ["<", ">", "<=", ">=", "=="]
},
"window_size": {
"type": "int",
"default": "5"
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"name": "thresholding",
"primitive": "orion.primitives.timeseries_postprocessing.thresholding",
"description": "Detects anomalies through simple thresholding",
"produce": {
"args": [
{
"name": "X",
"type": "ndarray"
}

],
"output": [
{
"name": "y",
"type": "ndarray"
}
]
},
"hyperparameters": {
"tunable": {
"thres": {
"type": "float",
"default": 10
},
"op": {
"type": "str",
"default": ">",
"options": ["<", ">", "<=", ">=", "=="]
}
}
}
}
Loading