You can also view the notebooks on nbviewer. The notebooks here are broadly listed in order of increasing complexity and difficulty.
- 30seconds.ipynb: Introducing diffprivlib by training a machine learning model with differential privacy.
- naive_bayes.ipynb: Training a Naive Bayes classifier using the UCI adult dataset.
- logistic_regression.ipynb: Training a logistic regression classifier on the UCI adult dataset.
- linear_regression.ipynb: Training a linear regressor using the UCI diabetes dataset.
- histograms.ipynb: Using the histogram function to plot distributions of data.
- accountant.ipynb: Introducing the
BudgetAccountant
class to track privacy budget spend across multiple operations. - pipeline.ipynb: Using an sklearn pipeline to train a differentially private model.
- exploration.ipynb: Example data exploration workflow using diffprivlib.