Skip to content

Commit

Permalink
rename a few folders for clarity (#2073)
Browse files Browse the repository at this point in the history
* rename a few folders for clarity

* move abstractmcmc into mcmc

* rename AdvancedSMC to particle_mcmc

* more moves.

* Reorganised some files.  (#2055)

* Moved some files.

* Merge branch 'hg/reorg-algorithms' into hg/reorg

* Merge branch 'hg/reorg-algorithms' into hg/reorg

* remove empty test file

* Update Optimisation.jl
  • Loading branch information
yebai authored Sep 4, 2023
1 parent e22b77c commit c0c8130
Show file tree
Hide file tree
Showing 30 changed files with 24 additions and 24 deletions.
6 changes: 3 additions & 3 deletions src/Turing.jl
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ include("stdlib/RandomMeasures.jl")
include("essential/Essential.jl")
Base.@deprecate_binding Core Essential false
using .Essential
include("inference/Inference.jl") # inference algorithms
include("mcmc/Inference.jl") # inference algorithms
using .Inference
include("variational/VariationalInference.jl")
using .Variational

include("modes/ModeEstimation.jl")
using .ModeEstimation
include("optimisation/Optimisation.jl")
using .Optimisation

###########
# Exports #
Expand Down
6 changes: 3 additions & 3 deletions src/inference/Inference.jl → src/mcmc/Inference.jl
Original file line number Diff line number Diff line change
Expand Up @@ -507,12 +507,12 @@ include("ess.jl")
include("hmc.jl")
include("mh.jl")
include("is.jl")
include("AdvancedSMC.jl")
include("particle_mcmc.jl")
include("gibbs_conditional.jl")
include("gibbs.jl")
include("../contrib/inference/sghmc.jl")
include("sghmc.jl")
include("emcee.jl")
include("../contrib/inference/abstractmcmc.jl")
include("abstractmcmc.jl")

################
# Typing tools #
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module ModeEstimation
module Optimisation

using ..Turing
using Bijectors
Expand Down
Empty file.
2 changes: 1 addition & 1 deletion test/modes/ModeEstimation.jl → test/ext/Optimisation.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@testset "ModeEstimation.jl" begin
@testset "ext/Optimisation.jl" begin
@testset "gdemo" begin
@testset "MLE" begin
Random.seed!(222)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
32 changes: 16 additions & 16 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,10 @@ macro timeit_include(path::AbstractString) :(@timeit TIMEROUTPUT $path include($
end

@testset "samplers (without AD)" begin
@timeit_include("inference/AdvancedSMC.jl")
@timeit_include("inference/emcee.jl")
@timeit_include("inference/ess.jl")
@timeit_include("inference/is.jl")
@timeit_include("mcmc/particle_mcmc.jl")
@timeit_include("mcmc/emcee.jl")
@timeit_include("mcmc/ess.jl")
@timeit_include("mcmc/is.jl")
end

Turing.setrdcache(false)
Expand All @@ -71,24 +71,24 @@ macro timeit_include(path::AbstractString) :(@timeit TIMEROUTPUT $path include($
@info "Testing $(adbackend)"
@testset "inference: $adbackend" begin
@testset "samplers" begin
@timeit_include("inference/gibbs.jl")
@timeit_include("inference/gibbs_conditional.jl")
@timeit_include("inference/hmc.jl")
@timeit_include("inference/Inference.jl")
@timeit_include("contrib/inference/dynamichmc.jl")
@timeit_include("contrib/inference/sghmc.jl")
@timeit_include("contrib/inference/abstractmcmc.jl")
@timeit_include("inference/mh.jl")
@timeit_include("mcmc/gibbs.jl")
@timeit_include("mcmc/gibbs_conditional.jl")
@timeit_include("mcmc/hmc.jl")
@timeit_include("mcmc/Inference.jl")
@timeit_include("mcmc/sghmc.jl")
@timeit_include("mcmc/abstractmcmc.jl")
@timeit_include("mcmc/mh.jl")
@timeit_include("ext/dynamichmc.jl")
end
end

@testset "variational algorithms : $adbackend" begin
@timeit_include("variational/advi.jl")
end

@testset "modes : $adbackend" begin
@timeit_include("modes/ModeEstimation.jl")
@timeit_include("modes/OptimInterface.jl")
@testset "mode estimation : $adbackend" begin
@timeit_include("optimisation/OptimInterface.jl")
@timeit_include("ext/Optimisation.jl")
end

end
Expand All @@ -105,7 +105,7 @@ macro timeit_include(path::AbstractString) :(@timeit TIMEROUTPUT $path include($
end

@testset "utilities" begin
@timeit_include("inference/utilities.jl")
@timeit_include("mcmc/utilities.jl")
end
end

Expand Down

2 comments on commit c0c8130

@yebai
Copy link
Member Author

@yebai yebai commented on c0c8130 Sep 4, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/90812

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.29.0 -m "<description of version>" c0c8130b412f5c0dacb021a8781f40da158dcb62
git push origin v0.29.0

Please sign in to comment.