Open
Conversation
Add an example for the group-wise attacks; Update README.md.
Use pd.testing.assert_index_equal instead of list comparison.
MatteoGiomi
approved these changes
Mar 27, 2026
Member
MatteoGiomi
left a comment
There was a problem hiding this comment.
Thanks @itrajanovska, looks very good! I have just a few comments.
| "\n", | ||
| "The synthetic version has been generated by `CTGAN` from [SDV](https://sdv.dev/SDV/user_guides/single_table/ctgan.html), as explained in the paper accompanying this code release. For details on the generation process, e.g. regarding hyperparameters, see Section 6.2.1 of [the accompanying paper](https://petsymposium.org/popets/2023/popets-2023-0055.php)).\n", | ||
| "\n", | ||
| "We pull these datasets from the [Statice](https://www.statice.ai/) public GC bucket:" |
Member
There was a problem hiding this comment.
this can be removed, the data is distribted with the code now.
| "The requirements for the model are:\n", | ||
| "\n", | ||
| "1. It is trained on the synthetic data with the `secret` as a target. (It can be a classification or regression model)\n", | ||
| "2. The inference model must implement our protocol that defines a predict(x) method returning predictions whose index matches that of x (anonymeter.evaluators.inference_predictor::InferencePredictor)\n", |
Member
Contributor
Author
There was a problem hiding this comment.
Wrapped it in `` now
| " inference_model = SklearnInferencePredictor(model)\n", | ||
| " \n", | ||
| " # Needed for anonymeter (is the target categorical or numerical variable?)\n", | ||
| " regression = True if syn[secret].dtype.kind in 'iuf' else False\n", |
Member
There was a problem hiding this comment.
if you leave it to the default (None) the code will decide depending or not the secret is numerical (see here) using a similar logic.
Contributor
Author
There was a problem hiding this comment.
Thanks, I oversaw this. The parameter is removed now
Remove explicit regression parameter in InferenceEvaluator.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Add an example with the custom model feature for the inference attacks;
Add an example for the group-wise attacks;
Update README.md.