Skip to content

Commit

Permalink
docs: Update implement.rst (#2345)
Browse files Browse the repository at this point in the history
(cherry picked from commit 2c7ccfe)
  • Loading branch information
eamonn-zh authored and Borda committed Feb 12, 2024
1 parent 4b92498 commit b945fd3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/source/pages/implement.rst
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ because we need to calculate the rank of the predictions and targets.

def compute(self):
# parse inputs
preds = dim_zero_cat(preds)
target = dim_zero_cat(target)
preds = dim_zero_cat(self.preds)
target = dim_zero_cat(self.target)
# some intermediate computation...
r_preds, r_target = _rank_data(preds), _rank_dat(target)
preds_diff = r_preds - r_preds.mean(0)
Expand Down

0 comments on commit b945fd3

Please sign in to comment.