Skip to content

Commit

Permalink
Refact: Separation of anomaly detection from drift detection #1133
Browse files Browse the repository at this point in the history
  • Loading branch information
detlefarend committed Feb 24, 2025
1 parent 6b42b7d commit b73bb18
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/mlpro/bf/math/normalizers/basics.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ def denormalize(self, p_data: Union[Element, np.ndarray]):

elif isinstance(p_data, np.ndarray):
p_data = np.multiply(p_data, 1 / self._param[0]) + \
(self._param[1] / self._param[0])
(self._param[1] / self._param[0])
p_data = np.nan_to_num(p_data)
else:
raise ParamError('Wrong datatype provided for denormalization')
Expand Down
4 changes: 2 additions & 2 deletions src/mlpro/oa/streams/tasks/anomalydetectors/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from mlpro.oa.streams.tasks.anomalydetectors.basics import AnomalyDetector
from mlpro.oa.streams.tasks.anomalydetectors.anomalies import *
from mlpro.oa.streams.tasks.anomalydetectors.paga_detectors import AnomalyDetectorPAGA
from mlpro.oa.streams.tasks.anomalydetectors.cb_detectors import *
from mlpro.oa.streams.tasks.anomalydetectors.instancebased import *
from mlpro.oa.streams.tasks.anomalydetectors.clusterbased import *
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
from mlpro.oa.streams.tasks.anomalydetectors.anomalies.basics import Anomaly
from mlpro.oa.streams.tasks.anomalydetectors.anomalies.point import PointAnomaly
from mlpro.oa.streams.tasks.anomalydetectors.anomalies.group import GroupAnomaly
from mlpro.oa.streams.tasks.anomalydetectors.anomalies.contextual import ContextualAnomaly
from mlpro.oa.streams.tasks.anomalydetectors.anomalies.instancebased import *
from mlpro.oa.streams.tasks.anomalydetectors.anomalies.clusterbased import *
Original file line number Diff line number Diff line change
@@ -1,6 +1 @@
from mlpro.oa.streams.tasks.anomalydetectors.cb_detectors.basics import AnomalyDetectorCB
from mlpro.oa.streams.tasks.anomalydetectors.cb_detectors.disappearance_detector import ClusterDisappearanceDetector
from mlpro.oa.streams.tasks.anomalydetectors.cb_detectors.density_change_detector import ClusterDensityChangeDetector
from mlpro.oa.streams.tasks.anomalydetectors.cb_detectors.geo_size_change_detector import ClusterGeometricSizeChangeDetector
from mlpro.oa.streams.tasks.anomalydetectors.cb_detectors.new_cluster_detector import NewClusterDetector
from mlpro.oa.streams.tasks.anomalydetectors.cb_detectors.size_change_detector import ClusterSizeChangeDetector
from mlpro.oa.streams.tasks.anomalydetectors.clusterbased.basics import AnomalyDetectorCB
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from mlpro.oa.streams.tasks.anomalydetectors.instancebased.paga_detectors import AnomalyDetectorPAGA

0 comments on commit b73bb18

Please sign in to comment.