Skip to content

Commit ebf8bf3

Browse files
committed
Manually specify AbstractMCMC exports
1 parent aab278c commit ebf8bf3

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

Diff for: docs/make.jl

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ using DocumenterInterLinks
99

1010
links = InterLinks(
1111
"DynamicPPL" => "https://turinglang.org/DynamicPPL.jl/stable/objects.inv",
12+
"AbstractMCMC" => "https://turinglang.org/AbstractMCMC.jl/stable/objects.inv",
1213
"AbstractPPL" => "https://turinglang.org/AbstractPPL.jl/dev/objects.inv",
1314
"ADTypes" => "https://sciml.github.io/ADTypes.jl/stable/objects.inv",
1415
"AdvancedVI" => "https://turinglang.org/AdvancedVI.jl/v0.2.8/objects.inv",

Diff for: docs/src/api.md

+6-3
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,12 @@ even though [`Prior()`](@ref) is actually defined in the `Turing.Inference` modu
4343

4444
### Inference
4545

46-
| Exported symbol | Documentation | Description |
47-
|:--------------- |:------------------------------------------------------------------------------------------------ |:------------------- |
48-
| `sample` | [`StatsBase.sample`](https://turinglang.org/AbstractMCMC.jl/stable/api/#Sampling-a-single-chain) | Sample from a model |
46+
| Exported symbol | Documentation | Description |
47+
| :--------------- | :------------------------------------------------------------------------------------------------ | :------------------- |
48+
| `sample` | [`StatsBase.sample`](https://turinglang.org/AbstractMCMC.jl/stable/api/#Sampling-a-single-chain) | Sample from a model |
49+
| `MCMCThreads` | [`AbstractMCMC.MCMCThreads`](@extref) | Run MCMC using multiple threads |
50+
| `MCMCDistributed` | [`AbstractMCMC.MCMCDistributed`](@extref) | Run MCMC using multiple processes |
51+
| `MCMCSerial` | [`AbstractMCMC.MCMCSerial`](@extref) | Run MCMC using without parallelism |
4952

5053
### Samplers
5154

Diff for: src/Turing.jl

+5-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ using Reexport, ForwardDiff
44
using DistributionsAD, Bijectors, StatsFuns, SpecialFunctions
55
using Statistics, LinearAlgebra
66
using Libtask
7-
@reexport using Distributions, MCMCChains, AbstractMCMC
7+
@reexport using Distributions, MCMCChains
88
using Compat: pkgversion
99

1010
using AdvancedVI: AdvancedVI
@@ -15,6 +15,7 @@ using NamedArrays: NamedArrays
1515
using Accessors: Accessors
1616
using StatsAPI: StatsAPI
1717
using StatsBase: StatsBase
18+
using AbstractMCMC
1819

1920
using Accessors: Accessors
2021

@@ -136,6 +137,9 @@ export
136137
ADVI,
137138
# AbstractMCMC
138139
sample,
140+
MCMCThreads,
141+
MCMCDistributed,
142+
MCMCSerial,
139143
# ADTypes
140144
AutoForwardDiff,
141145
AutoReverseDiff,

0 commit comments

Comments
 (0)