Skip to content

Commit

Permalink
docs: Update implement.rst (#2345)
Browse files Browse the repository at this point in the history
  • Loading branch information
eamonn-zh committed Feb 7, 2024
1 parent dc115fe commit 2c7ccfe
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 2c7ccfe

Please sign in to comment.