BenchmarkDPFair 0.2.5__tar.gz → 0.2.7__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (26) hide show
  1. {benchmarkdpfair-0.2.5/src/BenchmarkDPFair.egg-info → benchmarkdpfair-0.2.7}/PKG-INFO +41 -16
  2. {benchmarkdpfair-0.2.5 → benchmarkdpfair-0.2.7}/README.md +37 -12
  3. {benchmarkdpfair-0.2.5 → benchmarkdpfair-0.2.7}/pyproject.toml +4 -4
  4. {benchmarkdpfair-0.2.5 → benchmarkdpfair-0.2.7/src/BenchmarkDPFair.egg-info}/PKG-INFO +41 -16
  5. {benchmarkdpfair-0.2.5 → benchmarkdpfair-0.2.7}/src/BenchmarkDPFair.egg-info/requires.txt +3 -3
  6. {benchmarkdpfair-0.2.5 → benchmarkdpfair-0.2.7}/LICENSE +0 -0
  7. {benchmarkdpfair-0.2.5 → benchmarkdpfair-0.2.7}/setup.cfg +0 -0
  8. {benchmarkdpfair-0.2.5 → benchmarkdpfair-0.2.7}/src/BenchmarkDPFair/Benchmark/__init__.py +0 -0
  9. {benchmarkdpfair-0.2.5 → benchmarkdpfair-0.2.7}/src/BenchmarkDPFair/Benchmark/benchmark.py +0 -0
  10. {benchmarkdpfair-0.2.5 → benchmarkdpfair-0.2.7}/src/BenchmarkDPFair/Benchmark/dataconf.py +0 -0
  11. {benchmarkdpfair-0.2.5 → benchmarkdpfair-0.2.7}/src/BenchmarkDPFair/Benchmark/utils/__init__.py +0 -0
  12. {benchmarkdpfair-0.2.5 → benchmarkdpfair-0.2.7}/src/BenchmarkDPFair/Benchmark/utils/auxiliar.py +0 -0
  13. {benchmarkdpfair-0.2.5 → benchmarkdpfair-0.2.7}/src/BenchmarkDPFair/Benchmark/utils/benchmark.py +0 -0
  14. {benchmarkdpfair-0.2.5 → benchmarkdpfair-0.2.7}/src/BenchmarkDPFair/Benchmark/utils/inp.py +0 -0
  15. {benchmarkdpfair-0.2.5 → benchmarkdpfair-0.2.7}/src/BenchmarkDPFair/Benchmark/utils/pos.py +0 -0
  16. {benchmarkdpfair-0.2.5 → benchmarkdpfair-0.2.7}/src/BenchmarkDPFair/Benchmark/utils/pre.py +0 -0
  17. {benchmarkdpfair-0.2.5 → benchmarkdpfair-0.2.7}/src/BenchmarkDPFair/Benchmark/utils/types.py +0 -0
  18. {benchmarkdpfair-0.2.5 → benchmarkdpfair-0.2.7}/src/BenchmarkDPFair/Benchmark/utils/verifiers.py +0 -0
  19. {benchmarkdpfair-0.2.5 → benchmarkdpfair-0.2.7}/src/BenchmarkDPFair/DataGenerator/__init__.py +0 -0
  20. {benchmarkdpfair-0.2.5 → benchmarkdpfair-0.2.7}/src/BenchmarkDPFair/DataGenerator/dataconf.py +0 -0
  21. {benchmarkdpfair-0.2.5 → benchmarkdpfair-0.2.7}/src/BenchmarkDPFair/DataGenerator/datagen.py +0 -0
  22. {benchmarkdpfair-0.2.5 → benchmarkdpfair-0.2.7}/src/BenchmarkDPFair/DataGenerator/utils/verifiers.py +0 -0
  23. {benchmarkdpfair-0.2.5 → benchmarkdpfair-0.2.7}/src/BenchmarkDPFair/__init__.py +0 -0
  24. {benchmarkdpfair-0.2.5 → benchmarkdpfair-0.2.7}/src/BenchmarkDPFair.egg-info/SOURCES.txt +0 -0
  25. {benchmarkdpfair-0.2.5 → benchmarkdpfair-0.2.7}/src/BenchmarkDPFair.egg-info/dependency_links.txt +0 -0
  26. {benchmarkdpfair-0.2.5 → benchmarkdpfair-0.2.7}/src/BenchmarkDPFair.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: BenchmarkDPFair
3
- Version: 0.2.5
3
+ Version: 0.2.7
4
4
  Summary: A differentially private data synthesizer and fairness intervention benchmark framework
5
5
  Author-email: Vinicius Gabriel Angelozzi Verona de Resende <verona.projects@tutanota.com>, Héber Hwang Arcolezi <heber.hwang-arcolezi@etsmtl.ca>
6
6
  License: MIT License
@@ -44,9 +44,9 @@ Requires-Dist: smartnoise-sql>=1.0.6
44
44
  Requires-Dist: smartnoise-synth>=1.0.5
45
45
  Requires-Dist: tabulate>=0.9.0
46
46
  Requires-Dist: ucimlrepo>=0.0.7
47
- Requires-Dist: xgboost>=3.2.0; sys_platform == "darwin"
48
- Requires-Dist: xgboost-cpu>=3.2.0; sys_platform == "linux"
49
- Requires-Dist: xgboost-cpu>=3.2.0; sys_platform == "win32"
47
+ Requires-Dist: xgboost; sys_platform == "darwin"
48
+ Requires-Dist: xgboost-cpu; sys_platform == "linux"
49
+ Requires-Dist: xgboost-cpu; sys_platform == "win32"
50
50
  Requires-Dist: cvxpy>=1.6.5
51
51
  Requires-Dist: chex>=0.1.87
52
52
  Requires-Dist: BlackBoxAuditing==0.1.54
@@ -70,27 +70,52 @@ This repository provides a Python framework for **benchmarking fairness mechanis
70
70
 
71
71
  ## Installation
72
72
 
73
- > From source
74
- To install, either use PyPi to isntall it, or clone the repository and install dependencies:
73
+ First, we strongly recommend creating a new Python environment before installing the package. This helps maintain a clean and reproducible setup, facilitates dependency and version management and update, and minimises potential conflicts with previously installed libraries.
75
74
 
76
75
  ```bash
77
- git clone https://github.com/vinicius-verona/dp-fair-intervention-benchmark.git
78
- cd dp-fair-intervention-benchmark
79
-
80
76
  python3 -m venv dpfair-env
81
- source dpfair-env/bin/activate
77
+ source dpfair-env/bin/activate # On Windows: dpfair-env\\Scripts\\activate
78
+ # Installation approach via PyPi or source installation
79
+ ```
82
80
 
83
- pip install torch --index-url https://download.pytorch.org/whl/cpu
84
- pip install -e .
81
+
82
+ When using Python 3.9, a specific version of the MBI library (`private-pgm`) must be installed by running the following command:
83
+
84
+ ```bash
85
+ pip install git+https://github.com/ryan112358/private-pgm.git@01f02f17eba440f4e76c1d06fa5ee9eed0bd2bca
85
86
  ```
86
87
 
87
- > Using PyPi **(SUGGESTED)**
88
+ If you are a Windows or Linux user, please install PyTorch CPU-only dependencies: [Step not required for Mac users]
88
89
  ```bash
89
- python3 -m venv dpfair-env
90
- source dpfair-env/bin/activate
91
90
  pip install torch --index-url https://download.pytorch.org/whl/cpu
91
+ ```
92
+
93
+ Users on MacOS are required to install `llvm-openmp`, either using conda or brew, as below:
94
+
95
+ **Conda**:
96
+ ```bash
97
+ conda install -c conda-forge llvm-openmp
98
+ ```
99
+ **Brew**:
100
+ ```bash
101
+ brew install libomp
102
+ ```
103
+
104
+ Then, the library installation can proceed as per usual.
105
+
106
+ Our recommended method is via PyPI. With a Python 3.9+ and <3.13 environment:
107
+
108
+ ```bash
92
109
  pip install BenchmarkDPFair
93
- ````
110
+ ```
111
+
112
+ Alternatively, there is the possibility to install from source, which also gives access to the `data/`, `example/`, and `notebook/` directories (be aware that these may consume more resources on your disk given the data provided):
113
+
114
+ ```bash
115
+ git clone https://github.com/vinicius-verona/dp-fair-intervention-benchmark.git
116
+ cd dp-fair-intervention-benchmark
117
+ pip install -e .
118
+ ```
94
119
 
95
120
  ---
96
121
 
@@ -16,27 +16,52 @@ This repository provides a Python framework for **benchmarking fairness mechanis
16
16
 
17
17
  ## Installation
18
18
 
19
- > From source
20
- To install, either use PyPi to isntall it, or clone the repository and install dependencies:
19
+ First, we strongly recommend creating a new Python environment before installing the package. This helps maintain a clean and reproducible setup, facilitates dependency and version management and update, and minimises potential conflicts with previously installed libraries.
21
20
 
22
21
  ```bash
23
- git clone https://github.com/vinicius-verona/dp-fair-intervention-benchmark.git
24
- cd dp-fair-intervention-benchmark
25
-
26
22
  python3 -m venv dpfair-env
27
- source dpfair-env/bin/activate
23
+ source dpfair-env/bin/activate # On Windows: dpfair-env\\Scripts\\activate
24
+ # Installation approach via PyPi or source installation
25
+ ```
28
26
 
29
- pip install torch --index-url https://download.pytorch.org/whl/cpu
30
- pip install -e .
27
+
28
+ When using Python 3.9, a specific version of the MBI library (`private-pgm`) must be installed by running the following command:
29
+
30
+ ```bash
31
+ pip install git+https://github.com/ryan112358/private-pgm.git@01f02f17eba440f4e76c1d06fa5ee9eed0bd2bca
31
32
  ```
32
33
 
33
- > Using PyPi **(SUGGESTED)**
34
+ If you are a Windows or Linux user, please install PyTorch CPU-only dependencies: [Step not required for Mac users]
34
35
  ```bash
35
- python3 -m venv dpfair-env
36
- source dpfair-env/bin/activate
37
36
  pip install torch --index-url https://download.pytorch.org/whl/cpu
37
+ ```
38
+
39
+ Users on MacOS are required to install `llvm-openmp`, either using conda or brew, as below:
40
+
41
+ **Conda**:
42
+ ```bash
43
+ conda install -c conda-forge llvm-openmp
44
+ ```
45
+ **Brew**:
46
+ ```bash
47
+ brew install libomp
48
+ ```
49
+
50
+ Then, the library installation can proceed as per usual.
51
+
52
+ Our recommended method is via PyPI. With a Python 3.9+ and <3.13 environment:
53
+
54
+ ```bash
38
55
  pip install BenchmarkDPFair
39
- ````
56
+ ```
57
+
58
+ Alternatively, there is the possibility to install from source, which also gives access to the `data/`, `example/`, and `notebook/` directories (be aware that these may consume more resources on your disk given the data provided):
59
+
60
+ ```bash
61
+ git clone https://github.com/vinicius-verona/dp-fair-intervention-benchmark.git
62
+ cd dp-fair-intervention-benchmark
63
+ pip install -e .
64
+ ```
40
65
 
41
66
  ---
42
67
 
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "BenchmarkDPFair"
7
- version = "0.2.5"
7
+ version = "0.2.7"
8
8
  description = "A differentially private data synthesizer and fairness intervention benchmark framework"
9
9
  authors = [
10
10
  { name="Vinicius Gabriel Angelozzi Verona de Resende", email="verona.projects@tutanota.com" },
@@ -27,9 +27,9 @@ dependencies = [
27
27
  "smartnoise-synth>=1.0.5",
28
28
  "tabulate>=0.9.0",
29
29
  "ucimlrepo>=0.0.7",
30
- "xgboost>=3.2.0; sys_platform == 'darwin'",
31
- "xgboost-cpu>=3.2.0; sys_platform == 'linux'",
32
- "xgboost-cpu>=3.2.0; sys_platform == 'win32'",
30
+ "xgboost; sys_platform == 'darwin'",
31
+ "xgboost-cpu; sys_platform == 'linux'",
32
+ "xgboost-cpu; sys_platform == 'win32'",
33
33
  "cvxpy>=1.6.5",
34
34
  "chex>=0.1.87",
35
35
  "BlackBoxAuditing==0.1.54"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: BenchmarkDPFair
3
- Version: 0.2.5
3
+ Version: 0.2.7
4
4
  Summary: A differentially private data synthesizer and fairness intervention benchmark framework
5
5
  Author-email: Vinicius Gabriel Angelozzi Verona de Resende <verona.projects@tutanota.com>, Héber Hwang Arcolezi <heber.hwang-arcolezi@etsmtl.ca>
6
6
  License: MIT License
@@ -44,9 +44,9 @@ Requires-Dist: smartnoise-sql>=1.0.6
44
44
  Requires-Dist: smartnoise-synth>=1.0.5
45
45
  Requires-Dist: tabulate>=0.9.0
46
46
  Requires-Dist: ucimlrepo>=0.0.7
47
- Requires-Dist: xgboost>=3.2.0; sys_platform == "darwin"
48
- Requires-Dist: xgboost-cpu>=3.2.0; sys_platform == "linux"
49
- Requires-Dist: xgboost-cpu>=3.2.0; sys_platform == "win32"
47
+ Requires-Dist: xgboost; sys_platform == "darwin"
48
+ Requires-Dist: xgboost-cpu; sys_platform == "linux"
49
+ Requires-Dist: xgboost-cpu; sys_platform == "win32"
50
50
  Requires-Dist: cvxpy>=1.6.5
51
51
  Requires-Dist: chex>=0.1.87
52
52
  Requires-Dist: BlackBoxAuditing==0.1.54
@@ -70,27 +70,52 @@ This repository provides a Python framework for **benchmarking fairness mechanis
70
70
 
71
71
  ## Installation
72
72
 
73
- > From source
74
- To install, either use PyPi to isntall it, or clone the repository and install dependencies:
73
+ First, we strongly recommend creating a new Python environment before installing the package. This helps maintain a clean and reproducible setup, facilitates dependency and version management and update, and minimises potential conflicts with previously installed libraries.
75
74
 
76
75
  ```bash
77
- git clone https://github.com/vinicius-verona/dp-fair-intervention-benchmark.git
78
- cd dp-fair-intervention-benchmark
79
-
80
76
  python3 -m venv dpfair-env
81
- source dpfair-env/bin/activate
77
+ source dpfair-env/bin/activate # On Windows: dpfair-env\\Scripts\\activate
78
+ # Installation approach via PyPi or source installation
79
+ ```
82
80
 
83
- pip install torch --index-url https://download.pytorch.org/whl/cpu
84
- pip install -e .
81
+
82
+ When using Python 3.9, a specific version of the MBI library (`private-pgm`) must be installed by running the following command:
83
+
84
+ ```bash
85
+ pip install git+https://github.com/ryan112358/private-pgm.git@01f02f17eba440f4e76c1d06fa5ee9eed0bd2bca
85
86
  ```
86
87
 
87
- > Using PyPi **(SUGGESTED)**
88
+ If you are a Windows or Linux user, please install PyTorch CPU-only dependencies: [Step not required for Mac users]
88
89
  ```bash
89
- python3 -m venv dpfair-env
90
- source dpfair-env/bin/activate
91
90
  pip install torch --index-url https://download.pytorch.org/whl/cpu
91
+ ```
92
+
93
+ Users on MacOS are required to install `llvm-openmp`, either using conda or brew, as below:
94
+
95
+ **Conda**:
96
+ ```bash
97
+ conda install -c conda-forge llvm-openmp
98
+ ```
99
+ **Brew**:
100
+ ```bash
101
+ brew install libomp
102
+ ```
103
+
104
+ Then, the library installation can proceed as per usual.
105
+
106
+ Our recommended method is via PyPI. With a Python 3.9+ and <3.13 environment:
107
+
108
+ ```bash
92
109
  pip install BenchmarkDPFair
93
- ````
110
+ ```
111
+
112
+ Alternatively, there is the possibility to install from source, which also gives access to the `data/`, `example/`, and `notebook/` directories (be aware that these may consume more resources on your disk given the data provided):
113
+
114
+ ```bash
115
+ git clone https://github.com/vinicius-verona/dp-fair-intervention-benchmark.git
116
+ cd dp-fair-intervention-benchmark
117
+ pip install -e .
118
+ ```
94
119
 
95
120
  ---
96
121
 
@@ -17,10 +17,10 @@ chex>=0.1.87
17
17
  BlackBoxAuditing==0.1.54
18
18
 
19
19
  [:sys_platform == "darwin"]
20
- xgboost>=3.2.0
20
+ xgboost
21
21
 
22
22
  [:sys_platform == "linux"]
23
- xgboost-cpu>=3.2.0
23
+ xgboost-cpu
24
24
 
25
25
  [:sys_platform == "win32"]
26
- xgboost-cpu>=3.2.0
26
+ xgboost-cpu
File without changes