Skip to content

Commit

Permalink
Bug: MinMax-Normalizer plots a outlier instance #1117
Browse files Browse the repository at this point in the history
  • Loading branch information
detlefarend committed Dec 16, 2024
1 parent 4a20e05 commit 6405f40
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/mlpro/oa/streams/tasks/normalizers/minmax.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,11 @@
## -- 2024-07-12 1.3.2 LSB Renormalization error
## -- 2024-10-29 1.3.3 DA - Refactoring of NormalizerMinMax._adapt_on_event()
## -- - Bugfix in NormalizerMinMax._update_plot_data_3d()
## -- 2024-12-16 1.4.0 DA Method NormalizerMinMax._run(): little code tuning
## -------------------------------------------------------------------------------------------------

"""
Ver. 1.3.3 (2024-10-29)
Ver. 1.4.0 (2024-12-16)
This module provides implementation for adaptive normalizers for MinMax Normalization.
"""
Expand Down Expand Up @@ -102,10 +103,13 @@ def _run(self, p_inst:InstDict):

# Normalization of all incoming stream instances (order doesn't matter)
for ids, (inst_type, inst) in p_inst.items():
feature_data = inst.get_feature_data()

if self._param is None:
self.update_parameters( p_set = inst.get_feature_data().get_related_set() )
normalized_element = self.normalize(inst.get_feature_data())
inst.get_feature_data().set_values(normalized_element.get_values())
self.update_parameters( p_set = feature_data.get_related_set() )

normalized_element = self.normalize(feature_data)
feature_data.set_values(normalized_element.get_values())


## -------------------------------------------------------------------------------------------------
Expand Down

0 comments on commit 6405f40

Please sign in to comment.