tensorflow/privacy

Library for training machine learning models with privacy for training data

67
/ 100
Established

Provides differentially private TensorFlow optimizers (SGD, Adam, etc.) with per-example gradient clipping and built-in privacy accounting tools to measure epsilon/delta guarantees. Includes optimized Keras implementations for Dense and Embedding layers that achieve DP training without meaningful performance overhead by leveraging fast per-example gradient computation. Integrates directly with TensorFlow 2.x and tf.keras, with tutorials demonstrating how to wrap standard optimizers into privacy-preserving variants.

2,003 stars. Actively maintained with 3 commits in the last 30 days.

No Package No Dependents
Maintenance 16 / 25
Adoption 10 / 25
Maturity 16 / 25
Community 25 / 25

How are scores calculated?

Stars

2,003

Forks

469

Language

Python

License

Apache-2.0

Last pushed

Mar 10, 2026

Commits (30d)

3

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/ml-frameworks/tensorflow/privacy"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.