Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
lauritowal committed Aug 23, 2023
1 parent 5d4e7a4 commit 707ce8e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions elk/training/ccs_reporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ def forward(self, x: Tensor) -> Tensor:
if self._is_training:
return raw_scores
else:
# only do platt scaling after training the reporters
platt_scaled_scores = raw_scores.mul(self.scale).add(self.bias).squeeze(-1)
return platt_scaled_scores

Expand Down

0 comments on commit 707ce8e

Please sign in to comment.