hakaru is an actively used programming language created in 2014. Hakaru is a simply-typed probabilistic programming language, designed for easy specification of probabilistic models and inference algorithms. This type of language is useful for the development of machine learning algorithms and stochastic modeling.
- the hakaru website
- hakaru on github
- hakaru first appeared in 2014
- Have a question about hakaru not answered here? Email me and let me know how I can help.
Example code from the web:
def pulls(strength real): normal(strength, 1) def winner(a real, b real): a_pull <~ pulls(a) b_pull <~ pulls(b) return (a_pull > b_pull) alice <~ normal(0,1) bob <~ normal(0,1) carol <~ normal(0,1) match1 <~ winner(alice, bob) match2 <~ winner(bob, carol) match3 <~ winner(alice, carol)
Last updated August 9th, 2020