Skip to content

Commit

Permalink
move EpiProblem and EpiMethod into EpiAwareBase
Browse files Browse the repository at this point in the history
  • Loading branch information
seabbs committed Mar 27, 2024
1 parent 75048aa commit 1eda853
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 19 deletions.
6 changes: 0 additions & 6 deletions EpiAware/src/EpiAware.jl
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,6 @@ include("EpiObsModels/EpiObsModels.jl")
include("EpiInference/EpiInference.jl")
@reexport using .EpiInference

#Export problems
export EpiProblem

#Export inference methods
export EpiMethod

#Export functions
export make_epi_aware, epi_solve

Expand Down
5 changes: 3 additions & 2 deletions EpiAware/src/EpiAwareBase/EpiAwareBase.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,17 @@ using DocStringExtensions, DynamicPPL
export AbstractModel, AbstractEpiModel, AbstractLatentModel, AbstractObservationModel

#Export problems
export AbstractEpiProblem
export AbstractEpiProblem, EpiAwareProblem

#Export inference methods
export AbstractEpiMethod, AbstractEpiOptMethod, AbstractEpiSamplingMethod
export AbstractEpiMethod, AbstractEpiOptMethod, AbstractEpiSamplingMethod, EpiMethod

#Export functions
export generate_latent, generate_latent_infs, generate_observations, _apply_method

include("docstrings.jl")
include("types.jl")
include("functions.jl")
include("EpiAwareProblem.jl")

end
10 changes: 10 additions & 0 deletions EpiAware/src/EpiAwareBase/EpiMethod.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
"""
`EpiMethod` represents a method for performing EpiAware inference and/or generative
modelling, which combines a sequence of optimization steps to pass initialisation
information to a sampler method.
"""
@kwdef struct EpiMethod{
O <: AbstractEpiOptMethod, S <: AbstractEpiSamplingMethod} <: AbstractEpiMethod
pre_sampler_steps::Vector{O}
sampler::S
end
File renamed without changes.
11 changes: 0 additions & 11 deletions EpiAware/src/EpiInference/epiawaremethod.jl
Original file line number Diff line number Diff line change
@@ -1,14 +1,3 @@
"""
`EpiMethod` represents a method for performing EpiAware inference and/or generative
modelling, which combines a sequence of optimization steps to pass initialisation
information to a sampler method.
"""
@kwdef struct EpiMethod{
O <: AbstractEpiOptMethod, S <: AbstractEpiSamplingMethod} <:
AbstractEpiMethod
pre_sampler_steps::Vector{O}
sampler::S
end

"""
Apply steps definded by an `EpiMethod` to a `DynamicPPL.Model` object.
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 1eda853

Please sign in to comment.