I hereby claim:
- I am mhuesch on github.
- I am mhueschen (https://keybase.io/mhueschen) on keybase.
- I have a public key ASBlKieWm12UIb1Piiq-yNGoEqcuUwaBxkDhDrLLzsxFCwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
module Main where | |
import Numeric.AD.Newton | |
main = do | |
let n = 500 | |
putStrLn $ "gradientDescent after " ++ show n ++ " iterations" | |
print (gradDesc !! n) | |
putStrLn $ "analytic form" |
After searching unsuccessfully for how to do this, I discovered that there's a Binary instance internal to hmatrix. The following code depends on hmatrix
, binary
, and bytestring
.
These functions are taken from https://wiki.haskell.org/Edit_distance
, but cleaned up so they're copy-paste-able.