Copyright | (c) Alexander Ignatyev 2017 |
---|---|

License | BSD-3 |

Stability | experimental |

Portability | POSIX |

Safe Haskell | None |

Language | Haskell2010 |

Regularization.

- data Regularization
- costReg :: Regularization -> Vector -> R
- gradientReg :: Regularization -> Vector -> Vector

# Documentation

costReg :: Regularization -> Vector -> R Source #

Calculates regularization for Model.cost function. It takes regularization parameter and theta.

gradientReg :: Regularization -> Vector -> Vector Source #

Calculates regularization for Model.gradient function. It takes regularization parameter and theta.