Skip to content
Snippets Groups Projects
Commit 5c2e5e36 authored by Pat Alt's avatar Pat Alt
Browse files

uf

parent 3769ea94
No related branches found
No related tags found
1 merge request!7669 initial run including fmnist lenet and new method
...@@ -116,6 +116,11 @@ function run_experiment(exper::Experiment; save_output::Bool=true, only_models:: ...@@ -116,6 +116,11 @@ function run_experiment(exper::Experiment; save_output::Bool=true, only_models::
meta(outcome; save_output=true) meta(outcome; save_output=true)
end end
# Final barrier:
if is_multi_processed(exper)
MPI.Barrier(exper.parallelizer.comm)
end
return outcome return outcome
end end
......
...@@ -27,7 +27,9 @@ function grid_search( ...@@ -27,7 +27,9 @@ function grid_search(
outcomes = Dict{Any,Any}() outcomes = Dict{Any,Any}()
# Search: # Search:
counter = 1
for tuning_params in grid for tuning_params in grid
@info "Running experiment $(counter)/$(length(grid)) with tuning parameters: $(tuning_params)"
outcome = run_experiment( outcome = run_experiment(
counterfactual_data, test_data; counterfactual_data, test_data;
save_output=false, save_output=false,
...@@ -38,6 +40,7 @@ function grid_search( ...@@ -38,6 +40,7 @@ function grid_search(
kwargs..., kwargs...,
) )
outcomes[tuning_params] = outcome outcomes[tuning_params] = outcome
counter += 1
end end
# Save: # Save:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment