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

Method set_normalizer

climart/data_transform/normalization.py:329–336  ·  view source on GitHub ↗
(self, data_type: str, new_normalizer: Optional[NP_ARRAY_MAPPING])

Source from the content-addressed store, hash-verified

327 }
328
329 def set_normalizer(self, data_type: str, new_normalizer: Optional[NP_ARRAY_MAPPING]):
330 if new_normalizer is None:
331 new_normalizer = identity
332 if data_type in constants.INPUT_TYPES:
333 self._input_normalizer[data_type] = new_normalizer
334 else:
335 log.info(f" Setting output normalizer, after calling set_normalizer with data_type={data_type}")
336 self._output_normalizer = new_normalizer
337
338 def set_input_normalizers(self, new_normalizer: Optional[NP_ARRAY_MAPPING]):
339 for data_type in constants.INPUT_TYPES:

Callers 1

set_input_normalizersMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected