Skip to content

Commit b0445a7

Browse files
committed
Remove view() in Bayesian NN doc, see chalk-lab/Mooncake.jl#423
1 parent 78730de commit b0445a7

File tree

2 files changed

+82
-73
lines changed

2 files changed

+82
-73
lines changed

Manifest.toml

Lines changed: 79 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,10 @@ version = "0.6.4"
101101
OrdinaryDiffEq = "1dea7af3-3e70-54e6-95c3-0bf5283fa5ed"
102102

103103
[[deps.AdvancedMH]]
104-
deps = ["AbstractMCMC", "Distributions", "FillArrays", "LinearAlgebra", "LogDensityProblems", "Random", "Requires"]
105-
git-tree-sha1 = "b5f8159bffa2e6af9e080c11c4e6da8c5b05f079"
104+
deps = ["AbstractMCMC", "Distributions", "DocStringExtensions", "FillArrays", "LinearAlgebra", "LogDensityProblems", "Random", "Requires"]
105+
git-tree-sha1 = "6e3d18037861bf220ed77f1a2c5f24a21a68d4b7"
106106
uuid = "5b7e9947-ddc0-4b3f-9b55-0d8042f74170"
107-
version = "0.8.4"
107+
version = "0.8.5"
108108
weakdeps = ["DiffResults", "ForwardDiff", "MCMCChains", "StructArrays"]
109109

110110
[deps.AdvancedMH.extensions]
@@ -170,9 +170,9 @@ version = "3.5.1+1"
170170

171171
[[deps.ArrayInterface]]
172172
deps = ["Adapt", "LinearAlgebra"]
173-
git-tree-sha1 = "d5140b60b87473df18cf4fe66382b7c3596df047"
173+
git-tree-sha1 = "017fcb757f8e921fb44ee063a7aafe5f89b86dd1"
174174
uuid = "4fba245c-0d91-5ea0-9b3e-6abc04ee57a9"
175-
version = "7.17.1"
175+
version = "7.18.0"
176176

177177
[deps.ArrayInterface.extensions]
178178
ArrayInterfaceBandedMatricesExt = "BandedMatrices"
@@ -216,9 +216,9 @@ version = "1.11.0"
216216

217217
[[deps.Atomix]]
218218
deps = ["UnsafeAtomics"]
219-
git-tree-sha1 = "14e254ef74e44cd6ed27fbb751d4e1f9bbf085cc"
219+
git-tree-sha1 = "c3b238aa28c1bebd4b5ea4988bebf27e9a01b72b"
220220
uuid = "a9b6321e-bd34-4604-b9c9-b65b8de01458"
221-
version = "1.0.0"
221+
version = "1.0.1"
222222

223223
[deps.Atomix.extensions]
224224
AtomixCUDAExt = "CUDA"
@@ -547,9 +547,9 @@ version = "0.2.3"
547547

548548
[[deps.ConcurrentUtilities]]
549549
deps = ["Serialization", "Sockets"]
550-
git-tree-sha1 = "ea32b83ca4fefa1768dc84e504cc0a94fb1ab8d1"
550+
git-tree-sha1 = "f36e5e8fdffcb5646ea5da81495a5a7566005127"
551551
uuid = "f0e56b4a-5159-44fe-b623-3e5288b988bb"
552-
version = "2.4.2"
552+
version = "2.4.3"
553553

554554
[[deps.ConsoleProgressMonitor]]
555555
deps = ["Logging", "ProgressMeter"]
@@ -799,9 +799,9 @@ version = "1.11.0"
799799

800800
[[deps.Distributions]]
801801
deps = ["AliasTables", "FillArrays", "LinearAlgebra", "PDMats", "Printf", "QuadGK", "Random", "SpecialFunctions", "Statistics", "StatsAPI", "StatsBase", "StatsFuns"]
802-
git-tree-sha1 = "3101c32aab536e7a27b1763c0797dba151b899ad"
802+
git-tree-sha1 = "9d9e93d19c912ee6f0f3543af0d8839079dbd0d7"
803803
uuid = "31c24e10-a181-5473-b8eb-7969acd0382f"
804-
version = "0.25.113"
804+
version = "0.25.114"
805805
weakdeps = ["ChainRulesCore", "DensityInterface", "Test"]
806806

807807
[deps.Distributions.extensions]
@@ -841,19 +841,28 @@ version = "3.4.7"
841841

842842
[[deps.DynamicPPL]]
843843
deps = ["ADTypes", "AbstractMCMC", "AbstractPPL", "Accessors", "BangBang", "Bijectors", "Compat", "ConstructionBase", "Distributions", "DocStringExtensions", "InteractiveUtils", "LinearAlgebra", "LogDensityProblems", "LogDensityProblemsAD", "MacroTools", "OrderedCollections", "Random", "Requires", "Test"]
844-
git-tree-sha1 = "8f40d84c88e280eae51320c453205063244ac3ad"
844+
git-tree-sha1 = "6ca044778593afd41390c36ca7b3617abdd8fb80"
845845
uuid = "366bfd00-2699-11ea-058f-f148b4cae6d8"
846-
version = "0.31.2"
847-
weakdeps = ["ChainRulesCore", "EnzymeCore", "ForwardDiff", "MCMCChains", "ReverseDiff", "ZygoteRules"]
846+
version = "0.31.5"
848847

849848
[deps.DynamicPPL.extensions]
850849
DynamicPPLChainRulesCoreExt = ["ChainRulesCore"]
851850
DynamicPPLEnzymeCoreExt = ["EnzymeCore"]
852851
DynamicPPLForwardDiffExt = ["ForwardDiff"]
852+
DynamicPPLJETExt = ["JET"]
853853
DynamicPPLMCMCChainsExt = ["MCMCChains"]
854-
DynamicPPLReverseDiffExt = ["ReverseDiff"]
854+
DynamicPPLMooncakeExt = ["Mooncake"]
855855
DynamicPPLZygoteRulesExt = ["ZygoteRules"]
856856

857+
[deps.DynamicPPL.weakdeps]
858+
ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"
859+
EnzymeCore = "f151be2c-9106-41f4-ab19-57ee4f262869"
860+
ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"
861+
JET = "c3a54625-cd67-489e-a8e7-0a5a0ff4e31b"
862+
MCMCChains = "c7f686f2-ff18-58e9-bc7b-31028e88f75d"
863+
Mooncake = "da2b9cff-9c12-43a0-ae48-6db2b0edb7d6"
864+
ZygoteRules = "700de1a5-db45-46bc-99cf-38207098b444"
865+
857866
[[deps.EllipticalSliceSampling]]
858867
deps = ["AbstractMCMC", "ArrayInterface", "Distributions", "Random", "Statistics"]
859868
git-tree-sha1 = "e611b7fdfbfb5b18d5e98776c30daede41b44542"
@@ -867,9 +876,9 @@ version = "1.0.4"
867876

868877
[[deps.Enzyme]]
869878
deps = ["CEnum", "EnzymeCore", "Enzyme_jll", "GPUCompiler", "LLVM", "Libdl", "LinearAlgebra", "ObjectFile", "PrecompileTools", "Preferences", "Printf", "Random", "SparseArrays"]
870-
git-tree-sha1 = "dcc4b7ae3aa2d0c0a4810fed2ff321d484c8a756"
879+
git-tree-sha1 = "b4694d729af37db8111692b2b7f04da131a38f32"
871880
uuid = "7da242da-08ed-463a-9acd-ee780be4f1d9"
872-
version = "0.13.20"
881+
version = "0.13.22"
873882

874883
[deps.Enzyme.extensions]
875884
EnzymeBFloat16sExt = "BFloat16s"
@@ -1121,9 +1130,9 @@ version = "0.2.10"
11211130

11221131
[[deps.Fontconfig_jll]]
11231132
deps = ["Artifacts", "Bzip2_jll", "Expat_jll", "FreeType2_jll", "JLLWrappers", "Libdl", "Libuuid_jll", "Zlib_jll"]
1124-
git-tree-sha1 = "db16beca600632c95fc8aca29890d83788dd8b23"
1133+
git-tree-sha1 = "21fac3c77d7b5a9fc03b0ec503aa1a6392c34d2b"
11251134
uuid = "a3f928ae-7b40-5064-980b-68af3947d34b"
1126-
version = "2.13.96+0"
1135+
version = "2.15.0+0"
11271136

11281137
[[deps.Format]]
11291138
git-tree-sha1 = "9c68794ef81b08086aeb32eeaf33531668d5f5fc"
@@ -1277,15 +1286,15 @@ version = "1.14.2+1"
12771286

