Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix path add seed #4

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion config/dti_bindingdb.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion config/dti_davis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion config/ppi_gold.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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_data.py`)

# Misc
device: 0 # CUDA device to use for training
Expand Down
5 changes: 3 additions & 2 deletions run_ppi.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down