-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: miguelgfierro <[email protected]>
- Loading branch information
1 parent
7bd6bd7
commit e483b62
Showing
2 changed files
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
tests/responsible_ai/recommenders/datasets/test_criteo_privacy.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)) |