We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 14acc2d commit 374b868Copy full SHA for 374b868
1 file changed
tpcav/tpcav_model.py
@@ -92,6 +92,8 @@ def fit_pca(
92
num_pc: Optional[Union[int, str]] = None,
93
) -> Dict[str, torch.Tensor]:
94
"""Sample activations, compute PCA, and attach buffers to the model."""
95
+ logger.info("Start building PCA transformation.")
96
+
97
sampled_avs = []
98
for concept in concepts:
99
avs = self._sample_concept(concept, num_samples=num_samples_per_concept)
@@ -126,6 +128,8 @@ def fit_pca(
126
128
self._set_buffer("orig_shape", torch.tensor(orig_shape).to(self.device))
127
129
self.fitted = True
130
131
+ logger.info("PCA transformation built.")
132
133
return {
134
"zscore_mean": mean,
135
"zscore_std": std,
0 commit comments