Skip to content

Commit

Permalink
Deprecate module standardizers
Browse files Browse the repository at this point in the history
  • Loading branch information
dnerini committed Aug 28, 2024
1 parent 8c7f807 commit 4a78f53
Show file tree
Hide file tree
Showing 9 changed files with 649 additions and 585 deletions.
6 changes: 3 additions & 3 deletions mlpp_lib/datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from typing_extensions import Self

from .model_selection import DataSplitter
from .standardizers import DataTransformer
from .normalizers import DataTransformer

LOGGER = logging.getLogger(__name__)

Expand Down Expand Up @@ -153,11 +153,11 @@ def apply_filter(self):
self.x, self.y = self.filter.apply(self.x, self.y)

def normalize(self, stage=None):
LOGGER.info("Standardizing data.")
LOGGER.info("Normalizing data.")

if self.normalizer is None:
if stage == "test":
raise ValueError("Must provide standardizer for `test` stage.")
raise ValueError("Must provide normalizer for `test` stage.")
else:
self.normalizer = DataTransformer({"Identity": (list(self.train[0].data_vars), {})})

Expand Down
Loading

0 comments on commit 4a78f53

Please sign in to comment.