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

License | BSD-3 |

Stability | experimental |

Portability | POSIX |

Safe Haskell | None |

Language | Haskell2010 |

- addBiasDimension :: Matrix -> Matrix
- removeBiasDimension :: Matrix -> Matrix
- meanStddev :: Matrix R -> (Matrix R, Matrix R)
- featureNormalization :: Fractional a => (a, a) -> a -> a
- mapFeatures :: Int -> Matrix -> Matrix
- splitToXY :: Element t => Matrix t -> (Matrix t, Vector t)

# Documentation

addBiasDimension :: Matrix -> Matrix Source #

Add biad dimension to the future matrix

removeBiasDimension :: Matrix -> Matrix Source #

Remove biad dimension

meanStddev :: Matrix R -> (Matrix R, Matrix R) Source #

Caclulates mean and stddev values of every feature. Takes feature matrix X, returns pair of vectors of means and stddevs.

featureNormalization :: Fractional a => (a, a) -> a -> a Source #