12781287
[[deps.HTTP]]
12791288
deps = ["Base64", "CodecZlib", "ConcurrentUtilities", "Dates", "ExceptionUnwrapping", "Logging", "LoggingExtras", "MbedTLS", "NetworkOptions", "OpenSSL", "PrecompileTools", "Random", "SimpleBufferStream", "Sockets", "URIs", "UUIDs"]
1280-
git-tree-sha1 = "6c22309e9a356ac1ebc5c8a217045f9bae6f8d9a"
1289+
git-tree-sha1 = "627fcacdb7cb51dc67f557e1598cdffe4dda386d"
12811290
uuid = "cd3eb016-35fb-5094-929b-558a96fad6f3"
1282-
version = "1.10.13"
1291+
version = "1.10.14"
12831292

12841293
[[deps.HarfBuzz_jll]]
12851294
deps = ["Artifacts", "Cairo_jll", "Fontconfig_jll", "FreeType2_jll", "Glib_jll", "Graphite2_jll", "JLLWrappers", "Libdl", "Libffi_jll"]
1286-
git-tree-sha1 = "401e4f3f30f43af2c8478fc008da50096ea5240f"
1295+
git-tree-sha1 = "55c53be97790242c29031e5cd45e8ac296dadda3"
12871296
uuid = "2e76f6c2-a576-52d4-95c1-20adfe4de566"
1288-
version = "8.3.1+0"
1297+
version = "8.5.0+0"
12891298

12901299
[[deps.HostCPUFeatures]]
12911300
deps = ["BitTwiddlingConvenienceFunctions", "IfElse", "Libdl", "Static"]
@@ -1398,9 +1407,9 @@ weakdeps = ["Dates", "Test"]
13981407
InverseFunctionsTestExt = "Test"
13991408

14001409
[[deps.InvertedIndices]]
1401-
git-tree-sha1 = "0dc7b50b8d436461be01300fd8cd45aa0274b038"
1410+
git-tree-sha1 = "6da3c4316095de0f5ee2ebd875df8721e7e0bdbe"
14021411
uuid = "41ab1584-1d38-5bbf-9106-f11c6c58b48f"
1403-
version = "1.3.0"
1412+
version = "1.3.1"
14041413

14051414
[[deps.IrrationalConstants]]
14061415
git-tree-sha1 = "630b497eafcc20001bba38a4651b327dcfc491d2"
@@ -1461,10 +1470,10 @@ uuid = "ef3ab10e-7fda-4108-b977-705223b18434"
14611470
version = "0.6.0"
14621471

14631472
[[deps.KernelAbstractions]]
1464-
deps = ["Adapt", "Atomix", "InteractiveUtils", "MacroTools", "PrecompileTools", "Requires", "StaticArrays", "UUIDs", "UnsafeAtomics", "UnsafeAtomicsLLVM"]
1465-
git-tree-sha1 = "27044736be7c5727d35fc4318d7949dee33c37b4"
1473+
deps = ["Adapt", "Atomix", "InteractiveUtils", "MacroTools", "PrecompileTools", "Requires", "StaticArrays", "UUIDs"]
1474+
git-tree-sha1 = "b9a838cd3028785ac23822cded5126b3da394d1a"
14661475
uuid = "63c18a36-062a-441e-b654-da1e3ab1ce7c"
1467-
version = "0.9.30"
1476+
version = "0.9.31"
14681477
weakdeps = ["EnzymeCore", "LinearAlgebra", "SparseArrays"]
14691478

14701479
[deps.KernelAbstractions.extensions]
@@ -1582,9 +1591,9 @@ version = "0.1.17"
15821591

15831592
[[deps.LazyArrays]]
15841593
deps = ["ArrayLayouts", "FillArrays", "LinearAlgebra", "MacroTools", "SparseArrays"]
1585-
git-tree-sha1 = "7a244220c6f22ddb5948acaac203ffb5d2283b0c"
1594+
git-tree-sha1 = "f289bee714e11708df257c57514585863aa02b33"
15861595
uuid = "5078a376-72f3-5289-bfd5-ec5146d43c02"
1587-
version = "2.3.0"
1596+
version = "2.3.1"
15881597

15891598
[deps.LazyArrays.extensions]
15901599
LazyArraysBandedMatricesExt = "BandedMatrices"
@@ -1803,9 +1812,9 @@ version = "1.13.0"
18031812

