File tree Expand file tree Collapse file tree 3 files changed +12
-9
lines changed Expand file tree Collapse file tree 3 files changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ AbstractMCMC.sample(
28
28
::AbstractRNG,
29
29
::AbstractMCMC.AbstractModel,
30
30
::AbstractMCMC.AbstractSampler,
31
- ::AbstractMCMC.AbstractMCMCParallel ,
31
+ ::AbstractMCMC.AbstractMCMCEnsemble ,
32
32
::Integer,
33
33
::Integer,
34
34
)
Original file line number Diff line number Diff line change @@ -48,36 +48,39 @@ An `AbstractModel` represents a generic model type that can be used to perform i
48
48
abstract type AbstractModel end
49
49
50
50
"""
51
- AbstractMCMCParallel
51
+ AbstractMCMCEnsemble
52
52
53
- An `AbstractMCMCParallel ` algorithm represents a specific algorithm for sampling MCMC chains
53
+ An `AbstractMCMCEnsemble ` algorithm represents a specific algorithm for sampling MCMC chains
54
54
in parallel.
55
55
"""
56
- abstract type AbstractMCMCParallel end
56
+ abstract type AbstractMCMCEnsemble end
57
+
58
+ # Deprecate the old name AbstractMCMCParallel in favor of AbstractMCMCEnsemble
59
+ Base. @deprecate_binding AbstractMCMCParallel AbstractMCMCEnsemble false
57
60
58
61
"""
59
62
MCMCThreads
60
63
61
64
The `MCMCThreads` algorithm allows users to sample MCMC chains in parallel using multiple
62
65
threads.
63
66
"""
64
- struct MCMCThreads <: AbstractMCMCParallel end
67
+ struct MCMCThreads <: AbstractMCMCEnsemble end
65
68
66
69
"""
67
70
MCMCDistributed
68
71
69
72
The `MCMCDistributed` algorithm allows users to sample MCMC chains in parallel using multiple
70
73
processes.
71
74
"""
72
- struct MCMCDistributed <: AbstractMCMCParallel end
75
+ struct MCMCDistributed <: AbstractMCMCEnsemble end
73
76
74
77
75
78
"""
76
79
MCMCSerial
77
80
78
81
The `MCMCSerial` algorithm allows users to sample serially, with no thread or process parallelism.
79
82
"""
80
- struct MCMCSerial <: AbstractMCMCParallel end
83
+ struct MCMCSerial <: AbstractMCMCEnsemble end
81
84
82
85
include (" samplingstats.jl" )
83
86
include (" logging.jl" )
Original file line number Diff line number Diff line change 61
61
function StatsBase. sample (
62
62
model:: AbstractModel ,
63
63
sampler:: AbstractSampler ,
64
- parallel:: AbstractMCMCParallel ,
64
+ parallel:: AbstractMCMCEnsemble ,
65
65
N:: Integer ,
66
66
nchains:: Integer ;
67
67
kwargs...
@@ -80,7 +80,7 @@ function StatsBase.sample(
80
80
rng:: Random.AbstractRNG ,
81
81
model:: AbstractModel ,
82
82
sampler:: AbstractSampler ,
83
- parallel:: AbstractMCMCParallel ,
83
+ parallel:: AbstractMCMCEnsemble ,
84
84
N:: Integer ,
85
85
nchains:: Integer ;
86
86
kwargs...
You can’t perform that action at this time.
0 commit comments