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

Method __init__

mla/ensemble/gbm.py:23–24  ·  view source on GitHub ↗
(self, regularization=1.0)

Source from the content-addressed store, hash-verified

21 """Base class for loss functions."""
22
23 def __init__(self, regularization=1.0):
24 self.regularization = regularization
25
26 def grad(self, actual, predicted):
27 """First order gradient."""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected