packages feed

regress 0.1 → 0.1.1

raw patch · 2 files changed

+2/−2 lines, 2 filesdep ~base

Dependency ranges changed: base

Files

regress.cabal view
@@ -1,5 +1,5 @@ name:                regress-version:             0.1+version:             0.1.1 synopsis:            Linear and logistic regression through automatic differentiation description:   Linear and logistic regression through automatic differentiation
src/Numeric/Regression/Linear.hs view
@@ -29,7 +29,7 @@      -> a         -- ^ expected @y@ for the observation      -> a         -- ^ cost cost theta x y = 0.5 * (y - compute theta x) ^ (2 :: Int)-{-# INLINE compute #-}+{-# INLINE cost #-}  -- | Cost function for a linear regression on a set of observations totalCost :: (Applicative v, Foldable v, Applicative f, Foldable f, Floating a)