MCPcopy Create free account
hub / github.com/alipay/RGSL / transform

Method transform

lib/normalization.py:22–23  ·  view source on GitHub ↗
(self, data)

Source from the content-addressed store, hash-verified

20 self.std = std
21
22 def transform(self, data):
23 return (data - self.mean) / self.std
24
25 def inverse_transform(self, data):
26 if type(data) == torch.Tensor and type(self.mean) == np.ndarray:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected