From 544f70d6933633a2649b81499ef9874e247bfcde Mon Sep 17 00:00:00 2001 From: Mahmoud Bentriou <moud@MacBook-Pro-de-Mahmoud.local> Date: Wed, 8 Mar 2023 11:39:30 +0100 Subject: [PATCH] Add Random Forest ABC model choice tests. All tests passed locally. --- Project.toml | 1 + test/abc_model_choice/toy_example.jl | 1 + test/run_abc_model_choice.jl | 8 ++++++++ test/runtests.jl | 1 + 4 files changed, 11 insertions(+) create mode 100755 test/run_abc_model_choice.jl diff --git a/Project.toml b/Project.toml index f2fe391..2dc340e 100644 --- a/Project.toml +++ b/Project.toml @@ -23,6 +23,7 @@ QuadGK = "1fd47b50-473d-5c70-9696-f719f8f3bcdc" Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c" ScikitLearn = "3646fa90-6ef7-5e7e-9f22-8aca16db6324" SharedArrays = "1a1011a3-84de-559e-8e89-a11a2f7dc383" +SpecialFunctions = "276daf66-3868-5448-9aa4-cd146d93841b" StaticArrays = "90137ffa-7385-5640-81b9-e52037218182" Statistics = "10745b16-79ce-11e8-11f9-7d13ad32a3b2" StatsBase = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91" diff --git a/test/abc_model_choice/toy_example.jl b/test/abc_model_choice/toy_example.jl index ec7382e..c7f8f70 100644 --- a/test/abc_model_choice/toy_example.jl +++ b/test/abc_model_choice/toy_example.jl @@ -1,4 +1,5 @@ +using Distributed @everywhere begin using Distributions using MarkovProcesses diff --git a/test/run_abc_model_choice.jl b/test/run_abc_model_choice.jl new file mode 100755 index 0000000..222ff7b --- /dev/null +++ b/test/run_abc_model_choice.jl @@ -0,0 +1,8 @@ + +using Test + +@testset "ABC model choice tests" begin + @test include("abc_model_choice/toy_example.jl") + @test include("abc_model_choice/toy_example_ma.jl") +end + diff --git a/test/runtests.jl b/test/runtests.jl index 6fe2641..32faa2d 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -8,4 +8,5 @@ include("run_simulation.jl") include("run_dist_lp.jl") include("run_automata.jl") include("run_abc_smc.jl") +include("run_abc_model_choice.jl") -- GitLab