Skip to content

Commit

Permalink
Add option to save configuration to pickle file
Browse files Browse the repository at this point in the history
  • Loading branch information
NilsWinter committed Aug 2, 2024
1 parent b6bee24 commit 012160e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Binary file added examples/config.pkl
Binary file not shown.
2 changes: 1 addition & 1 deletion examples/example_slurm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,4 @@ module load Miniconda3
eval "$(conda shell.bash hook)"
conda activate cpm

python cpm_analysis.py --results_directory "" --data_directory "" --config_file "" perm_run $SLURM_ARRAY_TASK_ID
python cpm_analysis.py --results_directory "./tmp/slurm" --data_directory "./simulated_data/" --config_file "./config.pkl" perm_run $SLURM_ARRAY_TASK_ID
2 changes: 1 addition & 1 deletion examples/save_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
cv_edge_selection=ShuffleSplit(n_splits=1, test_size=0.2, random_state=42),
add_edge_filter=True,
n_permutations=100)
cpm.save_configuration(config_filename='./tmp/config.pkl')
cpm.save_configuration(config_filename='./config.pkl')

cpm_remote = CPMRegression(results_directory='./tmp/example_simulated_data2')
cpm_remote.load_configuration(results_directory='./tmp/example_simulated_data3',
Expand Down

0 comments on commit 012160e

Please sign in to comment.