Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- type Test o = o -> o -> Double
- maxIxTest :: KnownNat n => Test (R n)
- rmseTest :: forall n. KnownNat n => Test (R n)
- squaredErrorTest :: Real a => Test a
- absErrorTest :: Real a => Test a
- totalSquaredErrorTest :: (Applicative t, Foldable t, Real a) => Test (t a)
- squaredErrorTestV :: KnownNat n => Test (R n)
- crossEntropyTest :: KnownNat n => Test (R n)
- crossEntropyTest1 :: Test Double
- boolTest :: forall a. RealFrac a => Test a
- lossTest :: Loss a -> Test a
- lmapTest :: (a -> b) -> Test b -> Test a
- testModel :: Test b -> Model p Nothing a b -> TMaybe p -> a -> b -> Double
- testModelStoch :: PrimMonad m => Test b -> Model p Nothing a b -> Gen (PrimState m) -> TMaybe p -> a -> b -> m Double
- testModelAll :: Foldable t => Test b -> Model p Nothing a b -> TMaybe p -> t (a, b) -> Double
- testModelStochAll :: (Foldable t, PrimMonad m) => Test b -> Model p Nothing a b -> Gen (PrimState m) -> TMaybe p -> t (a, b) -> m Double
- testModelCov :: (Foldable t, Fractional b) => Model p Nothing a b -> TMaybe p -> t (a, b) -> b
- testModelCorr :: (Foldable t, Floating b) => Model p Nothing a b -> TMaybe p -> t (a, b) -> b
- testModelStochCov :: (Foldable t, PrimMonad m, Fractional b) => Model p Nothing a b -> Gen (PrimState m) -> TMaybe p -> t (a, b) -> m b
- testModelStochCorr :: (Foldable t, PrimMonad m, Floating b) => Model p Nothing a b -> Gen (PrimState m) -> TMaybe p -> t (a, b) -> m b
Tests
squaredErrorTest :: Real a => Test a Source #
absErrorTest :: Real a => Test a Source #
totalSquaredErrorTest :: (Applicative t, Foldable t, Real a) => Test (t a) Source #
Manipulate tests
Run tests
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 #