Google I/O is a wrap! Catch up on TensorFlow sessions View sessions

Module: tf_privacy

TensorFlow Privacy library.

Modules

restart_query module: Implements DPQuery interface for restarting the states of another query.

tree_aggregation module: Tree aggregation algorithm.

v1 module: TensorFlow Privacy library v1 imports.

Classes

class ComposedDpEvent: Represents application of a series of composed mechanisms.

class DNNClassifier: DP version of tf.estimator.DNNClassifier.

class DPKerasAdagradOptimizer: Differentially private subclass of class tf.keras.optimizers.Adagrad.

class DPKerasAdamOptimizer: Differentially private subclass of class tf.keras.optimizers.Adam.

class DPKerasSGDOptimizer: Differentially private subclass of class tf.keras.optimizers.SGD.

class DPModel: DP subclass of tf.keras.Model.

class DPQuery: Interface for differentially private query mechanisms.

class DPSequential: DP subclass of tf.keras.Sequential.

class DiscreteGaussianSumQuery: Implements DPQuery for discrete Gaussian sum queries.

class DistributedDiscreteGaussianSumQuery: Implements DPQuery for discrete distributed Gaussian sum queries.

class DistributedSkellamSumQuery: Implements DPQuery interface for discrete distributed sum queries.

class DpEvent: Represents application of a private mechanism.

class GaussianDpEvent: Represents an application of the Gaussian mechanism.

class GaussianSumQuery: Implements DPQuery interface for Gaussian sum queries.

class NestedQuery: Implements DPQuery interface for structured queries.

class NoOpDpEvent: Represents appplication of an operation with no privacy impact.

class NoPrivacyAverageQuery: Implements DPQuery interface for an average query with no privacy.

class NoPrivacyQuantileEstimatorQuery: Iterative process to estimate target quantile of a univariate distribution.

class NoPrivacySumQuery: Implements DPQuery interface for a sum query with no privacy.

class NonPrivateDpEvent: Represents application of a non-private operation.

class NormalizedQuery: DPQuery for queries with a DPQuery numerator and fixed denominator.

class PoissonSampledDpEvent: Represents an application of Poisson subsampling.

class QuantileAdaptiveClipSumQuery: DPQuery for Gaussian sum queries with adaptive clipping.

class QuantileEstimatorQuery: DPQuery to estimate target quantile of a univariate distribution.

class RestartQuery: DPQuery for SumAggregationDPQuery with a reset_state function.

class SampledWithReplacementDpEvent: Represents sampling a fixed sized batch of records with replacement.

class SampledWithoutReplacementDpEvent: Represents sampling a fixed sized batch of records without replacement.

class SelfComposedDpEvent: Represents repeated application of a mechanism.

class SumAggregationDPQuery: Base class for DPQueries that aggregate via sum.

class TreeCumulativeSumQuery: Returns private cumulative sums by clipping and adding correlated noise.

class TreeRangeSumQuery: Implements dp_query for accurate range queries using tree aggregation.

class TreeResidualSumQuery: Implements DPQuery for adding correlated noise through tree structure.

class UnsupportedDpEvent: Represents application of an as-yet unsupported operation.

class VectorizedDPKerasAdagradOptimizer: Vectorized differentially private subclass of given class

class VectorizedDPKerasAdamOptimizer: Vectorized differentially private subclass of given class

class VectorizedDPKerasSGDOptimizer: Vectorized differentially private subclass of given class

Functions

compute_dp_sgd_privacy(...): Compute epsilon based on the given hyperparameters.

compute_heterogeneous_rdp(...): Computes RDP of Heteregoneous Applications of Sampled Gaussian Mechanisms.

compute_rdp(...): Computes RDP of the Sampled Gaussian Mechanism.

compute_rdp_single_tree(...): Computes RDP of the Tree Aggregation Protocol for a single tree.

compute_rdp_tree_restart(...): Computes RDP of the Tree Aggregation Protocol for Gaussian Mechanism.

compute_zcdp_single_tree(...): Computes zCDP of the Tree Aggregation Protocol for a single tree.

get_privacy_spent(...): Computes delta (or eps) for given eps (or delta) from RDP values.

make_dp_model_class(...): Given a subclass of tf.keras.Model, returns a DP-SGD version of it.

make_keras_optimizer_class(...): Given a subclass of tf.keras.optimizers.Optimizer, returns a DP-SGD subclass of it.

make_vectorized_keras_optimizer_class(...): Given a subclass of tf.keras.optimizers.Optimizer, returns a vectorized DP-SGD subclass of it.

version '0.8.0'