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

Method __init__

climart/data_transform/normalization.py:94–99  ·  view source on GitHub ↗
(self, min=None, max_minus_min=None, max=None, **kwargs)

Source from the content-addressed store, hash-verified

92
93class MinMax_Normalizer(NormalizationMethod):
94 def __init__(self, min=None, max_minus_min=None, max=None, **kwargs):
95 super().__init__(**kwargs)
96 self.min = min
97 if min:
98 assert max_minus_min or max
99 self.max_minus_min = max_minus_min or max - min
100
101 def normalize(self, data, axis=None, *args, **kwargs):
102 # self.min = np.min(data, axis=axis)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected