MCPcopy Create free account
hub / github.com/RolnickLab/climart / normalize

Method normalize

climart/data_transform/normalization.py:346–351  ·  view source on GitHub ↗
(self, X: Dict[str, np.ndarray])

Source from the content-addressed store, hash-verified

344 return self._output_normalizer
345
346 def normalize(self, X: Dict[str, np.ndarray]) -> Dict[str, np.ndarray]:
347 for input_type, rawX in X.items():
348 X[input_type] = self._input_normalizer[input_type](rawX)
349
350 X = self._log_scaler_func(X)
351 return X
352
353 def __call__(self, X: Dict[str, np.ndarray]) -> Dict[str, np.ndarray]:
354 return self.normalize(X)

Callers 4

__call__Method · 0.95
normalizeMethod · 0.45
normalizeMethod · 0.45
training_stepMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected