Skip to content
Snippets Groups Projects
Commit f81bf2bf authored by pat-alt's avatar pat-alt
Browse files

minor things

parent 04f4e9aa
No related branches found
No related tags found
1 merge request!7669 initial run including fmnist lenet and new method
...@@ -59,11 +59,11 @@ julia experiments/run_experiments.jl -- run-all ...@@ -59,11 +59,11 @@ julia experiments/run_experiments.jl -- run-all
Pre-trained versions of all of our black-box models have been archived as `Pkg` [artifacts](https://pkgdocs.julialang.org/v1/artifacts/) and are used by default. Should you wish to retrain the models as well, simply use the `retrain` flag as follows: Pre-trained versions of all of our black-box models have been archived as `Pkg` [artifacts](https://pkgdocs.julialang.org/v1/artifacts/) and are used by default. Should you wish to retrain the models as well, simply use the `retrain` flag as follows:
```shell ```shell
julia --project=experiments experiments/run_experiments.jl -- retrain dataname=linearly_separable julia --project=experiments experiments/run_experiments.jl -- retrain data=linearly_separable
``` ```
```shell ```shell
mpiexecjl --project=experiments -n 4 julia experiments/run_experiments.jl -- dataname=linearly_separable output_path=results parallel mpiexecjl --project=experiments -n 4 julia experiments/run_experiments.jl -- data=linearly_separable output_path=results parallel
``` ```
When running the experiments from the command line, the parameter choices used in the main paper are applied by default. To have control over these choices, we recommend you instead rely on the notebooks. When running the experiments from the command line, the parameter choices used in the main paper are applied by default. To have control over these choices, we recommend you instead rely on the notebooks.
......
...@@ -66,7 +66,7 @@ function run_experiment(exp::Experiment; save_output::Bool=true) ...@@ -66,7 +66,7 @@ function run_experiment(exp::Experiment; save_output::Bool=true)
if save_output if save_output
Serialization.serialize(joinpath(exp.output_path, "$(exp.save_name)_outcome.jls"), outcome) Serialization.serialize(joinpath(exp.output_path, "$(exp.save_name)_outcome.jls"), outcome)
Serialization.serialize(joinpath(exp.output_path, "$(exp.save_name)_bmk.jls"), bmk) Serialization.serialize(joinpath(exp.output_path, "$(exp.save_name)_bmk.jls"), bmk)
meta(outcome::ExperimentOutcome; save_output::Bool=true) meta(outcome; save_output=true)
end end
return outcome return outcome
......
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