18041813
[[deps.LogExpFunctions]]
18051814
deps = ["DocStringExtensions", "IrrationalConstants", "LinearAlgebra"]
1806-
git-tree-sha1 = "a2d09619db4e765091ee5c6ffe8872849de0feea"
1815+
git-tree-sha1 = "13ca9e2586b89836fd20cccf56e57e2b9ae7f38f"
18071816
uuid = "2ab3a3ac-af41-5b50-aa03-7779005ae688"
1808-
version = "0.3.28"
1817+
version = "0.3.29"
18091818
weakdeps = ["ChainRulesCore", "ChangesOfVariables", "InverseFunctions"]
18101819

18111820
[deps.LogExpFunctions.extensions]
@@ -2150,14 +2159,13 @@ version = "0.8.1"
21502159

21512160
[[deps.Mooncake]]
21522161
deps = ["ADTypes", "ChainRules", "ChainRulesCore", "DiffRules", "DiffTests", "ExprTools", "FunctionWrappers", "Graphs", "InteractiveUtils", "LinearAlgebra", "MistyClosures", "Random", "Setfield", "Test"]
2153-
git-tree-sha1 = "0914d23f446ee9770be16528ee4a3f0bad4a4fb7"
2162+
git-tree-sha1 = "46c0f7c9cbe46232d0f4f2145126bf7b3499ffd0"
21542163
uuid = "da2b9cff-9c12-43a0-ae48-6db2b0edb7d6"
2155-
version = "0.4.58"
2164+
version = "0.4.62"
21562165

21572166
[deps.Mooncake.extensions]
21582167
MooncakeAllocCheckExt = "AllocCheck"
21592168
MooncakeCUDAExt = "CUDA"
2160-
MooncakeDynamicPPLExt = "DynamicPPL"
21612169
MooncakeJETExt = "JET"
21622170
MooncakeLuxLibExt = "LuxLib"
21632171
MooncakeLuxLibSLEEFPiratesExtension = ["LuxLib", "SLEEFPirates"]
@@ -2167,7 +2175,6 @@ version = "0.4.58"
21672175
[deps.Mooncake.weakdeps]
21682176
AllocCheck = "9b6a8646-10ed-4001-bbdc-1d2f46dfbb1a"
21692177
CUDA = "052768ef-5323-5732-b1bb-66c8b64840ba"
2170-
DynamicPPL = "366bfd00-2699-11ea-058f-f148b4cae6d8"
21712178
JET = "c3a54625-cd67-489e-a8e7-0a5a0ff4e31b"
21722179
LuxLib = "82251201-b29d-42c6-8e01-566dec8acb11"
21732180
NNlib = "872c559c-99b0-510c-b3b7-b6c96a88d5cd"
@@ -2668,9 +2675,9 @@ version = "0.11.31"
26682675

26692676
[[deps.PSIS]]
26702677
deps = ["LinearAlgebra", "LogExpFunctions", "Printf", "RecipesBase", "Statistics"]
2671-
git-tree-sha1 = "08598dfcf5dd14db4425641abfc301b817b921f0"
2678+
git-tree-sha1 = "e5433b4c59636f5e8fcb275edcd8e8017dee3fe2"
26722679
uuid = "ce719bf2-d5d0-4fb9-925d-10a81b42ad04"
2673-
version = "0.9.6"
2680+
version = "0.9.7"
26742681

26752682
[[deps.PackageExtensionCompat]]
26762683
git-tree-sha1 = "fb28e33b8a95c4cee25ce296c817d89cc2e53518"
@@ -2698,9 +2705,9 @@ version = "2.8.1"
26982705

26992706
[[deps.Pathfinder]]
27002707
deps = ["ADTypes", "Distributions", "Folds", "IrrationalConstants", "LinearAlgebra", "LogDensityProblems", "LogDensityProblemsAD", "Optim", "Optimization", "OptimizationOptimJL", "PDMats", "PSIS", "ProgressLogging", "Random", "Requires", "SciMLBase", "Statistics", "StatsBase", "Transducers", "UnPack"]
2701-
git-tree-sha1 = "8bc27669d8eee4413058edd16c9de4e7d5eb7128"
2708+
git-tree-sha1 = "f9d783f5d5524321d77610baf024eb986aa21810"
27022709
uuid = "b1d3bc72-d0e7-4279-b92f-7fa5d6d2d454"
2703-
version = "0.9.6"
2710+
version = "0.9.7"
27042711
weakdeps = ["Accessors", "DynamicHMC", "DynamicPPL", "MCMCChains", "Turing"]
27052712

27062713
[deps.Pathfinder.extensions]
@@ -3079,9 +3086,9 @@ version = "0.1.1"
30793086

30803087
[[deps.SciMLBase]]
30813088
deps = ["ADTypes", "Accessors", "ArrayInterface", "CommonSolve", "ConstructionBase", "Distributed", "DocStringExtensions", "EnumX", "Expronicon", "FunctionWrappersWrappers", "IteratorInterfaceExtensions", "LinearAlgebra", "Logging", "Markdown", "PrecompileTools", "Preferences", "Printf", "RecipesBase", "RecursiveArrayTools", "Reexport", "RuntimeGeneratedFunctions", "SciMLOperators", "SciMLStructures", "StaticArraysCore", "Statistics", "SymbolicIndexingInterface"]
3082-
git-tree-sha1 = "899468ac3c2fa6b87151cb3fa29367329017d365"
3089+
git-tree-sha1 = "213408a448e27170e4fca428838b8d11c5bbf1ab"
30833090
uuid = "0bca4576-84f4-4d90-8ffe-ffa030f20462"
3084-
version = "2.66.0"
3091+
version = "2.68.1"
30853092

30863093
[deps.SciMLBase.extensions]
30873094
SciMLBaseChainRulesCoreExt = "ChainRulesCore"
@@ -3121,9 +3128,13 @@ weakdeps = ["SparseArrays", "StaticArraysCore"]
31213128

31223129
[[deps.SciMLSensitivity]]
31233130
deps = ["ADTypes", "Accessors", "Adapt", "ArrayInterface", "ChainRulesCore", "DiffEqBase", "DiffEqCallbacks", "DiffEqNoiseProcess", "Distributions", "Enzyme", "FastBroadcast", "FiniteDiff", "ForwardDiff", "FunctionProperties", "FunctionWrappersWrappers", "Functors", "GPUArraysCore", "LinearAlgebra", "LinearSolve", "Markdown", "PreallocationTools", "QuadGK", "Random", "RandomNumbers", "RecursiveArrayTools", "Reexport", "ReverseDiff", "SciMLBase", "SciMLJacobianOperators", "SciMLOperators", "SciMLStructures", "StaticArrays", "StaticArraysCore", "Statistics", "SymbolicIndexingInterface", "Tracker", "Zygote"]
3124-
git-tree-sha1 = "40a44437d426816aaa73e78da77e9bb931baf980"
3131+
git-tree-sha1 = "9eff93778a5c61244027bfe9c4f016153bbbf156"
31253132
uuid = "1ed8b502-d754-442c-8d5d-10ac956f44a1"
3126-
version = "7.71.2"
3133+
version = "7.72.0"
3134+
weakdeps = ["Mooncake"]
3135+
3136+
[deps.SciMLSensitivity.extensions]
3137+
SciMLSensitivityMooncakeExt = "Mooncake"
31273138

31283139
[[deps.SciMLStructures]]
31293140
deps = ["ArrayInterface"]
@@ -3144,9 +3155,9 @@ version = "1.2.1"
31443155

31453156
[[deps.SentinelArrays]]
31463157
deps = ["Dates", "Random"]
3147-
git-tree-sha1 = "d0553ce4031a081cc42387a9b9c8441b7d99f32d"
3158+
git-tree-sha1 = "712fb0231ee6f9120e005ccd56297abbc053e7e0"
31483159
uuid = "91c51154-3ec4-41a3-a24f-3f23e20d615c"
3149-
version = "1.4.7"
3160+
version = "1.4.8"
31503161

31513162
[[deps.Serialization]]
31523163
uuid = "9e88b42a-f829-5b0c-bbe9-9e923198166b"
@@ -3287,9 +3298,9 @@ version = "0.3.9"
32873298

32883299
[[deps.SpecialFunctions]]
32893300
deps = ["IrrationalConstants", "LogExpFunctions", "OpenLibm_jll", "OpenSpecFun_jll"]
3290-
git-tree-sha1 = "2f5d4697f21388cbe1ff299430dd169ef97d7e14"
3301+
git-tree-sha1 = "64cca0c26b4f31ba18f13f6c12af7c85f478cfde"
32913302
uuid = "276daf66-3868-5448-9aa4-cd146d93841b"
3292-
version = "2.4.0"
3303+
version = "2.5.0"
32933304
weakdeps = ["ChainRulesCore"]
32943305

