hasty-hamiltonian alternatives and similar packages
Based on the "Numeric" category.
Alternatively, view hasty-hamiltonian alternatives based on common mentions on social networks and blogs.
-
numeric-ranges
DSL written in Haskell that provides a set of tools for working with both open and closed numeric intervals. -
simple-units
Haskell library for performing arithmetic with SI units with type-checked dimensional analysis -
approx
The library is created to allow for a easy-to-use reasonable way of emulating approx in Haskell. -
gutenberg-fibonaccis
DISCONTINUED. The first 1001 Fibonacci numbers, retrieved from the Gutenberg Project.
InfluxDB - Purpose built for real-time analytics at any scale.
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of hasty-hamiltonian or a related project?
README
hasty-hamiltonian
Speedy, gradient-based traversal through parameter space.
Exports a mcmc
function that prints a trace to stdout, a chain
function for
collecting results in memory, and a hamiltonian
transition operator that can
be used more generally.
If you don't want to calculate your gradients by hand you can use the handy ad library for automatic differentiation.
import Numeric.AD (grad)
import Numeric.MCMC.Hamiltonian
target :: RealFloat a => [a] -> a
target [x0, x1] = negate ((x0 + 2 * x1 - 7) ^ 2 + (2 * x0 + x1 - 5) ^ 2)
gTarget :: [Double] -> [Double]
gTarget = grad target
booth :: Target [Double]
booth = Target target (Just gTarget)
main :: IO ()
main = withSystemRandom . asGenIO $ mcmc 10000 0.05 20 [0, 0] booth
hasty-hamiltonian is a member of the declarative suite of libraries, containing a bunch of MCMC algorithms that play nicely together.
*Note that all licence references and agreements mentioned in the hasty-hamiltonian README section above
are relevant to that project's source code only.