Skip to content

Commit 00ac8b8

Browse files
authored
Update constructors.jl (#334)
1 parent da87eb4 commit 00ac8b8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/constructors.jl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ abstract type AbstractHMCSampler{T<:Real} <: AbstractMCMC.AbstractSampler end
77
"""
88
HMCSampler
99
10-
A `AbstractMCMC.AbstractSampler` for kernels in AdvancedHMC.jl.
10+
An `AbstractMCMC.AbstractSampler` for kernels in AdvancedHMC.jl.
1111
1212
# Fields
1313
@@ -24,7 +24,7 @@ To access the updated fields use the resulting [`HMCState`](@ref).
2424
struct HMCSampler{T<:Real} <: AbstractHMCSampler{T}
2525
"[`AbstractMCMCKernel`](@ref)."
2626
κ::AbstractMCMCKernel
27-
"[`AbstractMetric`](@ref)."
27+
"Choice of initial metric [`AbstractMetric`](@ref). The metric type will be preserved during adaption."
2828
metric::AbstractMetric
2929
"[`AbstractAdaptor`](@ref)."
3030
adaptor::AbstractAdaptor
@@ -66,7 +66,7 @@ struct NUTS{T<:Real} <: AbstractHMCSampler{T}
6666
init_ϵ::T
6767
"Choice of integrator, specified either using a `Symbol` or [`AbstractIntegrator`](@ref)"
6868
integrator::Union{Symbol,AbstractIntegrator}
69-
"Choice of metric, specified either using a `Symbol` or `AbstractMetric`"
69+
"Choice of initial metric, specified using a `Symbol` or `AbstractMetric`. The metric type will be preserved during adaption."
7070
metric::Union{Symbol,AbstractMetric}
7171
end
7272

@@ -107,7 +107,7 @@ struct HMC{T<:Real} <: AbstractHMCSampler{T}
107107
n_leapfrog::Int
108108
"Choice of integrator, specified either using a `Symbol` or [`AbstractIntegrator`](@ref)"
109109
integrator::Union{Symbol,AbstractIntegrator}
110-
"Choice of metric, specified either using a `Symbol` or `AbstractMetric`"
110+
"Choice of initial metric, specified using a `Symbol` or `AbstractMetric`. The metric type will be preserved during adaption."
111111
metric::Union{Symbol,AbstractMetric}
112112
end
113113

@@ -148,7 +148,7 @@ struct HMCDA{T<:Real} <: AbstractHMCSampler{T}
148148
init_ϵ::T
149149
"Choice of integrator, specified either using a `Symbol` or [`AbstractIntegrator`](@ref)"
150150
integrator::Union{Symbol,AbstractIntegrator}
151-
"Choice of metric, specified either using a `Symbol` or `AbstractMetric`"
151+
"Choice of initial metric, specified using a `Symbol` or `AbstractMetric`. The metric type will be preserved during adaption."
152152
metric::Union{Symbol,AbstractMetric}
153153
end
154154

0 commit comments

Comments
 (0)