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

Method normalize

climart/data_transform/normalization.py:169–172  ·  view source on GitHub ↗
(self, data, *args, **kwargs)

Source from the content-addressed store, hash-verified

167 self.min_max_normalizer = MinMax_Normalizer(min, max_minus_min)
168
169 def normalize(self, data, *args, **kwargs):
170 normalized_data = self.min_max_normalizer.normalize(data)
171 normalized_data = np.log(normalized_data)
172 return normalized_data
173
174 def inverse_normalize(self, normalized_data):
175 data = np.exp(normalized_data)

Callers

nothing calls this directly

Calls 1

normalizeMethod · 0.45

Tested by

no test coverage detected