backprop-learn-0.1.0.0: Combinators and useful tools for ANNs using the backprop library

Safe HaskellNone
LanguageHaskell2010

Backprop.Learn.Test

Contents

Synopsis

Tests

type Test o = o -> o -> Double Source #

rmseTest :: forall n. KnownNat n => Test (R n) Source #

boolTest :: forall a. RealFrac a => Test a Source #

Manipulate tests

lossTest :: Loss a -> Test a Source #

Create a Test from a Loss

lmapTest :: (a -> b) -> Test b -> Test a Source #

Run tests

testModel :: Test b -> Model p Nothing a b -> TMaybe p -> a -> b -> Double Source #

testModelStoch :: PrimMonad m => Test b -> Model p Nothing a b -> Gen (PrimState m) -> TMaybe p -> a -> b -> m Double Source #

testModelAll :: Foldable t => Test b -> Model p Nothing a b -> TMaybe p -> t (a, b) -> Double Source #

testModelStochAll :: (Foldable t, PrimMonad m) => Test b -> Model p Nothing a b -> Gen (PrimState m) -> TMaybe p -> t (a, b) -> m Double Source #

Correlation tests

testModelCov :: (Foldable t, Fractional b) => Model p Nothing a b -> TMaybe p -> t (a, b) -> b Source #

testModelCorr :: (Foldable t, Floating b) => Model p Nothing a b -> TMaybe p -> t (a, b) -> b Source #

testModelStochCov :: (Foldable t, PrimMonad m, Fractional b) => Model p Nothing a b -> Gen (PrimState m) -> TMaybe p -> t (a, b) -> m b Source #

testModelStochCorr :: (Foldable t, PrimMonad m, Floating b) => Model p Nothing a b -> Gen (PrimState m) -> TMaybe p -> t (a, b) -> m b Source #