diff --git a/src/diffing/methods/activation_analysis/diffing_method.py b/src/diffing/methods/activation_analysis/diffing_method.py index 81eba6d..2519188 100644 --- a/src/diffing/methods/activation_analysis/diffing_method.py +++ b/src/diffing/methods/activation_analysis/diffing_method.py @@ -250,7 +250,7 @@ def compute_histogram(self, norm_values, norm_name: str, plot_dir: Path, no_outl plt.axvline(median_val, color='green', linestyle='--', linewidth=2, label=f'Median: {median_val:.4f}') plt.legend() - plt.savefig(plot_dir / f"{norm_name.replace(' ', '_').replace("(", "").replace(")", "")}_log.png", dpi=150, bbox_inches='tight') + plt.savefig(plot_dir / f"{norm_name.replace(' ', '_').replace('(', '').replace(')', '')}_log.png", dpi=150, bbox_inches='tight') plt.close() diff --git a/src/utils/dictionary/training.py b/src/utils/dictionary/training.py index 811527a..d7d66f4 100644 --- a/src/utils/dictionary/training.py +++ b/src/utils/dictionary/training.py @@ -504,7 +504,7 @@ def sae_difference_run_name( target = method_cfg.training.target target_short = target.split("_")[1] # "bft" or "ftb" - run_name = f"SAEdiff_{target_short.replace("difference_", "")}-{base_model_cfg.name}-{cfg.organism.name}-L{layer}" + run_name = f"SAEdiff_{target_short.replace('difference_', '')}-{base_model_cfg.name}-{cfg.organism.name}-L{layer}" if not method_cfg.datasets.normalization.enabled: run_name += "-nonorm"