Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
26
class
L2(Regularizer):
27
def
_penalty(self, weights):
28
return
self.C * weights**2
29
30
31
class
ElasticNet(Regularizer):
Callers
2
test_mlp
Function · 0.90
classification
Function · 0.90
Calls
no outgoing calls
Tested by
1
test_mlp
Function · 0.72