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

Method __init__

LDPS_Graph/layers/utils.py:298–303  ·  view source on GitHub ↗
(self, x, eps=0.00001)

Source from the content-addressed store, hash-verified

296# normalization, Gaussian
297class GaussianNormalizer(object):
298 def __init__(self, x, eps=0.00001):
299 super(GaussianNormalizer, self).__init__()
300
301 self.mean = torch.mean(x)
302 self.std = torch.std(x)
303 self.eps = eps
304
305 def encode(self, x):
306 x = (x - self.mean) / (self.std + self.eps)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected