Skip to content

Commit 18b424d

Browse files
committed
no default for n samples
1 parent 0c9e52d commit 18b424d

File tree

4 files changed

+4
-1
lines changed

4 files changed

+4
-1
lines changed

spd/clustering/pipeline/s2_clustering.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,7 @@ def _run_clustering(
139139
plot_activations(
140140
processed_activations=processed_activations,
141141
save_dir=this_merge_plots_dir,
142+
n_samples_max=256, # TODO: make this configurable?
142143
wandb_run=run,
143144
)
144145
logger.info(f"plots saved to {this_merge_plots_dir}")

spd/clustering/plotting/activations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
def plot_activations(
1919
processed_activations: ProcessedActivations,
2020
save_dir: Path,
21+
n_samples_max: int,
2122
pdf_prefix: str = "activations",
22-
n_samples_max: int = 256,
2323
figsize_raw: tuple[int, int] = (12, 4),
2424
figsize_concat: tuple[int, int] = (12, 2),
2525
figsize_coact: tuple[int, int] = (8, 6),

tests/clustering/scripts/cluster_resid_mlp.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@
106106
plot_activations(
107107
processed_activations=PROCESSED_ACTIVATIONS,
108108
save_dir=TEMP_DIR,
109+
n_samples_max=256,
109110
wandb_run=None,
110111
)
111112

tests/clustering/scripts/cluster_ss.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@
8383
plot_activations(
8484
processed_activations=PROCESSED_ACTIVATIONS,
8585
save_dir=TEMP_DIR,
86+
n_samples_max=256,
8687
wandb_run=None,
8788
)
8889

0 commit comments

Comments
 (0)