MCPcopy Create free account
hub / github.com/rushter/MLAlgorithms / __init__

Method __init__

mla/neuralnet/regularizers.py:7–9  ·  view source on GitHub ↗
(self, C=0.01)

Source from the content-addressed store, hash-verified

5
6class Regularizer(object):
7 def __init__(self, C=0.01):
8 self.C = C
9 self._grad = elementwise_grad(self._penalty)
10
11 def _penalty(self, weights):
12 raise NotImplementedError()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected