-
-
Notifications
You must be signed in to change notification settings - Fork 85
/
hakaru.scroll
48 lines (40 loc) · 1.3 KB
/
hakaru.scroll
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
import ../code/conceptPage.scroll
id hakaru
name hakaru
appeared 2014
tags pl
website http://hakaru-dev.github.io/
conceptDescription 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.
writtenIn haskell markdown xml yaml bourne-shell tex vim-script perl make python css lisp javascript
repoStats
firstCommit 2014
commits 6842
committers 43
files 639
newestCommit 2022
country United States
originCommunity Indiana University && McMaster University
reference https://www.reddit.com/r/ProgrammingLanguages/comments/hejono/hakaru_a_simplytyped_probabilistic_programming/
example
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)
githubRepo https://github.com/hakaru-dev/hakaru
firstCommit 2014
stars 293
forks 31
subscribers 27
created 2014
updated 2022
description A probabilistic programming language
issues 41
domainName hakaru-dev.github.io