Skip to content

Commit

Permalink
Update constructors.jl (#334)
Browse files Browse the repository at this point in the history
  • Loading branch information
yebai authored Jul 26, 2023
1 parent da87eb4 commit 00ac8b8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/constructors.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ abstract type AbstractHMCSampler{T<:Real} <: AbstractMCMC.AbstractSampler end
"""
HMCSampler
A `AbstractMCMC.AbstractSampler` for kernels in AdvancedHMC.jl.
An `AbstractMCMC.AbstractSampler` for kernels in AdvancedHMC.jl.
# Fields
Expand All @@ -24,7 +24,7 @@ To access the updated fields use the resulting [`HMCState`](@ref).
struct HMCSampler{T<:Real} <: AbstractHMCSampler{T}
"[`AbstractMCMCKernel`](@ref)."
κ::AbstractMCMCKernel
"[`AbstractMetric`](@ref)."
"Choice of initial metric [`AbstractMetric`](@ref). The metric type will be preserved during adaption."
metric::AbstractMetric
"[`AbstractAdaptor`](@ref)."
adaptor::AbstractAdaptor
Expand Down Expand Up @@ -66,7 +66,7 @@ struct NUTS{T<:Real} <: AbstractHMCSampler{T}
init_ϵ::T
"Choice of integrator, specified either using a `Symbol` or [`AbstractIntegrator`](@ref)"
integrator::Union{Symbol,AbstractIntegrator}
"Choice of metric, specified either using a `Symbol` or `AbstractMetric`"
"Choice of initial metric, specified using a `Symbol` or `AbstractMetric`. The metric type will be preserved during adaption."
metric::Union{Symbol,AbstractMetric}
end

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

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

Expand Down

0 comments on commit 00ac8b8

Please sign in to comment.