hmatrix-backprop: hmatrix operations lifted for backprop

[ bsd3, library, math ] [ Propose Tags ] [ Report a vulnerability ]

hmatrix operations lifted for backprop, along with orphan instances.

Meant to act as a drop-in replacement to the API of Numeric.LinearAlgebra.Static. Just change your imports, and your functions are automatically backpropagatable.

See README on Github at https://github.com/mstksg/hmatrix-backprop#readme


[Skip to Readme]

Modules

[Index]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.0.0, 0.1.1.0, 0.1.2.0, 0.1.2.1, 0.1.2.2, 0.1.2.3, 0.1.2.4, 0.1.2.5, 0.1.3.0
Change log CHANGELOG.md
Dependencies backprop (>=0.2), base (>=4.7 && <5), finite-typelits, ghc-typelits-knownnat, ghc-typelits-natnormalise, hmatrix (>=0.18), hmatrix-vector-sized (>=0.1.1), microlens, vector, vector-sized (>=0.6) [details]
License BSD-3-Clause
Copyright (c) Justin Le 2018
Author Justin Le
Maintainer justin@jle.im
Category Math
Home page https://github.com/mstksg/hmatrix-backprop#readme
Bug tracker https://github.com/mstksg/hmatrix-backprop/issues
Source repo head: git clone https://github.com/mstksg/hmatrix-backprop
Uploaded by jle at 2018-05-03T04:28:40Z
Distributions LTSHaskell:0.1.3.0, NixOS:0.1.3.0, Stackage:0.1.3.0
Reverse Dependencies 1 direct, 0 indirect [details]
Downloads 4863 total (54 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2018-05-03 [all 1 reports]

Readme for hmatrix-backprop-0.1.2.1

[back to package description]

hmatrix-backprop

hmatrix-backprop on Hackage Build Status

hmatrix operations lifted for backprop, along with orphan instances of Backprop.

Meant to act as a drop-in replacement to the API of Numeric.LinearAlgebra.Static. Just change your imports, and your functions are automatically backpropagatable. Useful types are all re-exported.

Formulas for gradients come from the following papers:

Some functions are not yet implemented! See module documentation for details. PR's definitely appreciated :)

Tests

Currently numeric tests are implemented as property tests using hedgehog, but it is possible that the answers might differ from the true values by an amount undetectable by property tests.

All functions currently are tested except for the higher-order functions.

They are tested by "nudging" components of inputs and checking if the change in the function outputs match what is expected from the backpropagated gradient.

TODO

  1. Now that new backprop no longer requires Num, we can lift normal hmatrix operations as well.
  2. Statically sized convolutions. Should probably add this to hmatrix instead first, though.