From 488343a7c4c63c2f3de1fa1c395629e88a81524b Mon Sep 17 00:00:00 2001 From: Ebrahim Songhori Date: Wed, 18 Sep 2024 13:02:29 -0700 Subject: [PATCH] Fixing a typo. Following https://github.com/tensorflow/agents/pull/943 PiperOrigin-RevId: 676100501 Change-Id: I9749bbc2d07e86652b5f294b101ca6e4d628163c --- tf_agents/bandits/environments/movielens_py_environment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tf_agents/bandits/environments/movielens_py_environment.py b/tf_agents/bandits/environments/movielens_py_environment.py index c66fd1547..9b6a81539 100644 --- a/tf_agents/bandits/environments/movielens_py_environment.py +++ b/tf_agents/bandits/environments/movielens_py_environment.py @@ -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)