Skip to content

Commit 239291d

Browse files
Update to v0.39 (#612)
* Bump to v0.39 * Update addlogprob exports * Fix more imports * Update Manifest * enable error:true for VI tutorial just so that it builds * Update deps * Disable error=true * add required dependencies, update tutorial * update tutorial * update VI tutorial * fix error * fix typo add references * minor text fixes --------- Co-authored-by: Kyurae Kim <[email protected]>
1 parent 4e95bc8 commit 239291d

File tree

11 files changed

+299
-647
lines changed

11 files changed

+299
-647
lines changed

Manifest.toml

Lines changed: 55 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
julia_version = "1.11.5"
44
manifest_format = "2.0"
5-
project_hash = "93e3f90921e5771e56e7b8d21131b1107faa4765"
5+
project_hash = "5ea45087374f193fc9b541533d3ffc8025f44bcd"
66

77
[[deps.ADTypes]]
88
git-tree-sha1 = "e2478490447631aedba0823d4d7a80b2cc8cdb32"
@@ -127,17 +127,14 @@ weakdeps = ["Libtask"]
127127
AdvancedPSLibtaskExt = "Libtask"
128128

129129
[[deps.AdvancedVI]]
130-
deps = ["ADTypes", "Bijectors", "DiffResults", "Distributions", "DistributionsAD", "DocStringExtensions", "ForwardDiff", "LinearAlgebra", "ProgressMeter", "Random", "Requires", "StatsBase", "StatsFuns", "Tracker"]
131-
git-tree-sha1 = "e913c2794cf9d2db9d36d28f67abd27595101f49"
130+
deps = ["ADTypes", "Accessors", "DiffResults", "DifferentiationInterface", "Distributions", "DocStringExtensions", "FillArrays", "Functors", "LinearAlgebra", "LogDensityProblems", "Optimisers", "ProgressMeter", "Random", "StatsBase"]
131+
git-tree-sha1 = "59c9723a71ed815eafec430d4cafa592b5889b96"
132132
uuid = "b5ca4192-6429-45e5-a2d9-87aec30a685c"
133-
version = "0.2.12"
134-
weakdeps = ["Enzyme", "Flux", "ReverseDiff", "Zygote"]
133+
version = "0.4.1"
134+
weakdeps = ["Bijectors"]
135135

136136
[deps.AdvancedVI.extensions]
137-
AdvancedVIEnzymeExt = ["Enzyme"]
138-
AdvancedVIFluxExt = ["Flux"]
139-
AdvancedVIReverseDiffExt = ["ReverseDiff"]
140-
AdvancedVIZygoteExt = ["Zygote"]
137+
AdvancedVIBijectorsExt = "Bijectors"
141138

142139
[[deps.AliasTables]]
143140
deps = ["PtrArrays", "Random"]
@@ -747,9 +744,9 @@ version = "6.176.0"
747744

748745
[[deps.DiffEqCallbacks]]
749746
deps = ["ConcreteStructs", "DataStructures", "DiffEqBase", "DifferentiationInterface", "Functors", "LinearAlgebra", "Markdown", "RecipesBase", "RecursiveArrayTools", "SciMLBase", "StaticArraysCore"]
750-
git-tree-sha1 = "b1f970a2873a2cf76ce35fb0ed2b755a11b31052"
747+
git-tree-sha1 = "76292e889472e810d40a844b714743c0ffb1c53b"
751748
uuid = "459566f4-90b8-5000-8ac3-15dfb0a30def"
752-
version = "4.1.0"
749+
version = "4.6.0"
753750

754751
[[deps.DiffEqNoiseProcess]]
755752
deps = ["DiffEqBase", "Distributions", "GPUArraysCore", "LinearAlgebra", "Markdown", "Optim", "PoissonRandom", "QuadGK", "Random", "Random123", "RandomNumbers", "RecipesBase", "RecursiveArrayTools", "ResettableStacks", "SciMLBase", "StaticArraysCore", "Statistics"]
@@ -773,12 +770,6 @@ git-tree-sha1 = "23163d55f885173722d1e4cf0f6110cdbaf7e272"
773770
uuid = "b552c78f-8df3-52c6-915a-8e097449b14b"
774771
version = "1.15.1"
775772

776-
[[deps.DiffTests]]
777-
deps = ["LinearAlgebra", "SparseArrays", "Statistics"]
778-
git-tree-sha1 = "b92beb1933df01bf4915d3a05e54c2a0aad312c7"
779-
uuid = "de460e47-3fe3-5279-bb4a-814414816d5d"
780-
version = "0.1.2"
781-
782773
[[deps.DifferentialEquations]]
783774
deps = ["BoundaryValueDiffEq", "DelayDiffEq", "DiffEqBase", "DiffEqCallbacks", "DiffEqNoiseProcess", "JumpProcesses", "LinearAlgebra", "LinearSolve", "NonlinearSolve", "OrdinaryDiffEq", "Random", "RecursiveArrayTools", "Reexport", "SciMLBase", "SteadyStateDiffEq", "StochasticDiffEq", "Sundials"]
784775
git-tree-sha1 = "afdc7dfee475828b4f0286d63ffe66b97d7a3fa7"
@@ -1154,10 +1145,10 @@ uuid = "53c48c17-4a7d-5ca2-90c5-79b7896eea93"
11541145
version = "0.8.5"
11551146

11561147
[[deps.Flux]]
1157-
deps = ["Adapt", "ChainRulesCore", "Compat", "Functors", "LinearAlgebra", "MLDataDevices", "MLUtils", "MacroTools", "NNlib", "OneHotArrays", "Optimisers", "Preferences", "ProgressLogging", "Random", "Reexport", "Setfield", "SparseArrays", "SpecialFunctions", "Statistics", "Zygote"]
1158-
git-tree-sha1 = "df520a0727f843576801a0294f5be1a94be28e23"
1148+
deps = ["Adapt", "ChainRulesCore", "Compat", "EnzymeCore", "Functors", "LinearAlgebra", "MLCore", "MLDataDevices", "MLUtils", "MacroTools", "NNlib", "OneHotArrays", "Optimisers", "Preferences", "ProgressLogging", "Random", "Reexport", "Setfield", "SparseArrays", "SpecialFunctions", "Statistics", "Zygote"]
1149+
git-tree-sha1 = "2c35003ec8dafabdc48549102208b1b15552cb33"
11591150
uuid = "587475ba-b771-5e3f-ad9e-33799f191a9c"
1160-
version = "0.14.25"
1151+
version = "0.16.4"
11611152

11621153
[deps.Flux.extensions]
11631154
FluxAMDGPUExt = "AMDGPU"
@@ -1226,10 +1217,10 @@ uuid = "77dc65aa-8811-40c2-897b-53d922fa7daf"
12261217
version = "0.1.3"
12271218

12281219
[[deps.Functors]]
1229-
deps = ["LinearAlgebra"]
1230-
git-tree-sha1 = "64d8e93700c7a3f28f717d265382d52fac9fa1c1"
1220+
deps = ["Compat", "ConstructionBase", "LinearAlgebra", "Random"]
1221+
git-tree-sha1 = "60a0339f28a233601cb74468032b5c302d5067de"
12311222
uuid = "d9f16b24-f501-4c13-a1f2-28368ffc5196"
1232-
version = "0.4.12"
1223+
version = "0.5.2"
12331224

12341225
[[deps.Future]]
12351226
deps = ["Random"]
@@ -1358,16 +1349,6 @@ weakdeps = ["Distributions"]
13581349
[deps.HiddenMarkovModels.extensions]
13591350
HiddenMarkovModelsDistributionsExt = "Distributions"
13601351

1361-
[[deps.Hwloc]]
1362-
deps = ["CEnum", "Hwloc_jll", "Printf"]
1363-
git-tree-sha1 = "6a3d80f31ff87bc94ab22a7b8ec2f263f9a6a583"
1364-
uuid = "0e44f5e4-bd66-52a0-8798-143a42290a1d"
1365-
version = "3.3.0"
1366-
weakdeps = ["AbstractTrees"]
1367-
1368-
[deps.Hwloc.extensions]
1369-
HwlocTrees = "AbstractTrees"
1370-
13711352
[[deps.Hwloc_jll]]
13721353
deps = ["Artifacts", "JLLWrappers", "Libdl"]
13731354
git-tree-sha1 = "92f65c4d78ce8cdbb6b68daf88889950b0a99d11"
@@ -1513,10 +1494,10 @@ uuid = "b14d175d-62b4-44ba-8fb7-3064adc8c3ec"
15131494
version = "0.2.4"
15141495

15151496
[[deps.JumpProcesses]]
1516-
deps = ["ArrayInterface", "DataStructures", "DiffEqBase", "DocStringExtensions", "FunctionWrappers", "Graphs", "LinearAlgebra", "Markdown", "PoissonRandom", "Random", "RandomNumbers", "RecursiveArrayTools", "Reexport", "SciMLBase", "Setfield", "StaticArrays", "SymbolicIndexingInterface", "UnPack"]
1517-
git-tree-sha1 = "f2bdec5b4580414aee3178c8caa6e46c344c0bbc"
1497+
deps = ["ArrayInterface", "DataStructures", "DiffEqBase", "DiffEqCallbacks", "DocStringExtensions", "FunctionWrappers", "Graphs", "LinearAlgebra", "Markdown", "PoissonRandom", "Random", "RandomNumbers", "RecursiveArrayTools", "Reexport", "SciMLBase", "Setfield", "StaticArrays", "SymbolicIndexingInterface", "UnPack"]
1498+
git-tree-sha1 = "fb7fd516de38db80f50fe15e57d44da2836365e7"
15181499
uuid = "ccbc3e58-028d-4f4c-8cd5-9ae44345cda5"
1519-
version = "9.14.3"
1500+
version = "9.16.0"
15201501
weakdeps = ["FastBroadcast"]
15211502

15221503
[[deps.KernelAbstractions]]
@@ -1885,10 +1866,10 @@ uuid = "e6f89c97-d47a-5376-807f-9c37f3926c36"
18851866
version = "1.1.0"
18861867

18871868
[[deps.Lux]]
1888-
deps = ["ADTypes", "Adapt", "ArgCheck", "ArrayInterface", "ChainRulesCore", "Compat", "ConcreteStructs", "DispatchDoctor", "EnzymeCore", "FastClosures", "ForwardDiff", "Functors", "GPUArraysCore", "LinearAlgebra", "LuxCore", "LuxLib", "MLDataDevices", "MacroTools", "Markdown", "NNlib", "Optimisers", "Preferences", "Random", "Reexport", "SIMDTypes", "Setfield", "Static", "StaticArraysCore", "Statistics", "WeightInitializers"]
1889-
git-tree-sha1 = "39cc335d2601d4b0d74b209f718e7e3641771448"
1869+
deps = ["ADTypes", "Adapt", "ArgCheck", "ArrayInterface", "ChainRulesCore", "Compat", "ConcreteStructs", "DiffResults", "DispatchDoctor", "EnzymeCore", "FastClosures", "ForwardDiff", "Functors", "GPUArraysCore", "LinearAlgebra", "LuxCore", "LuxLib", "MLDataDevices", "MacroTools", "Markdown", "NNlib", "Optimisers", "Preferences", "Random", "Reexport", "SIMDTypes", "Setfield", "Static", "StaticArraysCore", "Statistics", "WeightInitializers"]
1870+
git-tree-sha1 = "4bf87816440bec8e64b610de8724c04a58e65928"
18901871
uuid = "b2108857-7c20-44ae-9111-449ecde12c47"
1891-
version = "1.2.3"
1872+
version = "1.13.4"
18921873

18931874
[deps.Lux.extensions]
18941875
LuxComponentArraysExt = "ComponentArrays"
@@ -1898,7 +1879,7 @@ version = "1.2.3"
18981879
LuxMLUtilsExt = "MLUtils"
18991880
LuxMPIExt = "MPI"
19001881
LuxMPINCCLExt = ["CUDA", "MPI", "NCCL"]
1901-
LuxReactantExt = ["Enzyme", "Reactant"]
1882+
LuxReactantExt = ["Enzyme", "Reactant", "ReactantCore"]
19021883
LuxReverseDiffExt = ["FunctionWrappers", "ReverseDiff"]
19031884
LuxSimpleChainsExt = "SimpleChains"
19041885
LuxTrackerExt = "Tracker"
@@ -1915,28 +1896,30 @@ version = "1.2.3"
19151896
MPI = "da04e1cc-30fd-572f-bb4f-1f8673147195"
19161897
NCCL = "3fe64909-d7a1-4096-9b7d-7a0f12cf0f6b"
19171898
Reactant = "3c362404-f566-11ee-1572-e11a4b42c853"
1899+
ReactantCore = "a3311ec8-5e00-46d5-b541-4f83e724a433"
19181900
ReverseDiff = "37e2e3b7-166d-5795-8a7a-e32c996b4267"
19191901
SimpleChains = "de6bee2f-e2f4-4ec7-b6ed-219cc6f6e9e5"
19201902
Tracker = "9f7883ad-71c0-57eb-9f7f-b5c9e6d3789c"
19211903
Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"
19221904

19231905
[[deps.LuxCore]]
19241906
deps = ["Compat", "DispatchDoctor", "Random"]
1925-
git-tree-sha1 = "9f71aea19be890e429ee21adfeda1e63d01ec610"
1907+
git-tree-sha1 = "48d45736aae190b1b41c1db5242fad955f0eff1d"
19261908
uuid = "bb33d45b-7691-41d6-9220-0943567d0623"
1927-
version = "1.1.0"
1909+
version = "1.2.6"
19281910

19291911
[deps.LuxCore.extensions]
19301912
LuxCoreArrayInterfaceReverseDiffExt = ["ArrayInterface", "ReverseDiff"]
19311913
LuxCoreArrayInterfaceTrackerExt = ["ArrayInterface", "Tracker"]
19321914
LuxCoreChainRulesCoreExt = "ChainRulesCore"
19331915
LuxCoreEnzymeCoreExt = "EnzymeCore"
19341916
LuxCoreFunctorsExt = "Functors"
1935-
LuxCoreMLDataDevicesExt = "MLDataDevices"
1917+
LuxCoreMLDataDevicesExt = ["Adapt", "MLDataDevices"]
19361918
LuxCoreReactantExt = "Reactant"
19371919
LuxCoreSetfieldExt = "Setfield"
19381920

19391921
[deps.LuxCore.weakdeps]
1922+
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"
19401923
ArrayInterface = "4fba245c-0d91-5ea0-9b3e-6abc04ee57a9"
19411924
ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"
19421925
EnzymeCore = "f151be2c-9106-41f4-ab19-57ee4f262869"
@@ -1948,10 +1931,10 @@ version = "1.1.0"
19481931
Tracker = "9f7883ad-71c0-57eb-9f7f-b5c9e6d3789c"
19491932

19501933
[[deps.LuxLib]]
1951-
deps = ["ArrayInterface", "ChainRulesCore", "Compat", "CpuId", "DispatchDoctor", "EnzymeCore", "FastClosures", "ForwardDiff", "Hwloc", "KernelAbstractions", "LinearAlgebra", "LuxCore", "MLDataDevices", "Markdown", "NNlib", "Polyester", "Preferences", "Random", "Reexport", "Static", "StaticArraysCore", "Statistics"]
1952-
git-tree-sha1 = "a9e0f1477ac91623079f7a230f4de46170dc8817"
1934+
deps = ["ArrayInterface", "CPUSummary", "ChainRulesCore", "Compat", "DispatchDoctor", "EnzymeCore", "FastClosures", "ForwardDiff", "Functors", "KernelAbstractions", "LinearAlgebra", "LuxCore", "MLDataDevices", "Markdown", "NNlib", "Polyester", "Preferences", "Random", "Reexport", "Static", "StaticArraysCore", "Statistics"]
1935+
git-tree-sha1 = "b06b83e48cfbfc2ea25ec673537e7eb7e69879e9"
19531936
uuid = "82251201-b29d-42c6-8e01-566dec8acb11"
1954-
version = "1.3.7"
1937+
version = "1.8.0"
19551938

19561939
[deps.LuxLib.extensions]
19571940
LuxLibAppleAccelerateExt = "AppleAccelerate"
@@ -1961,6 +1944,7 @@ version = "1.3.7"
19611944
LuxLibLoopVectorizationExt = "LoopVectorization"
19621945
LuxLibMKLExt = "MKL"
19631946
LuxLibOctavianExt = ["Octavian", "LoopVectorization"]
1947+
LuxLibReactantExt = "Reactant"
19641948
LuxLibReverseDiffExt = "ReverseDiff"
19651949
LuxLibSLEEFPiratesExt = "SLEEFPirates"
19661950
LuxLibTrackerAMDGPUExt = ["AMDGPU", "Tracker"]
@@ -1976,6 +1960,7 @@ version = "1.3.7"
19761960
LoopVectorization = "bdcacae8-1622-11e9-2a5c-532679323890"
19771961
MKL = "33e6dc65-8f57-5167-99aa-e5a354878fb2"
19781962
Octavian = "6fd5a793-0b7e-452c-907f-f8bfe9c57db4"
1963+
Reactant = "3c362404-f566-11ee-1572-e11a4b42c853"
19791964
ReverseDiff = "37e2e3b7-166d-5795-8a7a-e32c996b4267"
19801965
SLEEFPirates = "476501e8-09a2-5ece-8869-fb82de89a1fa"
19811966
Tracker = "9f7883ad-71c0-57eb-9f7f-b5c9e6d3789c"
@@ -2007,15 +1992,16 @@ version = "1.0.0"
20071992

20081993
[[deps.MLDataDevices]]
20091994
deps = ["Adapt", "Compat", "Functors", "Preferences", "Random"]
2010-
git-tree-sha1 = "85b47bc5a8bf0c886286638585df3bec7c9f8269"
1995+
git-tree-sha1 = "a47f08b67298dee5778cf279a9a735ca2d11a890"
20111996
uuid = "7e8f7934-dd98-4c1a-8fe8-92b47a384d40"
2012-
version = "1.5.3"
1997+
version = "1.10.0"
20131998

20141999
[deps.MLDataDevices.extensions]
20152000
MLDataDevicesAMDGPUExt = "AMDGPU"
20162001
MLDataDevicesCUDAExt = "CUDA"
20172002
MLDataDevicesChainRulesCoreExt = "ChainRulesCore"
20182003
MLDataDevicesChainRulesExt = "ChainRules"
2004+
MLDataDevicesComponentArraysExt = "ComponentArrays"
20192005
MLDataDevicesFillArraysExt = "FillArrays"
20202006
MLDataDevicesGPUArraysExt = "GPUArrays"
20212007
MLDataDevicesMLUtilsExt = "MLUtils"
@@ -2035,6 +2021,7 @@ version = "1.5.3"
20352021
CUDA = "052768ef-5323-5732-b1bb-66c8b64840ba"
20362022
ChainRules = "082447d4-558c-5d27-93f4-14fc19e9eca2"
20372023
ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"
2024+
ComponentArrays = "b0b7db55-cfe3-40fc-9ded-d10e2dbeff66"
20382025
FillArrays = "1a297f60-69ca-5386-bcde-b61e274b549b"
20392026
GPUArrays = "0c68f7d7-f131-5f86-a1c3-88cf8149b2d7"
20402027
MLUtils = "f1d291b0-491e-4a28-83b9-f70985020b54"
@@ -2204,14 +2191,15 @@ uuid = "78c3b35d-d492-501b-9361-3d52fe80e533"
22042191
version = "0.8.1"
22052192

22062193
[[deps.Mooncake]]
2207-
deps = ["ADTypes", "ChainRules", "ChainRulesCore", "DiffRules", "DiffTests", "ExprTools", "FunctionWrappers", "GPUArraysCore", "Graphs", "InteractiveUtils", "LinearAlgebra", "MistyClosures", "Random", "Setfield", "Test"]
2208-
git-tree-sha1 = "68c31b62f4957a76aaf379092d13475a62f7658b"
2194+
deps = ["ADTypes", "ChainRules", "ChainRulesCore", "DiffRules", "ExprTools", "FunctionWrappers", "GPUArraysCore", "Graphs", "InteractiveUtils", "LinearAlgebra", "MistyClosures", "Random", "Test"]
2195+
git-tree-sha1 = "e4811fc54aa752d4a9a5cc9bed5cd85b8ab75db0"
22092196
uuid = "da2b9cff-9c12-43a0-ae48-6db2b0edb7d6"
2210-
version = "0.4.104"
2197+
version = "0.4.122"
22112198

22122199
[deps.Mooncake.extensions]
22132200
MooncakeAllocCheckExt = "AllocCheck"
22142201
MooncakeCUDAExt = "CUDA"
2202+
MooncakeFluxExt = "Flux"
22152203
MooncakeJETExt = "JET"
22162204
MooncakeLuxLibExt = "LuxLib"
22172205
MooncakeLuxLibSLEEFPiratesExtension = ["LuxLib", "SLEEFPirates"]
@@ -2221,6 +2209,7 @@ version = "0.4.104"
22212209
[deps.Mooncake.weakdeps]
22222210
AllocCheck = "9b6a8646-10ed-4001-bbdc-1d2f46dfbb1a"
22232211
CUDA = "052768ef-5323-5732-b1bb-66c8b64840ba"
2212+
Flux = "587475ba-b771-5e3f-ad9e-33799f191a9c"
22242213
JET = "c3a54625-cd67-489e-a8e7-0a5a0ff4e31b"
22252214
LuxLib = "82251201-b29d-42c6-8e01-566dec8acb11"
22262215
NNlib = "872c559c-99b0-510c-b3b7-b6c96a88d5cd"
@@ -2488,10 +2477,20 @@ version = "1.13.1"
24882477
MathOptInterface = "b8f27783-ece8-5eb3-8dc8-9495eed66fee"
24892478

24902479
[[deps.Optimisers]]
2491-
deps = ["ChainRulesCore", "Functors", "LinearAlgebra", "Random", "Statistics"]
2492-
git-tree-sha1 = "c9ff5c686240c31eb8570b662dd1f66f4b183116"
2480+
deps = ["ChainRulesCore", "ConstructionBase", "Functors", "LinearAlgebra", "Random", "Statistics"]
2481+
git-tree-sha1 = "131dc319e7c58317e8c6d5170440f6bdaee0a959"
24932482
uuid = "3bd65402-5787-11e9-1adc-39752487f4e2"
2494-
version = "0.3.4"
2483+
version = "0.4.6"
2484+
2485+
[deps.Optimisers.extensions]
2486+
OptimisersAdaptExt = ["Adapt"]
2487+
OptimisersEnzymeCoreExt = "EnzymeCore"
2488+
OptimisersReactantExt = "Reactant"
2489+
2490+
[deps.Optimisers.weakdeps]
2491+
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"
2492+
EnzymeCore = "f151be2c-9106-41f4-ab19-57ee4f262869"
2493+
Reactant = "3c362404-f566-11ee-1572-e11a4b42c853"
24952494

24962495
[[deps.Optimization]]
24972496
deps = ["ADTypes", "ArrayInterface", "ConsoleProgressMonitor", "DocStringExtensions", "LBFGSB", "LinearAlgebra", "Logging", "LoggingExtras", "OptimizationBase", "Printf", "ProgressLogging", "Reexport", "SciMLBase", "SparseArrays", "TerminalLoggers"]
@@ -3670,9 +3669,9 @@ version = "1.6.0"
36703669

36713670
[[deps.Turing]]
36723671
deps = ["ADTypes", "AbstractMCMC", "Accessors", "AdvancedHMC", "AdvancedMH", "AdvancedPS", "AdvancedVI", "BangBang", "Bijectors", "Compat", "DataStructures", "Distributions", "DistributionsAD", "DocStringExtensions", "DynamicPPL", "EllipticalSliceSampling", "ForwardDiff", "Libtask", "LinearAlgebra", "LogDensityProblems", "MCMCChains", "NamedArrays", "Optimization", "OptimizationOptimJL", "OrderedCollections", "Printf", "Random", "Reexport", "SciMLBase", "SpecialFunctions", "Statistics", "StatsAPI", "StatsBase", "StatsFuns"]
3673-
git-tree-sha1 = "e306992e20e271c9834f65fc41972c7f3877c112"
3672+
git-tree-sha1 = "282ca358181f585fbb271eb9301e16b6fe5c80e0"
36743673
uuid = "fce5fe82-541a-59a6-adf8-730c64b5f9a0"
3675-
version = "0.38.6"
3674+
version = "0.39.1"
36763675
weakdeps = ["DynamicHMC", "Optim"]
36773676

36783677
[deps.Turing.extensions]

Project.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ AbstractMCMC = "80f14c24-f653-4e6a-9b94-39d6b0f70001"
55
AbstractPPL = "7a57a42e-76ec-4ea3-a279-07e840d6d9cf"
66
AdvancedHMC = "0bf59076-c3b1-5ca4-86bd-e02cd72cde3d"
77
AdvancedMH = "5b7e9947-ddc0-4b3f-9b55-0d8042f74170"
8+
AdvancedVI = "b5ca4192-6429-45e5-a2d9-87aec30a685c"
89
Bijectors = "76274a88-744f-5084-9051-94815aaf08c4"
910
CSV = "336ed68f-0bac-5ca0-87d4-7b16caf5d00b"
1011
ComponentArrays = "b0b7db55-cfe3-40fc-9ded-d10e2dbeff66"
@@ -13,6 +14,7 @@ DataStructures = "864edb3b-99cc-5e75-8d2d-829cb0a9cfe8"
1314
DifferentialEquations = "0c46a032-eb83-5123-abaf-570d42b7fbaa"
1415
Distributed = "8ba89e20-285c-5b6f-9357-94700520ee1b"
1516
Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f"
17+
DistributionsAD = "ced4e74d-a319-5a8a-b0ac-84af2272839c"
1618
DynamicHMC = "bbc10e6e-7c05-544b-b16e-64fede858acb"
1719
DynamicPPL = "366bfd00-2699-11ea-058f-f148b4cae6d8"
1820
FillArrays = "1a297f60-69ca-5386-bcde-b61e274b549b"
@@ -36,6 +38,7 @@ Memoization = "6fafb56a-5788-4b4e-91ca-c0cea6611c73"
3638
MicroCanonicalHMC = "234d2aa0-2291-45f7-9047-6fa6f316b0a8"
3739
Mooncake = "da2b9cff-9c12-43a0-ae48-6db2b0edb7d6"
3840
NNlib = "872c559c-99b0-510c-b3b7-b6c96a88d5cd"
41+
Optimisers = "3bd65402-5787-11e9-1adc-39752487f4e2"
3942
Optimization = "7f7a1694-90dd-40f0-9382-eb1efda571ba"
4043
OptimizationNLopt = "4e6fcdb7-1186-4e1f-a706-475e75c168bb"
4144
OptimizationOptimJL = "36348300-93cb-4f02-beb5-3c3902f8871e"
@@ -54,4 +57,4 @@ UnPack = "3a884ed6-31ef-47d7-9d2a-63182c4928ed"
5457
Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"
5558

5659
[compat]
57-
Turing = "0.38"
60+
Turing = "0.39"

_quarto.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ website:
3232
text: Team
3333
right:
3434
# Current version
35-
- text: "v0.38"
35+
- text: "v0.39"
3636
menu:
3737
- text: Changelog
3838
href: https://turinglang.org/docs/changelog.html

developers/compiler/minituring-contexts/index.qmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ Of course, using an MCMC algorithm to sample from the prior is unnecessary and s
294294
The use of contexts also goes far beyond just evaluating log probabilities and sampling. Some examples from Turing are
295295

296296
* `FixedContext`, which fixes some variables to given values and removes them completely from the evaluation of any log probabilities. They power the `Turing.fix` and `Turing.unfix` functions.
297-
* `ConditionContext` conditions the model on fixed values for some parameters. They are used by `Turing.condition` and `Turing.uncondition`, i.e. the `model | (parameter=value,)` syntax. The difference between `fix` and `condition` is whether the log probability for the corresponding variable is included in the overall log density.
297+
* `ConditionContext` conditions the model on fixed values for some parameters. They are used by `Turing.condition` and `Turing.decondition`, i.e. the `model | (parameter=value,)` syntax. The difference between `fix` and `condition` is whether the log probability for the corresponding variable is included in the overall log density.
298298

299299
* `PriorExtractorContext` collects information about what the prior distribution of each variable is.
300300
* `PrefixContext` adds prefixes to variable names, allowing models to be used within other models without variable name collisions.

developers/compiler/model-manual/index.qmd

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,26 +36,26 @@ using DynamicPPL
3636
function gdemo2(model, varinfo, context, x)
3737
# Assume s² has an InverseGamma distribution.
3838
s², varinfo = DynamicPPL.tilde_assume!!(
39-
context, InverseGamma(2, 3), Turing.@varname(s²), varinfo
39+
context, InverseGamma(2, 3), @varname(s²), varinfo
4040
)
4141
4242
# Assume m has a Normal distribution.
4343
m, varinfo = DynamicPPL.tilde_assume!!(
44-
context, Normal(0, sqrt(s²)), Turing.@varname(m), varinfo
44+
context, Normal(0, sqrt(s²)), @varname(m), varinfo
4545
)
4646
4747
# Observe each value of x[i] according to a Normal distribution.
4848
for i in eachindex(x)
4949
_retval, varinfo = DynamicPPL.tilde_observe!!(
50-
context, Normal(m, sqrt(s²)), x[i], Turing.@varname(x[i]), varinfo
50+
context, Normal(m, sqrt(s²)), x[i], @varname(x[i]), varinfo
5151
)
5252
end
5353
5454
# The final return statement should comprise both the original return
5555
# value and the updated varinfo.
5656
return nothing, varinfo
5757
end
58-
gdemo2(x) = Turing.Model(gdemo2, (; x))
58+
gdemo2(x) = DynamicPPL.Model(gdemo2, (; x))
5959
6060
# Instantiate a Model object with our data variables.
6161
model2 = gdemo2([1.5, 2.0])

0 commit comments

Comments
 (0)