MCPcopy Index your code
hub / github.com/Newmu/dcgan_code / weight_regularize

Method weight_regularize

lib/updates.py:40–46  ·  view source on GitHub ↗
(self, p)

Source from the content-addressed store, hash-verified

38 return g
39
40 def weight_regularize(self, p):
41 p = self.max_norm(p, self.maxnorm)
42 if self.l2norm:
43 p = self.l2_norm(p)
44 if self.frobnorm > 0:
45 p = self.frob_norm(p, self.frobnorm)
46 return p
47
48
49class Update(object):

Callers 7

__call__Method · 0.80
__call__Method · 0.80
__call__Method · 0.80
__call__Method · 0.80
__call__Method · 0.80
__call__Method · 0.80
__call__Method · 0.80

Calls 3

max_normMethod · 0.95
l2_normMethod · 0.95
frob_normMethod · 0.95

Tested by

no test coverage detected