MCPcopy Create free account
hub / github.com/Anoise/WTFlib / encode

Method encode

LDPS_Graph/layers/utils.py:268–270  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

266 self.eps = eps
267
268 def encode(self, x):
269 x = (x - self.mean) / (self.std + self.eps)
270 return x
271
272 def decode(self, x, sample_idx=None):
273 if sample_idx is None:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected