View source on GitHub |
Trains and validates private logistic regression model via DP-SGD.
tf_privacy.logistic_dpsgd(
train_dataset: datasets.RegressionDataset,
test_dataset: datasets.RegressionDataset,
epsilon: float,
delta: float,
epochs: int,
num_classes: int,
batch_size: int,
num_microbatches: int,
clipping_norm: float
) -> List[float]
The training is based on the differentially private stochasstic gradient descent algorithm implemented in TensorFlow Privacy.
Returns | |
---|---|
List of test accuracies (one for each epoch) on test_dataset of model trained on train_dataset. |