forked from TuringLang/turinglang.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.qmd
190 lines (181 loc) · 5.99 KB
/
index.qmd
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
---
# pagetitle: "Turing"
toc: false
page-layout: full
section-divs: false
hide-description: true
listing:
- id: news
contents:
- "news/posts/*/index.qmd"
sort: date desc
type: grid
grid-columns: 3
categories: false
sort-ui: false
filter-ui: false
fields: [title, description, date]
max-items: 3
image-height: "200"
description: |
Turing.jl is a probabilistic programming language and Bayesian modelling framework for the Julia programming language.
---
```{=html}
<div class="line-graph">
<div class="upperContent">
<h1>Turing.jl</h1>
</div>
<div class="Animation">
<svg width="2300" height="498" viewBox="0 0 2300 498" fill="none" xmlns="http://www.w3.org/2000/svg">
<path class="line line1"
d="M0 487C428.737 486.5 424.61 478.535 493.575 389C523.23 350.5 595.105 213 654.414 213C713.724 213 748.907 290 790.625 344.5C832.343 399 846.416 425.5 908.239 461.5C979.498 502.995 1144.47 487 2300 487"/>
<path class="line line2"
d="M0 485.5C212.654 485.5 378.977 486 565.45 486C751.923 486 763.644 514.469 852.448 292.5C881.709 219.36 911.829 96 950.052 96C988.276 96 1016.27 197.222 1050.19 287.031C1116.15 461.682 1136.64 484.016 1322.06 484.016C1416.28 484.016 2076.04 486.5 2300 486.5"/>
<path class="line line3"
d="M0 486.499C101.007 486.499 207.547 486.499 308.554 486.499C409.56 486.499 483.491 486.499 577.149 486.499C668.492 486.499 699.329 489.286 731.197 460.973C773.165 423.687 790.94 330.837 809.112 262.111C827.285 193.386 858.089 8 890.182 8C922.275 8 944 162.661 971.155 262.111C988.985 327.407 1006.43 426.95 1058.05 469.982C1081.26 489.327 1164.7 486.499 1248.64 486.499C1356.96 486.499 1406.25 486.499 1516.74 486.499C1627.23 486.499 2191.68 487 2300 487"/>
</svg>
</div>
</div>
<span class="display-6 d-block text-center py-5 display-md-5 display-lg-4">
Bayesian inference with probabilistic programming
</span>
<div class="d-flex flex-column align-items-center gap-0 pb-5">
<div class="d-flex flex-row flex-wrap panel-wrapper gap-2">
<a href="https://turinglang.org/docs/tutorials/docs-00-getting-started/" class="button--fill btn">
Tutorials
</a>
<a href="/library" class="button btn">
Ecosystem
</a>
<a href="https://github.com/TuringLang" class="button btn">
View on GitHub
</a>
</div>
</div>
```
```{=html}
<div class="d-flex flex-row flex-wrap panel-wrapper gap-4 section-end-space">
<div class="panel">
<div class="panel-title pb-1">
Intuitive
</div>
Turing models are easy to write and communicate — syntax is close to mathematical notations.
</div>
<div class="panel">
<div class="panel-title pb-1">
General-purpose
</div>
Turing supports models with discrete parameters and stochastic control flow.
</div>
<div class="panel">
<div class="panel-title pb-1">
Modular & composable
</div>
Turing is modular, written entirely in Julia, and is interoperable with the powerful Julia ecosystem.
</div>
</div>
```
<div class="d-flex flex-row flex-wrap panel-wrapper gap-3 pb-2">
<div class="example-text" style="text-align:right;padding:0.5rem;">
<div class="fs-4 fw-bold pb-1">
Hello, World in Turing
</div>
Some text about how easy it is to [get going](https://turinglang.org/docs/tutorials/00-introduction/).
</div>
<div class="example-code">
```julia
@model function coinflip(; N::Int)
# Prior belief about the probability of heads
p ~ Beta(1, 1)
# Heads or tails of a coin are drawn from `N`
# Bernoulli distributions with success rate `p`
y ~ filldist(Bernoulli(p), N)
return y
end;
```
</div>
</div>
<div class="d-flex flex-row-reverse flex-wrap panel-wrapper gap-3 pt-2 section-end-space">
<div class="example-text" style="padding:0.5rem;">
<div class="fs-4 fw-bold pb-1">
Goodbye, World in Turing
</div>
Some text about how easy it is to interface with external packages like AbstractGPs. Learn more about modelling [Gaussian Processes](https://turinglang.org/docs/tutorials/15-gaussian-processes/) with Turing.jl.
</div>
<div class="example-code">
```julia
@model function putting_model(d, n; jitter=1e-4)
v ~ Gamma(2, 1)
l ~ Gamma(4, 1)
f = GP(v * with_lengthscale(SEKernel(), l))
f_latent ~ f(d, jitter)
binomials = Binomial.(n, logistic.(f_latent))
y ~ product_distribution(binomials)
return (fx=f(d, jitter), f_latent=f_latent, y=y)
end
```
</div>
</div>
```{=html}
<h3 class="pb-3">
News
</h3>
```
::: {#news}
:::
[See all news →](news/)
```{=html}
<h3 class="pb-3 section-start-space">
Learn more
</h3>
<div class="list grid quarto-listing-cols-3">
<a class="pseudolisting" href="https://discourse.julialang.org/c/domain/probprog/48">
<div class="card-title h5">
Discourse
</div>
<p class="quarto-grid-item">
Get support from and discuss with other users.
</p>
</a>
<a class="pseudolisting" href="https://turinglang.org/docs/tutorials/docs-00-getting-started/">
<div class="card-title h5">
Documentation
</div>
<p class="quarto-grid-item">
Familiarize yourself with the Turing.jl API.
</p>
</a>
<a class="pseudolisting" href="https://turinglang.org/docs/tutorials/00-introduction/">
<div class="card-title h5">
Official tutorials
</div>
<p class="quarto-grid-item">
Learn to tackle specific problems with Turing.jl.
</p>
</a>
<a class="pseudolisting" href="resources/content/inofficial_tutorials.qmd">
<div class="card-title h5">
Inofficial tutorials
</div>
<p class="quarto-grid-item">
A list of inofficial tutorials using Turing.jl.
</p>
</a>
<a class="pseudolisting" href="resources/content/talks.qmd">
<div class="card-title h5">
Talks
</div>
<p class="quarto-grid-item">
A list of talks on the Turing.jl ecosystem.
</p>
</a>
<a class="pseudolisting" href="">
<div class="card-title h5">
Workshop
</div>
<p class="quarto-grid-item">
Placeholder for Turing-Workshop repo link.
</p>
</a>
</div>
```