privacy preserving
PRIVACY_PRESERVING
Source code in engines/contentFilterEngine/fairness_explainability/privacy_preserving.py
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
|
__init__()
Initialize the privacy-preserving module.
Source code in engines/contentFilterEngine/fairness_explainability/privacy_preserving.py
5 6 7 8 9 |
|
anonymize_data(user_data)
Anonymize user data to preserve privacy.
Parameters: - user_data (pd.DataFrame): DataFrame containing user information.
Returns: - pd.DataFrame: Anonymized user data.
Source code in engines/contentFilterEngine/fairness_explainability/privacy_preserving.py
11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
|
apply_differential_privacy(data, epsilon)
Apply differential privacy to the data.
Parameters: - data (pd.DataFrame): DataFrame containing data to be privatized. - epsilon (float): Privacy budget parameter.
Returns: - pd.DataFrame: Data with differential privacy applied.
Source code in engines/contentFilterEngine/fairness_explainability/privacy_preserving.py
26 27 28 29 30 31 32 33 34 35 36 37 38 |
|