Skip to content

Commit

Permalink
Movielens responsible AI
Browse files Browse the repository at this point in the history
Signed-off-by: miguelgfierro <[email protected]>
  • Loading branch information
miguelgfierro committed Sep 15, 2023
1 parent e483b62 commit f985b66
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Copyright (c) Recommenders contributors.
# Licensed under the MIT License.


from recommenders.datasets import movielens


def test_movielens_privacy():
"""Check that there are no privacy concerns. In Movielens, we check that all the
userID are numbers.
"""
df = movielens.load_pandas_df(size="100k")
users = df["userID"].values.tolist()
assert all(isinstance(x, int) for x in users)

0 comments on commit f985b66

Please sign in to comment.