mltool-0.1.0.2: Machine Learning Toolbox

Copyright(c) Alexander Ignatyev 2016
LicenseBSD-3
Stabilityexperimental
PortabilityPOSIX
Safe HaskellNone
LanguageHaskell2010

MachineLearning

Description

 

Synopsis

Documentation

addBiasDimension :: Matrix -> Matrix #

Add biad dimension to the future matrix

removeBiasDimension :: Matrix -> Matrix #

Remove biad dimension

meanStddev :: Matrix Double -> (Matrix Double, Matrix Double) #

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 #

mapFeatures :: Int -> Matrix -> Matrix #

Maps the features into all polynomial terms of X up to the degree-th power

splitToXY :: Element t => Matrix t -> (Matrix t, Vector t) #

Splits data matrix to features matrix X and vector of outputs y