packages feed

backprop 0.2.6.3 → 0.2.6.4

raw patch · 6 files changed

+28/−4 lines, 6 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

CHANGELOG.md view
@@ -1,6 +1,15 @@ Changelog ========= +Version 0.2.6.4+---------------++*June 30, 2020*++<https://github.com/mstksg/backprop/releases/tag/v0.2.6.4>++*   Compatibility with ghc-8.10.1 (@tonyday567)+ Version 0.2.6.3 --------------- 
backprop.cabal view
@@ -1,13 +1,13 @@ cabal-version: 1.12 --- This file has been generated from package.yaml by hpack version 0.31.2.+-- This file has been generated from package.yaml by hpack version 0.33.0. -- -- see: https://github.com/sol/hpack ----- hash: a9461183db8be7dbe24825f41a9efd5aaa5b42ab7a4745958b02fe5e5e59f826+-- hash: 906559ac274a6fd89fe27484a5a3a192f5a009fc5317c1fd3546168b5ba7b927  name:           backprop-version:        0.2.6.3+version:        0.2.6.4 synopsis:       Heterogeneous automatic differentation description:    Write your functions to compute your result, and the library will                 automatically generate functions to compute your gradient.@@ -24,7 +24,7 @@ copyright:      (c) Justin Le 2018 license:        BSD3 license-file:   LICENSE-tested-with:    GHC >= 8.0+tested-with:    GHC >= 8.4 build-type:     Simple extra-source-files:     README.md
doc/01-getting-started.md view
@@ -112,6 +112,7 @@  instance Backprop Net +-- requires -XTemplateHaskell makeLenses ''Net ``` 
doc/03-manipulating-bvars.md view
@@ -132,6 +132,7 @@ [microlens-th]: http://hackage.haskell.org/package/microlens-th  ```haskell top+-- requires -XTemplateHaskell makeLenses ''Net ``` @@ -274,6 +275,17 @@        -> BVar s (R 100)        -> BVar s (R 5) runMet (splitBV -> M w1 b1 w2 b2) x = z+  where+    -- run first layer+    y = logistic $ w1 #> x + b1+    -- run second layer+    z = logistic $ w2 #> y + b2++runMetPS :: Reifies s W+       => BVar s Met+       -> BVar s (R 100)+       -> BVar s (R 5)+runMetPS (BV (M w1 b1 w2 b2)) x = z   where     -- run first layer     y = logistic $ w1 #> x + b1
doc/08-equipping-your-library.md view
@@ -401,6 +401,7 @@ [microlens-th]: http://hackage.haskell.org/package/microlens-th  ```haskell top+-- requires -XTemplateHaskell makeLenses ''MyType ``` 
src/Data/Type/Util.hs view
@@ -10,6 +10,7 @@ {-# LANGUAGE TypeFamilyDependencies #-} {-# LANGUAGE TypeInType             #-} {-# LANGUAGE TypeOperators          #-}+{-# LANGUAGE UndecidableInstances   #-}  module Data.Type.Util (     runzipWith