Skip to content

Commit

Permalink
remove extra line for label
Browse files Browse the repository at this point in the history
  • Loading branch information
lauritowal committed Aug 27, 2023
1 parent f678c90 commit 6ed5eca
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions elk/training/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,7 @@ def apply_to_layer(

reporter = CcsReporter(self.net, d, device=device, num_variants=v)
train_loss = reporter.fit(first_train_h)
labels = to_one_hot(train_gt, k)
labels = repeat(labels, "n k -> n v k", v=v)
labels = repeat(to_one_hot(train_gt, k), "n k -> n v k", v=v)
reporter.platt_scale(labels, first_train_h)

elif isinstance(self.net, EigenFitterConfig):
Expand Down

0 comments on commit 6ed5eca

Please sign in to comment.