Skip to content

Commit

Permalink
readd platt scaling
Browse files Browse the repository at this point in the history
  • Loading branch information
lauritowal committed Aug 23, 2023
1 parent 777912e commit 89f8987
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions elk/training/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ def apply_to_layer(
train_loss = reporter.fit(first_train_h)
labels = to_one_hot(train_gt, k)
labels = repeat(labels, "n k -> n v k", v=v)
reporter.platt_scale(labels, first_train_h)

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

0 comments on commit 89f8987

Please sign in to comment.