-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OA: Templates for Anomaly Prediction #1011
- Loading branch information
1 parent
c25be21
commit 9add598
Showing
8 changed files
with
246 additions
and
7 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1 +1 @@ | ||
from mlpro.oa.streams.tasks.anomalypredictors.basics import AnomalyPredictor | ||
from mlpro.oa.streams.tasks.anomalypredictors.basics import AnomalyPredictor, AnomalyPrediction |
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,76 @@ | ||
## ------------------------------------------------------------------------------------------------- | ||
## -- Project : MLPro - The integrative middleware framework for standardized machine learning | ||
## -- Package : mlpro.oa.streams.tasks.anomalypredictors | ||
## -- Module : basics.py | ||
## ------------------------------------------------------------------------------------------------- | ||
## -- History : | ||
## -- yyyy-mm-dd Ver. Auth. Description | ||
## -- 2024-06-04 0.0.0 DA/DS Creation | ||
## -- 2024-08-23 0.1.0 DA/DS Creation | ||
## ------------------------------------------------------------------------------------------------- | ||
|
||
""" | ||
Ver. 0.1.0 (2024-08-23) | ||
This module provides basic templates for online anomaly prediction in MLPro. | ||
""" | ||
|
||
|
||
from mlpro.bf.events import Event | ||
from mlpro.oa.streams.tasks import OATask | ||
|
||
|
||
|
||
|
||
## ------------------------------------------------------------------------------------------------- | ||
## ------------------------------------------------------------------------------------------------- | ||
class AnomalyPredictor (OATask): | ||
""" | ||
The __init__ method should be documented in the class level docstring and the docstring itself | ||
should not go beyond 100 characters length (within the dash separator). Sections inside the | ||
docstring can be seperated like the reStructuredText format. | ||
Parameters are documented in the Parameters section. | ||
Public attributes of classes are documented inisde Attributes section. | ||
Returns attronites are documented in the Returns section. | ||
A few examples of data types: int / str / bool / list of str / tuple of int / float / None / dict. | ||
If the parameters have default values, you should add "TYPE, optional" as part of the type | ||
and "The default is ...." as part of the description. | ||
.. _Further_formatting_information: | ||
https://numpydoc.readthedocs.io/en/latest/format.html | ||
Notes | ||
----- | ||
The content inside the section should be indented. | ||
Parameters | ||
---------- | ||
p_arg1 : str | ||
Explanation of the first parameter. | ||
p_arg2 : bool | ||
Explanation of the second parameter. The default is True. | ||
Attributes | ||
---------- | ||
C_MY_CONSTANT = 'My static value' | ||
Explanation of the public constant C_MY_CONSTANT. | ||
""" | ||
|
||
pass | ||
|
||
|
||
|
||
|
||
|
||
## ------------------------------------------------------------------------------------------------- | ||
## ------------------------------------------------------------------------------------------------- | ||
class AnomalyPrediction (Event): | ||
""" | ||
... | ||
""" | ||
|
||
pass |
Empty file.
31 changes: 31 additions & 0 deletions
31
src/mlpro/oa/streams/tasks/anomalypredictors/tsf/ad_based.py
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 @@ | ||
## ------------------------------------------------------------------------------------------------- | ||
## -- Project : MLPro - The integrative middleware framework for standardized machine learning | ||
## -- Package : mlpro.oa.streams.tasks.anomalypredictors | ||
## -- Module : basics.py | ||
## ------------------------------------------------------------------------------------------------- | ||
## -- History : | ||
## -- yyyy-mm-dd Ver. Auth. Description | ||
## -- 2024-06-04 0.0.0 DA/DS Creation | ||
## -- 2024-08-23 0.1.0 DA/DS Creation | ||
## ------------------------------------------------------------------------------------------------- | ||
|
||
""" | ||
Ver. 0.1.0 (2024-08-23) | ||
This module provides basic templates for online anomaly prediction in MLPro. | ||
""" | ||
|
||
|
||
from mlpro.oa.streams.tasks.anomalypredictors.tsf.basics import AnomalyPredictorTSF | ||
|
||
|
||
|
||
## ------------------------------------------------------------------------------------------------- | ||
## ------------------------------------------------------------------------------------------------- | ||
class AnomalyPredictorAD (AnomalyPredictorTSF): | ||
""" | ||
... | ||
""" | ||
|
||
pass |
59 changes: 59 additions & 0 deletions
59
src/mlpro/oa/streams/tasks/anomalypredictors/tsf/basics.py
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,59 @@ | ||
## ------------------------------------------------------------------------------------------------- | ||
## -- Project : MLPro - The integrative middleware framework for standardized machine learning | ||
## -- Package : mlpro.oa.streams.tasks.anomalypredictors | ||
## -- Module : basics.py | ||
## ------------------------------------------------------------------------------------------------- | ||
## -- History : | ||
## -- yyyy-mm-dd Ver. Auth. Description | ||
## -- 2024-06-04 0.0.0 DA/DS Creation | ||
## -- 2024-08-23 0.1.0 DA/DS Creation | ||
## ------------------------------------------------------------------------------------------------- | ||
|
||
""" | ||
Ver. 0.1.0 (2024-08-23) | ||
This module provides basic templates for online anomaly prediction in MLPro. | ||
""" | ||
|
||
|
||
from mlpro.bf.math import Function | ||
from mlpro.oa.streams.tasks.anomalypredictors import AnomalyPredictor, AnomalyPrediction | ||
from mlpro.sl import SLAdaptiveFunction | ||
|
||
|
||
|
||
## ------------------------------------------------------------------------------------------------- | ||
## ------------------------------------------------------------------------------------------------- | ||
class TimeSeriesForcaster (Function): | ||
""" | ||
... | ||
""" | ||
|
||
pass | ||
|
||
|
||
|
||
|
||
|
||
## ------------------------------------------------------------------------------------------------- | ||
## ------------------------------------------------------------------------------------------------- | ||
class OATimeSeriesForcaster (TimeSeriesForcaster, SLAdaptiveFunction): | ||
""" | ||
... | ||
""" | ||
|
||
pass | ||
|
||
|
||
|
||
|
||
|
||
## ------------------------------------------------------------------------------------------------- | ||
## ------------------------------------------------------------------------------------------------- | ||
class AnomalyPredictorTSF (AnomalyPredictor): | ||
""" | ||
... | ||
""" | ||
|
||
pass |
43 changes: 43 additions & 0 deletions
43
src/mlpro/oa/streams/tasks/anomalypredictors/tsf/mini_batch_based.py
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,43 @@ | ||
## ------------------------------------------------------------------------------------------------- | ||
## -- Project : MLPro - The integrative middleware framework for standardized machine learning | ||
## -- Package : mlpro.oa.streams.tasks.anomalypredictors | ||
## -- Module : basics.py | ||
## ------------------------------------------------------------------------------------------------- | ||
## -- History : | ||
## -- yyyy-mm-dd Ver. Auth. Description | ||
## -- 2024-06-04 0.0.0 DA/DS Creation | ||
## -- 2024-08-23 0.1.0 DA/DS Creation | ||
## ------------------------------------------------------------------------------------------------- | ||
|
||
""" | ||
Ver. 0.1.0 (2024-08-23) | ||
This module provides basic templates for online anomaly prediction in MLPro. | ||
""" | ||
|
||
|
||
from mlpro.oa.streams.tasks.anomalypredictors.tsf.basics import OATimeSeriesForcaster | ||
|
||
|
||
|
||
## ------------------------------------------------------------------------------------------------- | ||
## ------------------------------------------------------------------------------------------------- | ||
class MiniBatchManager: | ||
""" | ||
""" | ||
|
||
pass | ||
|
||
|
||
|
||
|
||
|
||
## ------------------------------------------------------------------------------------------------- | ||
## ------------------------------------------------------------------------------------------------- | ||
class OATimeSeriesForcasterMB (OATimeSeriesForcaster): | ||
""" | ||
... | ||
""" | ||
|
||
pass |
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