From 1de9a1cc924fa90ffb11a8aaff5ae1eb55987fec Mon Sep 17 00:00:00 2001 From: judewells Date: Fri, 4 Oct 2024 12:12:13 +0100 Subject: [PATCH 1/2] add undeclared SEED var and fix data path --- config/ppi_gold.yaml | 2 +- run_ppi.py | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/config/ppi_gold.yaml b/config/ppi_gold.yaml index 94db2af..a5a0019 100644 --- a/config/ppi_gold.yaml +++ b/config/ppi_gold.yaml @@ -3,7 +3,7 @@ wandb_proj: ESM2_PPI_Gold # Weights and Biases project to log results to. wandb_save: False # Whether or not to log to Weights and Biases. log_file: ./logs/scratch_testing.log # Location of log file model_save_dir: ./best_models # Location to save best models -data_cache_dir: ./datasets_prev # Location of downloaded data (use `download.py`) +data_cache_dir: ./datasets # Location of downloaded data (use `download.py`) # Misc device: 0 # CUDA device to use for training diff --git a/run_ppi.py b/run_ppi.py index 1223cc2..9beb6f2 100644 --- a/run_ppi.py +++ b/run_ppi.py @@ -228,8 +228,9 @@ def main(): logg.info(f"Using CUDA device {device}") # Set random seed - logg.debug(f"Setting random seed {config.replicate}") - set_random_seed(config.replicate) + SEED = config.replicate + logg.debug(f"Setting random seed {SEED}") + set_random_seed(SEED) # Load DataModule logg.info("Preparing DataModule") From d8cebeac53bb41aad2af6e9227a103684487e265 Mon Sep 17 00:00:00 2001 From: judewells Date: Fri, 4 Oct 2024 12:16:22 +0100 Subject: [PATCH 2/2] update comments --- config/dti_bindingdb.yaml | 2 +- config/dti_davis.yaml | 2 +- config/ppi_gold.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config/dti_bindingdb.yaml b/config/dti_bindingdb.yaml index d2a2870..ee39abb 100644 --- a/config/dti_bindingdb.yaml +++ b/config/dti_bindingdb.yaml @@ -3,7 +3,7 @@ wandb_proj: ESM2_DTI_BINDINGDB # Weights and Biases project to log results to. wandb_save: False # Whether or not to log to Weights and Biases. log_file: ./logs/scratch_testing.log # Location of log file model_save_dir: ./best_models # Location to save best models -data_cache_dir: ./datasets # Location of downloaded data (use `download.py`) +data_cache_dir: ./datasets # Location of downloaded data (use `download_data.py`) # Misc device: 0 # CUDA device to use for training diff --git a/config/dti_davis.yaml b/config/dti_davis.yaml index 9e4c45c..5b7575a 100644 --- a/config/dti_davis.yaml +++ b/config/dti_davis.yaml @@ -3,7 +3,7 @@ wandb_proj: ESM2_DTI_DAVIS # Weights and Biases project to log results to. wandb_save: False # Whether or not to log to Weights and Biases. log_file: ./logs/scratch_testing.log # Location of log file model_save_dir: ./best_models # Location to save best models -data_cache_dir: ./datasets # Location of downloaded data (use `download.py`) +data_cache_dir: ./datasets # Location of downloaded data (use `download_data.py`) # Misc device: 0 # CUDA device to use for training diff --git a/config/ppi_gold.yaml b/config/ppi_gold.yaml index a5a0019..4f69bda 100644 --- a/config/ppi_gold.yaml +++ b/config/ppi_gold.yaml @@ -3,7 +3,7 @@ wandb_proj: ESM2_PPI_Gold # Weights and Biases project to log results to. wandb_save: False # Whether or not to log to Weights and Biases. log_file: ./logs/scratch_testing.log # Location of log file model_save_dir: ./best_models # Location to save best models -data_cache_dir: ./datasets # Location of downloaded data (use `download.py`) +data_cache_dir: ./datasets # Location of downloaded data (use `download_data.py`) # Misc device: 0 # CUDA device to use for training