Skip to content

Commit

Permalink
repeat onehot in template dimension
Browse files Browse the repository at this point in the history
  • Loading branch information
lauritowal committed Aug 23, 2023
1 parent 707ce8e commit 777912e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions elk/training/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,8 @@ 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(train_gt, "n -> n v k", v=v, k=k)
reporter.platt_scale(labels, first_train_h)
labels = repeat(labels, "n k -> n v k", v=v)

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

0 comments on commit 777912e

Please sign in to comment.