Package: diffpriv 0.4.2.9000

Image

Benjamin Rubinstein

diffpriv: Easy Differential Privacy

An implementation of major general-purpose mechanisms for privatizing statistics, models, and machine learners, within the framework of differential privacy of Dwork et al. (2006) <doi:10.1007/11681878_14>. Example mechanisms include the Laplace mechanism for releasing numeric aggregates, and the exponential mechanism for releasing set elements. A sensitivity sampler (Rubinstein & Alda, 2017) <arxiv:1706.02562> permits sampling target non-private function sensitivity; combined with the generic mechanisms, it permits turn-key privatization of arbitrary programs.

Authors:Benjamin Rubinstein [aut, cre], Francesco Aldà [aut]

diffpriv_0.4.2.9000.tar.gz
diffpriv_0.4.2.9000.zip(r-4.6)diffpriv_0.4.2.9000.zip(r-4.5)diffpriv_0.4.2.9000.zip(r-4.4)
diffpriv_0.4.2.9000.tgz(r-4.5-any)
diffpriv_0.4.2.9000.tar.gz(r-4.6-any)diffpriv_0.4.2.9000.tar.gz(r-4.5-any)
diffpriv_0.4.2.9000.tgz(r-4.5-emscripten)
diffpriv.pdf |diffpriv.html
diffpriv/json (API)
NEWS

# Install 'diffpriv' in R:
install.packages('diffpriv', repos = c('https://brubinstein.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/brubinstein/diffpriv/issues

On CRAN:

Conda:

data-sciencedifferential-privacydiffprivmachine-learningstatistics

7.03 score 69 stars 1 packages 52 scripts 287 downloads 13 exports 1 dependencies

Last updated from:36d4a0d9b1. Checks:6 NOTE, 2 OK, 1 FAIL. Indexed: yes.

TargetResultTotal timeArtifact
linux-devel-x86_64NOTE145
source / vignettesOK190
linux-release-x86_64NOTE125
macos-release-arm64NOTE189
macos-oldrel-arm64FAIL121
windows-develNOTE69
windows-releaseNOTE82
windows-oldrelNOTE72
wasm-releaseOK121

Exports:bernsteinDPMechBernsteinDPMechExponentialDPMechGaussianDPMechLaplaceDPMechNumericDPParamsDelDPParamsEpsDPParamsGamreleaseResponsesensitivityNormsensitivitySamplersensitivitySamplerManual

Dependencies:gsl

bernstein

Rendered frombernstein.Rnwusingknitr::knitron Nov 25 2025.

Last update: 2017-07-17
Started: 2017-07-15

diffpriv

Rendered fromdiffpriv.Rnwusingknitr::knitron Nov 25 2025.

Last update: 2017-07-28
Started: 2017-06-30

Readme and manuals

Help Manual

Help pageTopics
Fit a Bernstein polynomial approximation.bernstein
'diffpriv': practical differential privacy in R.diffpriv-package diffpriv
An S4 class for differentially-private mechanisms.DPMech-class
An S4 class for the Bernstein mechanism of differential privacy.DPMechBernstein DPMechBernstein-class releaseResponse,DPMechBernstein,DPParamsEps-method sensitivityNorm,DPMechBernstein-method show,DPMechBernstein-method
An S4 class for the exponential mechanism of differential privacy.DPMechExponential DPMechExponential-class releaseResponse,DPMechExponential,DPParamsEps-method sensitivityNorm,DPMechExponential-method show,DPMechExponential-method
An S4 class for the Gaussian mechanism of differential privacy.DPMechGaussian DPMechGaussian-class show,DPMechGaussian-method
An S4 class for the Laplace mechanism of differential privacy.DPMechLaplace DPMechLaplace-class show,DPMechLaplace-method
A virtual S4 class for differentially-private numeric mechanisms.DPMechNumeric DPMechNumeric-class releaseResponse,DPMechNumeric,DPParamsEps-method sensitivityNorm,DPMechNumeric-method show,DPMechNumeric-method
An S4 class for relaxed differential privacy parameters.DPParamsDel DPParamsDel-class getDelta,DPParamsDel-method setDelta<-,DPParamsDel-method show,DPParamsDel-method toGamma,DPParamsDel,numeric-method
An S4 class for basic differential privacy parameters.DPParamsEps DPParamsEps-class getEpsilon,DPParamsEps-method setEpsilon<-,DPParamsEps-method show,DPParamsEps-method toGamma,DPParamsEps,numeric-method
An S4 class for random differential privacy parameters.DPParamsGam DPParamsGam-class getGamma,DPParamsGam-method setGamma<-,DPParamsGam-method show,DPParamsGam-method toGamma,DPParamsGam,numeric-method
Evaluate Bernstein approximations on data.predict.bernstein
'DPMech' private release method.releaseResponse
'DPMech' sensitivity-inducing norm.sensitivityNorm
Sensitivity sampler for 'DPMech-class''s.sensitivitySampler
Sensitivity sampler for 'DPMech-class''s.sensitivitySampler,DPMech,function,numeric-method
Sensitivity sampler for 'DPMech-class'.sensitivitySamplerManual
Sensitivity sampler for 'DPMech-class'.sensitivitySamplerManual,DPMech,function,numeric,numeric,numeric-method
Sensitivity sampler for 'DPMechNumeric-class'.sensitivitySamplerManual,DPMechNumeric,function,numeric,numeric,numeric-method
Setter for slot 'delta'.setDelta<-
Setter for slot 'epsilon'.setEpsilon<-
Setter for slot 'gamma'.setGamma<-

  • Image