Skip to content

Commit

Permalink
Docstring shape fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sadaharu-inugami committed Dec 9, 2020
1 parent a485e2d commit d224c6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion allrank/models/losses/ordinal.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def with_ordinals(y, n, padded_value_indicator=PADDED_Y_VALUE):
def ordinal(y_pred, y_true, n, padded_value_indicator=PADDED_Y_VALUE):
"""
Ordinal loss.
:param y_pred: predictions from the model, shape [batch_size, slate_length]
:param y_pred: predictions from the model, shape [batch_size, slate_length, n]
:param y_true: ground truth labels, shape [batch_size, slate_length]
:param n: number of ordinal values, int
:param padded_value_indicator: an indicator of the y_true index containing a padded item, e.g. -1
Expand Down

0 comments on commit d224c6c

Please sign in to comment.