MCPcopy Index your code
hub / github.com/rushter/MLAlgorithms / L2

Class L2

mla/neuralnet/regularizers.py:26–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24
25
26class L2(Regularizer):
27 def _penalty(self, weights):
28 return self.C * weights**2
29
30
31class ElasticNet(Regularizer):

Callers 2

test_mlpFunction · 0.90
classificationFunction · 0.90

Calls

no outgoing calls

Tested by 1

test_mlpFunction · 0.72