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

Class L1

mla/neuralnet/regularizers.py:21–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19
20
21class L1(Regularizer):
22 def _penalty(self, weights):
23 return self.C * np.abs(weights)
24
25
26class L2(Regularizer):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected