Skip to content

Commit

Permalink
Fixing a typo.
Browse files Browse the repository at this point in the history
Following #943

PiperOrigin-RevId: 676100501
Change-Id: I9749bbc2d07e86652b5f294b101ca6e4d628163c
  • Loading branch information
esonghori authored and copybara-github committed Sep 18, 2024
1 parent a450b4b commit 488343a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tf_agents/bandits/environments/movielens_py_environment.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def __init__(
)
# Keep only the first items.
self._data_matrix = self._data_matrix[:, :num_movies]
# Filter the users with no iterm rated.
# Filter the users with no item rated.
nonzero_users = list(np.nonzero(np.sum(self._data_matrix, axis=1) > 0.0)[0])
self._data_matrix = self._data_matrix[nonzero_users, :]
self._effective_num_users = len(nonzero_users)
Expand Down

0 comments on commit 488343a

Please sign in to comment.