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

Use concept-erasure implementation of LEACE and SAL #252

Merged
merged 8 commits into from
Jul 10, 2023
Prev Previous commit
Next Next commit
Merge remote-tracking branch 'origin/main' into leace
  • Loading branch information
norabelrose committed Jul 6, 2023
commit 0f6f120892dab4c85e3d12bf129243d58e125f0d
1 change: 0 additions & 1 deletion elk/training/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ def apply_to_layer(
reporter = CcsReporter(self.net, d, device=device, num_variants=v)
train_loss = reporter.fit(first_train_h)

(val_h, val_gt, _) = next(iter(val_dict.values()))
(_, v, k, _) = first_train_h.shape
reporter.platt_scale(
to_one_hot(repeat(train_gt, "n -> (n v)", v=v), k).flatten(),
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.