Closed grilhami closed 3 years ago
Check out this pull request on
See visual diffs & provide feedback on Jupyter Notebooks.
Powered by ReviewNB
@chinmayshah99 Sure thing. Added the examples in the last commit.
The example notebook covers multiple sample code, including on how to set sensitivity as a function instead of a number, and budget accountant
Support for Laplace operator for SKLean pipeline is included
Description
A new file called
sklearn_pipeline.py
is added in thesrc/pydp/ml/mechanisms
directory to hold all supported noise operators for the SKLearn pipeline. In the file, a class namedLaplaceMechanism
is provided as a prototype for the feature starting with the Laplace noise mechanism.Affected Dependencies
The operator is dependant to SKLean library.
How has this been tested?
To use the feature, import the mechanism like so:
from pydp.ml.mechanisms.sklearn_pipeline import LalplaceMechanism
The, the operator can be used in an sklearn pipeline like so:
Checklist