1. 学ぶ
  2. /
  3. コース
  4. /
  5. Data Privacy and Anonymization in Python

Connected

演習

Using privacy budgets

The diffprivlib package includes statistical functions to explore data, such as the case of mean(). It computes the private average of array elements. Use the functions from the tools module of diffprivlib.

Here, you will use a privacy budget accountant acc to track privacy loss when computing the private mean on the array ages from the Heart Failure Prediction dataset.

The tools module from diffprivlib and the BudgetAccountant class have already been loaded.

指示1 / 3

undefined XP
    1
    2
    3
  • Initialize the budget accountant with an epsilon value of 1.2, as acc.