Skip to content

Commit e21d3cc

Browse files
committed
clean real/rwmh cache fils
1 parent cbe5c06 commit e21d3cc

File tree

115 files changed

+4
-1574
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

115 files changed

+4
-1574
lines changed

example/real_data_expt/rwmh/plot_script.jl

Lines changed: 0 additions & 215 deletions
This file was deleted.

example/real_data_expt/rwmh/run_lgcp.jl

Lines changed: 0 additions & 27 deletions
This file was deleted.

example/real_data_expt/rwmh/run_rwmh.jl

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -53,25 +53,3 @@ function run_simulation(
5353
end
5454
return df, output
5555
end
56-
57-
58-
# name = "TReg"
59-
# prob, dims = load_prob_with_ref(name)
60-
# kernel = RWMH
61-
# T_check = 5000
62-
# ϵ, neval = find_stepsize(prob, kernel, T_check; target_rej_rate = 0.2, thresh = 0.02, T_check_stab = T_check)
63-
# K = kernel(ϵ, ones(dims))
64-
65-
66-
# rej_rate, err = rejection_rate(prob, K, T_check)
67-
68-
# flowtype = MF.BackwardIRFMixFlow
69-
# # flowtype = MF.IRFMixFlow
70-
# # flowtype = MF.DeterministicMixFlow
71-
# # flowtype = MF.EnsembleIRFFlow
72-
73-
# df = flow_evaluation(1, name, flowtype, kernel, T_check, ϵ; nsample = 1024, nchains = 30)
74-
75-
# df, output = run_simulation(
76-
# 1, "Banana", MF.EnsembleIRFFlow, RWMH, 5000, 30; target_rej_rate = 0.766, nsample = 128
77-
# )

example/real_data_expt/rwmh/run_rwmh.nf

Lines changed: 4 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -8,29 +8,27 @@ params.nrunThreads = 1
88

99
def julia_env = file("${moduleDir}/../../julia_env")
1010
def julia_script = file(moduleDir/'run_rwmh.jl')
11-
// def plot_script = file(moduleDir/'tuning.jl')
1211

1312
def variables = [
14-
target: ["LGCP"],
15-
flowtype: ["BackwardIRFMixFlow", "DeterministicMixFlow"],
13+
target: ["SparseRegression", "TReg", "Sonar", "Brownian", "LGCP"],
14+
flowtype: ["BackwardIRFMixFlow", "DeterministicMixFlow", "EnsembleIRFFlow", "IRFMixFlow"],
1615
kernel: ["MF.RWMH"],
1716
nchains: [30],
1817
flow_length: [5000],
19-
seed: 1..16,
18+
seed: 1..32,
2019
]
2120

2221
workflow {
2322
compiled_env = instantiate(julia_env) | precompile
2423
configs = crossProduct(variables, params.dryRun)
2524
combined = run_simulation(compiled_env, configs) | combine_csvs
26-
// plot(compiled_env, plot_script, combined)
2725
final_deliverable(compiled_env, combined)
2826
}
2927

3028

3129
process run_simulation {
3230
debug false
33-
memory { 5.GB * Math.pow(2, task.attempt-1) }
31+
memory { 10.GB * Math.pow(2, task.attempt-1) }
3432
time { 24.hour * Math.pow(2, task.attempt-1) }
3533
cpus 1
3634
errorStrategy { task.attempt < 3 ? 'retry' : 'ignore' }
@@ -61,24 +59,6 @@ process run_simulation {
6159
"""
6260
}
6361

64-
process plot {
65-
input:
66-
path julia_env
67-
path plot_script
68-
path combined_csvs_folder
69-
output:
70-
path '*.png'
71-
path combined_csvs_folder
72-
publishDir "${deliverables(workflow, params)}", mode: 'copy', overwrite: true
73-
"""
74-
${activate(julia_env,params.nrunThreads)}
75-
76-
include("$plot_script")
77-
tv_plot("$combined_csvs_folder")
78-
"""
79-
}
80-
81-
8262
process final_deliverable {
8363
input:
8464
path julia_env

example/synthetic_tuning/deliverables/elbo_hmc_all/runName.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

example/synthetic_tuning/deliverables/elbo_rwmh_fastflow/runName.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.

example/synthetic_tuning/deliverables/elbo_rwmh_slow/runName.txt

Lines changed: 0 additions & 1 deletion
This file was deleted.
-235 KB
Binary file not shown.
Binary file not shown.
-245 KB
Binary file not shown.

0 commit comments

Comments
 (0)