32953306
[deps.SpecialFunctions.extensions]
@@ -3398,10 +3409,10 @@ uuid = "9672c7b4-1e72-59bd-8a11-6ac3964bc41f"
33983409
version = "2.4.1"
33993410

34003411
[[deps.StochasticDiffEq]]
3401-
deps = ["Adapt", "ArrayInterface", "DataStructures", "DiffEqBase", "DiffEqNoiseProcess", "DocStringExtensions", "FastPower", "FiniteDiff", "ForwardDiff", "JumpProcesses", "LevyArea", "LinearAlgebra", "Logging", "MuladdMacro", "NLsolve", "OrdinaryDiffEq", "Random", "RandomNumbers", "RecursiveArrayTools", "Reexport", "SciMLBase", "SciMLOperators", "SparseArrays", "SparseDiffTools", "StaticArrays", "UnPack"]
3402-
git-tree-sha1 = "2310e4cca114797f09a4ff0a58a81278e690a584"
3412+
deps = ["ADTypes", "Adapt", "ArrayInterface", "DataStructures", "DiffEqBase", "DiffEqNoiseProcess", "DocStringExtensions", "FastPower", "FiniteDiff", "ForwardDiff", "JumpProcesses", "LevyArea", "LinearAlgebra", "Logging", "MuladdMacro", "NLsolve", "OrdinaryDiffEq", "OrdinaryDiffEqCore", "Random", "RandomNumbers", "RecursiveArrayTools", "Reexport", "SciMLBase", "SciMLOperators", "SparseArrays", "SparseDiffTools", "StaticArrays", "UnPack"]
3413+
git-tree-sha1 = "b0a5dce397b3bc5478ee1de3127878daa061db28"
34033414
uuid = "789caeaf-c7a9-5a7d-9973-96adeb23e2a0"
3404-
version = "6.71.1"
3415+
version = "6.72.1"
34053416

34063417
[[deps.StrideArraysCore]]
34073418
deps = ["ArrayInterface", "CloseOpenIntervals", "IfElse", "LayoutPointers", "LinearAlgebra", "ManualMemory", "SIMDTypes", "Static", "StaticArrayInterface", "ThreadingUtilities"]
@@ -3693,15 +3704,13 @@ uuid = "45397f5d-5981-4c77-b2b3-fc36d6e9b728"
36933704
version = "1.6.4"
36943705

36953706
[[deps.UnsafeAtomics]]
3696-
git-tree-sha1 = "6331ac3440856ea1988316b46045303bef658278"
3707+
git-tree-sha1 = "b13c4edda90890e5b04ba24e20a310fbe6f249ff"
36973708
uuid = "013be700-e6cd-48c3-b4a1-df204f14c38f"
3698-
version = "0.2.1"
3709+
version = "0.3.0"
3710+
weakdeps = ["LLVM"]
36993711

3700-
[[deps.UnsafeAtomicsLLVM]]
3701-
deps = ["LLVM", "UnsafeAtomics"]
3702-
git-tree-sha1 = "de4287a6569bcf3a8d6201d387991a8dda25c954"
3703-
uuid = "d80eeb9a-aca5-4d75-85e5-170c8b632249"
3704-
version = "0.2.2"
3712+
[deps.UnsafeAtomics.extensions]
3713+
UnsafeAtomicsLLVM = ["LLVM"]
37053714

37063715
[[deps.Unzip]]
37073716
git-tree-sha1 = "ca0969166a028236229f63514992fc073799bb78"
@@ -3856,22 +3865,22 @@ uuid = "a51aa0fd-4e3c-5386-b890-e753decda492"
38563865
version = "1.7.10+4"
38573866

38583867
[[deps.Xorg_libXinerama_jll]]
3859-
deps = ["Artifacts", "JLLWrappers", "Libdl", "Pkg", "Xorg_libXext_jll"]
3860-
git-tree-sha1 = "26be8b1c342929259317d8b9f7b53bf2bb73b123"
3868+
deps = ["Artifacts", "JLLWrappers", "Libdl", "Xorg_libXext_jll"]
3869+
git-tree-sha1 = "a1a7eaf6c3b5b05cb903e35e8372049b107ac729"
38613870
uuid = "d1454406-59df-5ea1-beac-c340f2130bc3"
3862-
version = "1.1.4+4"
3871+
version = "1.1.5+0"
38633872

