Skip to content

Commit 8e08421

Browse files
committed
Deploy preview for PR 582
1 parent f923570 commit 8e08421

File tree

3 files changed

+64
-39
lines changed

3 files changed

+64
-39
lines changed

pr-previews/582/developers/transforms/dynamicppl/index.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -550,6 +550,7 @@ <h2 id="toc-title">Table of Contents</h2>
550550
<li><a href="#case-study-hmc-in-turing.jl" id="toc-case-study-hmc-in-turing.jl" class="nav-link" data-scroll-target="#case-study-hmc-in-turing.jl">Case study: HMC in Turing.jl</a></li>
551551
<li><a href="#a-deeper-dive-into-dynamicppls-internal-machinery" id="toc-a-deeper-dive-into-dynamicppls-internal-machinery" class="nav-link" data-scroll-target="#a-deeper-dive-into-dynamicppls-internal-machinery">A deeper dive into DynamicPPL’s internal machinery</a></li>
552552
<li><a href="#why-do-we-need-to-do-this-at-runtime" id="toc-why-do-we-need-to-do-this-at-runtime" class="nav-link" data-scroll-target="#why-do-we-need-to-do-this-at-runtime">Why do we need to do this at runtime?</a></li>
553+
<li><a href="#conclusion" id="toc-conclusion" class="nav-link" data-scroll-target="#conclusion">Conclusion</a></li>
553554
</ul>
554555
<div class="toc-actions"><ul><li><a href="https://github.com/TuringLang/docs/edit/master/developers/transforms/dynamicppl/index.qmd" target="_blank" class="toc-action"><i class="bi bi-github"></i>Edit this page</a></li><li><a href="https://github.com/TuringLang/docs/issues/new" target="_blank" class="toc-action"><i class="bi empty"></i>Report an issue</a></li></ul></div></nav>
555556
</div>
@@ -1031,6 +1032,17 @@ <h2 class="anchored" data-anchor-id="why-do-we-need-to-do-this-at-runtime">Why d
10311032
</div>
10321033
</div>
10331034
<p>which is the same value as we got above in <code>retval</code>.</p>
1035+
</section>
1036+
<section id="conclusion" class="level2">
1037+
<h2 class="anchored" data-anchor-id="conclusion">Conclusion</h2>
1038+
<p>In this chapter of the Turing docs, we’ve looked at:</p>
1039+
<ul>
1040+
<li>why variables might need to be transformed;</li>
1041+
<li>how this is accounted for mathematically with the Jacobian term;</li>
1042+
<li>the basic API and functionality of Bijectors.jl; and</li>
1043+
<li>the higher-level usage of transforms in DynamicPPL and Turing.</li>
1044+
</ul>
1045+
<p>This will hopefully have equipped you with a better understanding of how constrained variables are handled in the Turing framework. With this knowledge, you should especially find it easier to navigate DynamicPPL’s <code>VarInfo</code> type, which forms the backbone of model evaluation.</p>
10341046

10351047

10361048
</section>

