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

Method __init__

lib/updates.py:19–20  ·  view source on GitHub ↗
(self, l1=0., l2=0., maxnorm=0., l2norm=False, frobnorm=False)

Source from the content-addressed store, hash-verified

17class Regularizer(object):
18
19 def __init__(self, l1=0., l2=0., maxnorm=0., l2norm=False, frobnorm=False):
20 self.__dict__.update(locals())
21
22 def max_norm(self, p, maxnorm):
23 if maxnorm > 0:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected