(self, regularization=1.0)
| 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.""" |
nothing calls this directly
no outgoing calls
no test coverage detected