Skip to content

Commit

Permalink
Criteo 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 7bd6bd7 commit e483b62
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/ci/azureml_tests/test_groups.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@
"tests/security/test_dependency_security.py::test_requests",
"tests/security/test_dependency_security.py::test_numpy",
"tests/security/test_dependency_security.py::test_pandas",
"test/responsible_ai/recommenders/datasets/test_criteo_privacy.py",
],
"group_notebooks_cpu_001": [ # Total group time: 226.42s
"tests/unit/examples/test_notebooks_python.py::test_rlrmc_quickstart_runs",
Expand Down
15 changes: 15 additions & 0 deletions tests/responsible_ai/recommenders/datasets/test_criteo_privacy.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Copyright (c) Recommenders contributors.
# Licensed under the MIT License.


import pandas as pd

from recommenders.datasets import criteo


def test_criteo_privacy(criteo_first_row):
"""Check that there are no privacy concerns. In Criteo, we check that the
data is anonymized.
"""
df = criteo.load_pandas_df(size="sample")
assert df.loc[0].equals(pd.Series(criteo_first_row))

0 comments on commit e483b62

Please sign in to comment.