Skip to content

Commit

Permalink
docs:fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
Dariush Wahdany committed Dec 13, 2023
1 parent dc5f732 commit 5521b9a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Repository of differentially-private methods for learning from features.


## Private Prototype Calculation
1. Set your total privacy budget in (0,rho)-cZDP.
1. Set your total privacy budget in (0,rho)-zCDP.
2. Divide your total budget into a budget per step. Good starting values are listed below. The algorithm will perform `len(Ps)` many steps.

```python
Expand Down
2 changes: 1 addition & 1 deletion src/dp_learning_ff/prototypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def give_private_prototypes(
Args:
train_preds (np.ndarray): (n, d)-array containing the predictions of the training set.
train_targets (np.ndarray): (n, )-array containing the labels of the training set.
Ps (np.ndarray[float]): Array of privacy budget per step in (0,rho)-cZDP. To total privacy cost is the sum of this array. The algorithm will perform len(Ps) steps.
Ps (np.ndarray[float]): Array of privacy budget per step in (0,rho)-zCDP. To total privacy cost is the sum of this array. The algorithm will perform len(Ps) steps.
seed (int): RNG seed
subsampling (float): Ratio in (0, 1] of samples to use
Expand Down

0 comments on commit 5521b9a

Please sign in to comment.