38643873
[[deps.Xorg_libXrandr_jll]]
3865-
deps = ["Artifacts", "JLLWrappers", "Libdl", "Pkg", "Xorg_libXext_jll", "Xorg_libXrender_jll"]
3866-
git-tree-sha1 = "34cea83cb726fb58f325887bf0612c6b3fb17631"
3874+
deps = ["Artifacts", "JLLWrappers", "Libdl", "Xorg_libXext_jll", "Xorg_libXrender_jll"]
3875+
git-tree-sha1 = "b6f664b7b2f6a39689d822a6300b14df4668f0f4"
38673876
uuid = "ec84b674-ba8e-5d96-8ba1-2a689ba10484"
3868-
version = "1.5.2+4"
3877+
version = "1.5.4+0"
38693878

38703879
[[deps.Xorg_libXrender_jll]]
38713880
deps = ["Artifacts", "JLLWrappers", "Libdl", "Xorg_libX11_jll"]
3872-
git-tree-sha1 = "47e45cd78224c53109495b3e324df0c37bb61fbe"
3881+
git-tree-sha1 = "a490c6212a0e90d2d55111ac956f7c4fa9c277a6"
38733882
uuid = "ea2f1a96-1ddc-540d-b46f-429655e07cfa"
3874-
version = "0.9.11+0"
3883+
version = "0.9.11+1"
38753884

38763885
[[deps.Xorg_libpthread_stubs_jll]]
38773886
deps = ["Artifacts", "JLLWrappers", "Libdl"]
@@ -3887,9 +3896,9 @@ version = "1.17.0+1"
38873896

38883897
[[deps.Xorg_libxkbfile_jll]]
38893898
deps = ["Artifacts", "JLLWrappers", "Libdl", "Xorg_libX11_jll"]
3890-
git-tree-sha1 = "730eeca102434283c50ccf7d1ecdadf521a765a4"
3899+
git-tree-sha1 = "dbc53e4cf7701c6c7047c51e17d6e64df55dca94"
38913900
uuid = "cc61e674-0454-545c-8b26-ed2c68acab7a"
3892-
version = "1.1.2+0"
3901+
version = "1.1.2+1"
38933902

38943903
[[deps.Xorg_xcb_util_cursor_jll]]
38953904
deps = ["Artifacts", "JLLWrappers", "Libdl", "Xorg_xcb_util_image_jll", "Xorg_xcb_util_jll", "Xorg_xcb_util_renderutil_jll"]
@@ -3929,9 +3938,9 @@ version = "0.4.1+1"
39293938

39303939
[[deps.Xorg_xkbcomp_jll]]
39313940
deps = ["Artifacts", "JLLWrappers", "Libdl", "Xorg_libxkbfile_jll"]
3932-
git-tree-sha1 = "330f955bc41bb8f5270a369c473fc4a5a4e4d3cb"
3941+
git-tree-sha1 = "ab2221d309eda71020cdda67a973aa582aa85d69"
39333942
uuid = "35661453-b289-5fab-8a00-3d9160c6a3a4"
3934-
version = "1.4.6+0"
3943+
version = "1.4.6+1"
39353944

39363945
[[deps.Xorg_xkeyboard_config_jll]]
39373946
deps = ["Artifacts", "JLLWrappers", "Libdl", "Xorg_xkbcomp_jll"]

tutorials/03-bayesian-neural-network/index.qmd

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ function vector_to_parameters(ps_new::AbstractVector, ps::NamedTuple)
169169
@assert length(ps_new) == Lux.parameterlength(ps)
170170
i = 1
171171
function get_ps(x)
172-
z = reshape(view(ps_new, i:(i + length(x) - 1)), size(x))
172+
z = reshape(ps_new[i:(i + length(x) - 1)], size(x))
173173
i += length(x)
174174
return z
175175
end
@@ -207,8 +207,8 @@ setprogress!(false)
207207

208208
```{julia}
209209
# Perform inference.
210-
N = 2_000
211-
ch = sample(bayes_nn(reduce(hcat, xs), ts), NUTS(; adtype=AutoMooncake(; config=nothing)), N);
210+
n_iters = 2_000
211+
ch = sample(bayes_nn(reduce(hcat, xs), ts), NUTS(; adtype=AutoMooncake(; config=nothing)), n_iters);
212212
```
213213

214214
Now we extract the parameter samples from the sampled chain as `θ` (this is of size `5000 x 20` where `5000` is the number of iterations and `20` is the number of parameters).

0 commit comments

Comments
 (0)