-
Notifications
You must be signed in to change notification settings - Fork 162
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
MihirT906
wants to merge
15
commits into
sintel-dev:master
Choose a base branch
from
MihirT906:SOL-pipelines
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Sol pipelines #387
Changes from 11 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
89ef5db
Add primitive
MihirT906 9e1a0dd
Merge branch 'master' of https://github.com/MihirT906/Orion into SOL-…
MihirT906 11ef0ca
Merge branch 'sintel-dev:master' into SOL-pipelines
MihirT906 027a206
Merge branch 'SOL-pipelines' of https://github.com/MihirT906/Orion in…
MihirT906 be5f9f5
Update TS Postprocessing primitive
MihirT906 62b9a84
Add TS postprocessing primitive JSONs
MihirT906 239a1e1
Add SOL Pipelines
MihirT906 fea5dd2
Merge branch 'sintel-dev:master' into SOL-pipelines
MihirT906 ae6ea22
Merge branch 'master' of https://github.com/MihirT906/Orion into SOL-…
MihirT906 680f6fd
Update OPs to global variable
MihirT906 03e5d12
Merge branch 'SOL-pipelines' of https://github.com/MihirT906/Orion in…
MihirT906 db20927
Merge branch 'sintel-dev:master' into SOL-pipelines
MihirT906 3d8596f
Update Docstrings
MihirT906 06e5dbb
Revert "Update TS Postprocessing primitive"
MihirT906 1a8d203
add tests + fix lint
sarahmish File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} | ||
} | ||
} |
31 changes: 31 additions & 0 deletions
31
.../primitives/jsons/orion.primitives.timeseries_postprocessing.build_anomaly_intervals.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"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 | ||
} | ||
} | ||
} | ||
} |
32 changes: 32 additions & 0 deletions
32
orion/primitives/jsons/orion.primitives.timeseries_postprocessing.diff_thres.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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": ["<", ">", "<=", ">=", "=="] | ||
} | ||
} | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
orion/primitives/jsons/orion.primitives.timeseries_postprocessing.extract_dimension.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} | ||
} | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
orion/primitives/jsons/orion.primitives.timeseries_postprocessing.get_intervals.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} | ||
} | ||
} | ||
} |
37 changes: 37 additions & 0 deletions
37
orion/primitives/jsons/orion.primitives.timeseries_postprocessing.rolling_std_thres.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} | ||
} | ||
} |
33 changes: 33 additions & 0 deletions
33
orion/primitives/jsons/orion.primitives.timeseries_postprocessing.thresholding.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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": ["<", ">", "<=", ">=", "=="] | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
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)