MCPcopy Create free account
hub / github.com/Newmu/dcgan_code / Normal

Class Normal

lib/inits.py:17–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15 return sharedX(np_rng.uniform(low=-self.scale, high=self.scale, size=shape), name=name)
16
17class Normal(object):
18 def __init__(self, loc=0., scale=0.05):
19 self.scale = scale
20 self.loc = loc
21
22 def __call__(self, shape, name=None):
23 return sharedX(np_rng.normal(loc=self.loc, scale=self.scale, size=shape), name=name)
24
25class Orthogonal(object):
26 """ benanne lasagne ortho init (faster than qr approach)"""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected