GithubHelp home page GithubHelp logo

vidalt / draft Goto Github PK

View Code? Open in Web Editor NEW
12.0 12.0 3.0 2.04 MB

DRAFT : Dataset Reconstruction Attack From Trained ensembles. Source code associated with the paper "Trained Random Forests Completely Reveal your Dataset (ICML'24, forthcoming)" authored by Julien Ferry, Ricardo Fukasawa, Timothée Pascal, and Thibaut Vidal

License: MIT License

Python 99.84% Shell 0.16%

draft's People

Contributors

ferryjul avatar vidalt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

draft's Issues

Data set failing using OR-Tools

Running data_extraction_from_rf_experiments.py with method = "cp-sat" fails on the adult dataset as follows:

Local Config:
 dataset =  adult
 n_estimators =  1
 max_depth_t =  None
 seed =  0
Using dataset adult, training set size is 10 with 19 attributes.
accuracy_train= 1.0 accuracy_test= 0.7657718120805369
RF parsing done!
Model creation done!

Starting CP-SAT solver v9.8.3296
Parameters: random_seed: 0 max_time_in_seconds: 18000 log_search_progress: true num_workers: 8

Initial satisfaction model '': (model_fingerprint: 0x388a71457e5c97d2)
#Variables: 190
  - 190 Booleans in [0,1]
#kLinear0: 10
#kLinearN: 10 (#terms: 60)

Starting presolve at 0.00s
INFEASIBLE: 'proven during initial copy of constraint #10:
linear {
  domain: [1, 1]
}
With current variable domains:
'

Presolve summary:
  - 0 affine relations were detected.
Problem closed by presolve.
CpSolverResponse summary:
status: INFEASIBLE
objective: NA
best_bound: NA
integers: 0
booleans: 0
conflicts: 0
branches: 0
propagations: 0
integer_propagations: 0
restarts: 0
lp_iterations: 0
walltime: 0.000337
usertime: 0.000337
deterministic_time: 0
gap_integral: 0

Traceback (most recent call last):
  File "DRAFT/data_extraction_from_rf_experiments.py", line 265, in <module>
    dict_res = extractor.fit(
               ^^^^^^^^^^^^^^
  File "DRAFT/DRAFT.py", line 299, in fit
    self.perform_reconstruction_v1_CP_SAT(
  File "DRAFT/DRAFT.py", line 474, in perform_reconstruction_v1_CP_SAT
    raise RuntimeError(
RuntimeError: Infeasible model: the reconstruction problem has no solution. Please make sure the provided one-hot encoding constraints are correct. Else, report this issue to the developers.

I have not touched the one-hot encoding and it works for the other 2 datasets.

Additionally, as a general comment, model-building time in your experiments is part of the solve_duration_time, maybe this should be considered as a separate timer as it doesn't reflect the solver's ability to solve the problem but the speed of the API (which can of course vary depending on the implementation and the language used).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.