From 2b25498442a0160d739d2d81ea89116e8109515e Mon Sep 17 00:00:00 2001 From: Jason Gross Date: Thu, 7 Mar 2024 18:07:37 -0800 Subject: [PATCH] Don't rely on pwd for setting up .cache Fix #204 --- sparse_autoencoder/train/sweep.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sparse_autoencoder/train/sweep.py b/sparse_autoencoder/train/sweep.py index ffe1764e..f67ba505 100644 --- a/sparse_autoencoder/train/sweep.py +++ b/sparse_autoencoder/train/sweep.py @@ -197,7 +197,7 @@ def run_training_pipeline( source_data: The source data. run_name: The name of the run. """ - checkpoint_path = Path("../../.checkpoints") + checkpoint_path = Path(__file__).parent.parent.parent / ".checkpoints" checkpoint_path.mkdir(exist_ok=True) random_seed = hyperparameters["random_seed"]