pr-previews/582/search.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1229,6 +1229,19 @@
12291229
"Variable transformations in DynamicPPL"
12301230
]
12311231
},
1232+
{
1233+
"objectID": "developers/transforms/dynamicppl/index.html#conclusion",
1234+
"href": "developers/transforms/dynamicppl/index.html#conclusion",
1235+
"title": "Variable transformations in DynamicPPL",
1236+
"section": "Conclusion",
1237+
"text": "Conclusion\nIn this chapter of the Turing docs, we’ve looked at:\n\nwhy variables might need to be transformed;\nhow this is accounted for mathematically with the Jacobian term;\nthe basic API and functionality of Bijectors.jl; and\nthe higher-level usage of transforms in DynamicPPL and Turing.\n\nThis will hopefully have equipped you with a better understanding of how constrained variables are handled in the Turing framework. With this knowledge, you should especially find it easier to navigate DynamicPPL’s VarInfo type, which forms the backbone of model evaluation.",
1238+
"crumbs": [
1239+
"Get Started",
1240+
"Developers",
1241+
"Variable Transformations",
1242+
"Variable transformations in DynamicPPL"
1243+
]
1244+
},
12321245
{
12331246
"objectID": "tutorials/coin-flipping/index.html",
12341247
"href": "tutorials/coin-flipping/index.html",

pr-previews/582/sitemap.xml

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -2,158 +2,158 @@
22
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
33
<url>
44
<loc>https://turinglang.org/docs/getting-started/index.html</loc>
5-
<lastmod>2025-01-30T11:34:08.393Z</lastmod>
5+
<lastmod>2025-01-30T11:54:06.162Z</lastmod>
66
</url>
77
<url>
88
<loc>https://turinglang.org/docs/usage/mode-estimation/index.html</loc>
9-
<lastmod>2025-01-30T11:34:08.396Z</lastmod>
9+
<lastmod>2025-01-30T11:54:06.165Z</lastmod>
1010
</url>
1111
<url>
1212
<loc>https://turinglang.org/docs/usage/probability-interface/index.html</loc>
13-
<lastmod>2025-01-30T11:34:08.397Z</lastmod>
13+
<lastmod>2025-01-30T11:54:06.165Z</lastmod>
1414
</url>
1515
<url>
1616
<loc>https://turinglang.org/docs/usage/dynamichmc/index.html</loc>
17-
<lastmod>2025-01-30T11:34:08.396Z</lastmod>
17+
<lastmod>2025-01-30T11:54:06.164Z</lastmod>
1818
</url>
1919
<url>
2020
<loc>https://turinglang.org/docs/usage/performance-tips/index.html</loc>
21-
<lastmod>2025-01-30T11:34:08.397Z</lastmod>
21+
<lastmod>2025-01-30T11:54:06.165Z</lastmod>
2222
</url>
2323
<url>
2424
<loc>https://turinglang.org/docs/usage/custom-distribution/index.html</loc>
25-
<lastmod>2025-01-30T11:34:08.396Z</lastmod>
25+
<lastmod>2025-01-30T11:54:06.164Z</lastmod>
2626
</url>
2727
<url>
2828
<loc>https://turinglang.org/docs/tutorials/bayesian-neural-networks/index.html</loc>
29-
<lastmod>2025-01-30T11:34:08.394Z</lastmod>
29+
<lastmod>2025-01-30T11:54:06.163Z</lastmod>
3030
</url>
3131
<url>
3232
<loc>https://turinglang.org/docs/tutorials/bayesian-linear-regression/index.html</loc>
33-
<lastmod>2025-01-30T11:34:08.393Z</lastmod>
33+
<lastmod>2025-01-30T11:54:06.162Z</lastmod>
3434
</url>
3535
<url>
3636
<loc>https://turinglang.org/docs/tutorials/gaussian-mixture-models/index.html</loc>
37-
<lastmod>2025-01-30T11:34:08.394Z</lastmod>
37+
<lastmod>2025-01-30T11:54:06.163Z</lastmod>
3838
</url>
3939
<url>
4040
<loc>https://turinglang.org/docs/tutorials/infinite-mixture-models/index.html</loc>
41-
<lastmod>2025-01-30T11:34:08.395Z</lastmod>
41+
<lastmod>2025-01-30T11:54:06.164Z</lastmod>
4242
</url>
4343
<url>
4444
<loc>https://turinglang.org/docs/tutorials/gaussian-process-latent-variable-models/index.html</loc>
45-
<lastmod>2025-01-30T11:34:08.394Z</lastmod>
45+
<lastmod>2025-01-30T11:54:06.163Z</lastmod>
4646
</url>
4747
<url>
4848
<loc>https://turinglang.org/docs/tutorials/variational-inference/index.html</loc>
49-
<lastmod>2025-01-30T11:34:08.395Z</lastmod>
49+
<lastmod>2025-01-30T11:54:06.164Z</lastmod>
5050
</url>
5151
<url>
5252
<loc>https://turinglang.org/docs/tutorials/bayesian-differential-equations/index.html</loc>
53-
<lastmod>2025-01-30T11:34:08.393Z</lastmod>
53+
<lastmod>2025-01-30T11:54:06.162Z</lastmod>
5454
</url>
5555
<url>
5656
<loc>https://turinglang.org/docs/core-functionality/index.html</loc>
57-
<lastmod>2025-01-30T11:34:08.388Z</lastmod>
57+
<lastmod>2025-01-30T11:54:06.158Z</lastmod>
5858
</url>
5959
<url>
6060
<loc>https://turinglang.org/docs/developers/transforms/distributions/index.html</loc>
61-
<lastmod>2025-01-30T11:34:08.390Z</lastmod>
61+
<lastmod>2025-01-30T11:54:06.159Z</lastmod>
6262
</url>
6363
<url>
6464
<loc>https://turinglang.org/docs/developers/compiler/minituring-compiler/index.html</loc>
65-
<lastmod>2025-01-30T11:34:08.388Z</lastmod>
65+
<lastmod>2025-01-30T11:54:06.158Z</lastmod>
6666
</url>
6767
<url>
6868
<loc>https://turinglang.org/docs/developers/compiler/model-manual/index.html</loc>
69-
<lastmod>2025-01-30T11:34:08.388Z</lastmod>
69+
<lastmod>2025-01-30T11:54:06.158Z</lastmod>
7070
</url>
7171
<url>
7272
<loc>https://turinglang.org/docs/developers/inference/abstractmcmc-turing/index.html</loc>
73-
<lastmod>2025-01-30T11:34:08.389Z</lastmod>
73+
<lastmod>2025-01-30T11:54:06.159Z</lastmod>
7474
</url>
7575
<url>
7676
<loc>https://turinglang.org/docs/developers/inference/abstractmcmc-interface/index.html</loc>
77-
<lastmod>2025-01-30T11:34:08.389Z</lastmod>
77+
<lastmod>2025-01-30T11:54:06.159Z</lastmod>
7878
</url>
7979
<url>
8080
<loc>https://turinglang.org/docs/developers/contributing/index.html</loc>
81-
<lastmod>2025-01-30T11:34:08.389Z</lastmod>
81+
<lastmod>2025-01-30T11:54:06.158Z</lastmod>
8282
</url>
8383
<url>
8484
<loc>https://turinglang.org/docs/developers/inference/variational-inference/index.html</loc>
85-
<lastmod>2025-01-30T11:34:08.389Z</lastmod>
85+
<lastmod>2025-01-30T11:54:06.159Z</lastmod>
8686
</url>
8787
<url>
8888
<loc>https://turinglang.org/docs/developers/inference/implementing-samplers/index.html</loc>
89-
<lastmod>2025-01-30T11:34:08.389Z</lastmod>
89+
<lastmod>2025-01-30T11:54:06.159Z</lastmod>
9090
</url>
9191
<url>
9292
<loc>https://turinglang.org/docs/developers/compiler/design-overview/index.html</loc>
93-
<lastmod>2025-01-30T11:34:08.388Z</lastmod>
93+
<lastmod>2025-01-30T11:54:06.158Z</lastmod>
9494
</url>
9595
<url>
9696
<loc>https://turinglang.org/docs/developers/compiler/minituring-contexts/index.html</loc>
97-
<lastmod>2025-01-30T11:34:08.388Z</lastmod>
97+
<lastmod>2025-01-30T11:54:06.158Z</lastmod>
9898
</url>
9999
<url>
100100
<loc>https://turinglang.org/docs/developers/transforms/bijectors/index.html</loc>
101-
<lastmod>2025-01-30T11:34:08.390Z</lastmod>
101+
<lastmod>2025-01-30T11:54:06.159Z</lastmod>
102102
</url>
103103
<url>
104104
<loc>https://turinglang.org/docs/developers/transforms/dynamicppl/index.html</loc>
105-
<lastmod>2025-01-30T11:34:08.393Z</lastmod>
105+
<lastmod>2025-01-30T11:54:06.162Z</lastmod>
106106
</url>
107107
<url>
108108
<loc>https://turinglang.org/docs/tutorials/coin-flipping/index.html</loc>
109-
<lastmod>2025-01-30T11:34:08.394Z</lastmod>
109+
<lastmod>2025-01-30T11:54:06.163Z</lastmod>
110110
</url>
111111
<url>
112112
<loc>https://turinglang.org/docs/tutorials/bayesian-logistic-regression/index.html</loc>
113-
<lastmod>2025-01-30T11:34:08.393Z</lastmod>
113+
<lastmod>2025-01-30T11:54:06.163Z</lastmod>
114114
</url>
115115
<url>
116116
<loc>https://turinglang.org/docs/tutorials/multinomial-logistic-regression/index.html</loc>
117-
<lastmod>2025-01-30T11:34:08.395Z</lastmod>
117+
<lastmod>2025-01-30T11:54:06.164Z</lastmod>
118118
</url>
119119
<url>
120120
<loc>https://turinglang.org/docs/tutorials/probabilistic-pca/index.html</loc>
121-
<lastmod>2025-01-30T11:34:08.395Z</lastmod>
121+
<lastmod>2025-01-30T11:54:06.164Z</lastmod>
122122
</url>
123123
<url>
124124
<loc>https://turinglang.org/docs/tutorials/bayesian-time-series-analysis/index.html</loc>
125-
<lastmod>2025-01-30T11:34:08.394Z</lastmod>
125+
<lastmod>2025-01-30T11:54:06.163Z</lastmod>
126126
</url>
127127
<url>
128128
<loc>https://turinglang.org/docs/tutorials/gaussian-processes-introduction/index.html</loc>
129-
<lastmod>2025-01-30T11:34:08.394Z</lastmod>
129+
<lastmod>2025-01-30T11:54:06.163Z</lastmod>
130130
</url>
131131
<url>
132132
<loc>https://turinglang.org/docs/tutorials/bayesian-poisson-regression/index.html</loc>
133-
<lastmod>2025-01-30T11:34:08.394Z</lastmod>
133+
<lastmod>2025-01-30T11:54:06.163Z</lastmod>
134134
</url>
135135
<url>
136136
<loc>https://turinglang.org/docs/tutorials/hidden-markov-models/index.html</loc>
137-
<lastmod>2025-01-30T11:34:08.395Z</lastmod>
137+
<lastmod>2025-01-30T11:54:06.164Z</lastmod>
138138
</url>
139139
<url>
140140
<loc>https://turinglang.org/docs/usage/modifying-logprob/index.html</loc>
141-
<lastmod>2025-01-30T11:34:08.396Z</lastmod>
141+
<lastmod>2025-01-30T11:54:06.165Z</lastmod>
142142
</url>
143143
<url>
144144
<loc>https://turinglang.org/docs/usage/generated-quantities/index.html</loc>
145-
<lastmod>2025-01-30T11:34:08.396Z</lastmod>
145+
<lastmod>2025-01-30T11:54:06.165Z</lastmod>
146146
</url>
147147
<url>
148148
<loc>https://turinglang.org/docs/usage/sampler-visualisation/index.html</loc>
149-
<lastmod>2025-01-30T11:34:08.397Z</lastmod>
149+
<lastmod>2025-01-30T11:54:06.165Z</lastmod>
150150
</url>
151151
<url>
152152
<loc>https://turinglang.org/docs/usage/external-samplers/index.html</loc>
153-
<lastmod>2025-01-30T11:34:08.396Z</lastmod>
153+
<lastmod>2025-01-30T11:54:06.165Z</lastmod>
154154
</url>
155155
<url>
156156
<loc>https://turinglang.org/docs/usage/automatic-differentiation/index.html</loc>
157-
<lastmod>2025-01-30T11:34:08.396Z</lastmod>
157+
<lastmod>2025-01-30T11:54:06.164Z</lastmod>
158158
</url>
159159
</urlset>

0 commit comments

Comments
 (0)