Popularity
6.7
Growing
Activity
0.0
Stable
13
6
3

Monthly Downloads: 33
Programming language: Haskell
License: BSD 3-clause "New" or "Revised" License
Tags: Math     Hmatrix    
Latest version: v0.1.3.0

hmatrix-backprop alternatives and similar packages

Based on the "hmatrix" category.
Alternatively, view hmatrix-backprop alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of hmatrix-backprop or a related project?

Add another 'hmatrix' Package

README

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.