BenchmarkDPFair 0.2.3__tar.gz → 0.2.5__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 (29) hide show
  1. {benchmarkdpfair-0.2.3/src/BenchmarkDPFair.egg-info → benchmarkdpfair-0.2.5}/PKG-INFO +14 -5
  2. {benchmarkdpfair-0.2.3 → benchmarkdpfair-0.2.5}/README.md +10 -3
  3. {benchmarkdpfair-0.2.3 → benchmarkdpfair-0.2.5}/pyproject.toml +4 -3
  4. {benchmarkdpfair-0.2.3 → benchmarkdpfair-0.2.5/src/BenchmarkDPFair.egg-info}/PKG-INFO +14 -5
  5. {benchmarkdpfair-0.2.3 → benchmarkdpfair-0.2.5}/src/BenchmarkDPFair.egg-info/SOURCES.txt +1 -4
  6. {benchmarkdpfair-0.2.3 → benchmarkdpfair-0.2.5}/src/BenchmarkDPFair.egg-info/requires.txt +9 -1
  7. benchmarkdpfair-0.2.3/tests/test_benchmark.py +0 -31
  8. benchmarkdpfair-0.2.3/tests/test_dataconf.py +0 -25
  9. benchmarkdpfair-0.2.3/tests/test_datagen.py +0 -0
  10. {benchmarkdpfair-0.2.3 → benchmarkdpfair-0.2.5}/LICENSE +0 -0
  11. {benchmarkdpfair-0.2.3 → benchmarkdpfair-0.2.5}/setup.cfg +0 -0
  12. {benchmarkdpfair-0.2.3 → benchmarkdpfair-0.2.5}/src/BenchmarkDPFair/Benchmark/__init__.py +0 -0
  13. {benchmarkdpfair-0.2.3 → benchmarkdpfair-0.2.5}/src/BenchmarkDPFair/Benchmark/benchmark.py +0 -0
  14. {benchmarkdpfair-0.2.3 → benchmarkdpfair-0.2.5}/src/BenchmarkDPFair/Benchmark/dataconf.py +0 -0
  15. {benchmarkdpfair-0.2.3 → benchmarkdpfair-0.2.5}/src/BenchmarkDPFair/Benchmark/utils/__init__.py +0 -0
  16. {benchmarkdpfair-0.2.3 → benchmarkdpfair-0.2.5}/src/BenchmarkDPFair/Benchmark/utils/auxiliar.py +0 -0
  17. {benchmarkdpfair-0.2.3 → benchmarkdpfair-0.2.5}/src/BenchmarkDPFair/Benchmark/utils/benchmark.py +0 -0
  18. {benchmarkdpfair-0.2.3 → benchmarkdpfair-0.2.5}/src/BenchmarkDPFair/Benchmark/utils/inp.py +0 -0
  19. {benchmarkdpfair-0.2.3 → benchmarkdpfair-0.2.5}/src/BenchmarkDPFair/Benchmark/utils/pos.py +0 -0
  20. {benchmarkdpfair-0.2.3 → benchmarkdpfair-0.2.5}/src/BenchmarkDPFair/Benchmark/utils/pre.py +0 -0
  21. {benchmarkdpfair-0.2.3 → benchmarkdpfair-0.2.5}/src/BenchmarkDPFair/Benchmark/utils/types.py +0 -0
  22. {benchmarkdpfair-0.2.3 → benchmarkdpfair-0.2.5}/src/BenchmarkDPFair/Benchmark/utils/verifiers.py +0 -0
  23. {benchmarkdpfair-0.2.3 → benchmarkdpfair-0.2.5}/src/BenchmarkDPFair/DataGenerator/__init__.py +0 -0
  24. {benchmarkdpfair-0.2.3 → benchmarkdpfair-0.2.5}/src/BenchmarkDPFair/DataGenerator/dataconf.py +0 -0
  25. {benchmarkdpfair-0.2.3 → benchmarkdpfair-0.2.5}/src/BenchmarkDPFair/DataGenerator/datagen.py +0 -0
  26. {benchmarkdpfair-0.2.3 → benchmarkdpfair-0.2.5}/src/BenchmarkDPFair/DataGenerator/utils/verifiers.py +0 -0
  27. {benchmarkdpfair-0.2.3 → benchmarkdpfair-0.2.5}/src/BenchmarkDPFair/__init__.py +0 -0
  28. {benchmarkdpfair-0.2.3 → benchmarkdpfair-0.2.5}/src/BenchmarkDPFair.egg-info/dependency_links.txt +0 -0
  29. {benchmarkdpfair-0.2.3 → benchmarkdpfair-0.2.5}/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.3
3
+ Version: 0.2.5
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,7 +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>=2.1.1
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"
48
50
  Requires-Dist: cvxpy>=1.6.5
49
51
  Requires-Dist: chex>=0.1.87
50
52
  Requires-Dist: BlackBoxAuditing==0.1.54
@@ -69,16 +71,24 @@ This repository provides a Python framework for **benchmarking fairness mechanis
69
71
  ## Installation
70
72
 
71
73
  > From source
72
- To install, clone the repository and install dependencies:
74
+ To install, either use PyPi to isntall it, or clone the repository and install dependencies:
73
75
 
74
76
  ```bash
75
77
  git clone https://github.com/vinicius-verona/dp-fair-intervention-benchmark.git
76
78
  cd dp-fair-intervention-benchmark
79
+
80
+ python3 -m venv dpfair-env
81
+ source dpfair-env/bin/activate
82
+
83
+ pip install torch --index-url https://download.pytorch.org/whl/cpu
77
84
  pip install -e .
78
85
  ```
79
86
 
80
87
  > Using PyPi **(SUGGESTED)**
81
88
  ```bash
89
+ python3 -m venv dpfair-env
90
+ source dpfair-env/bin/activate
91
+ pip install torch --index-url https://download.pytorch.org/whl/cpu
82
92
  pip install BenchmarkDPFair
83
93
  ````
84
94
 
@@ -89,8 +99,7 @@ pip install BenchmarkDPFair
89
99
  ```
90
100
  ├── data/ # Pre-offered datasets
91
101
  ├── src/ # Core source code
92
- ├── examples/ # Some demo
93
- ├── tests/ # Unit tests
102
+ ├── example/ # Files used in the main paper and a dummy example.
94
103
  └── README.md
95
104
  ```
96
105
 
@@ -17,16 +17,24 @@ This repository provides a Python framework for **benchmarking fairness mechanis
17
17
  ## Installation
18
18
 
19
19
  > From source
20
- To install, clone the repository and install dependencies:
20
+ To install, either use PyPi to isntall it, or clone the repository and install dependencies:
21
21
 
22
22
  ```bash
23
23
  git clone https://github.com/vinicius-verona/dp-fair-intervention-benchmark.git
24
24
  cd dp-fair-intervention-benchmark
25
+
26
+ python3 -m venv dpfair-env
27
+ source dpfair-env/bin/activate
28
+
29
+ pip install torch --index-url https://download.pytorch.org/whl/cpu
25
30
  pip install -e .
26
31
  ```
27
32
 
28
33
  > Using PyPi **(SUGGESTED)**
29
34
  ```bash
35
+ python3 -m venv dpfair-env
36
+ source dpfair-env/bin/activate
37
+ pip install torch --index-url https://download.pytorch.org/whl/cpu
30
38
  pip install BenchmarkDPFair
31
39
  ````
32
40
 
@@ -37,8 +45,7 @@ pip install BenchmarkDPFair
37
45
  ```
38
46
  ├── data/ # Pre-offered datasets
39
47
  ├── src/ # Core source code
40
- ├── examples/ # Some demo
41
- ├── tests/ # Unit tests
48
+ ├── example/ # Files used in the main paper and a dummy example.
42
49
  └── README.md
43
50
  ```
44
51
 
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "BenchmarkDPFair"
7
- version = "0.2.3"
7
+ version = "0.2.5"
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,11 +27,12 @@ dependencies = [
27
27
  "smartnoise-synth>=1.0.5",
28
28
  "tabulate>=0.9.0",
29
29
  "ucimlrepo>=0.0.7",
30
- "xgboost>=2.1.1",
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'",
31
33
  "cvxpy>=1.6.5",
32
34
  "chex>=0.1.87",
33
35
  "BlackBoxAuditing==0.1.54"
34
-
35
36
  ]
36
37
  license = { file = "LICENSE" }
37
38
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: BenchmarkDPFair
3
- Version: 0.2.3
3
+ Version: 0.2.5
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,7 +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>=2.1.1
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"
48
50
  Requires-Dist: cvxpy>=1.6.5
49
51
  Requires-Dist: chex>=0.1.87
50
52
  Requires-Dist: BlackBoxAuditing==0.1.54
@@ -69,16 +71,24 @@ This repository provides a Python framework for **benchmarking fairness mechanis
69
71
  ## Installation
70
72
 
71
73
  > From source
72
- To install, clone the repository and install dependencies:
74
+ To install, either use PyPi to isntall it, or clone the repository and install dependencies:
73
75
 
74
76
  ```bash
75
77
  git clone https://github.com/vinicius-verona/dp-fair-intervention-benchmark.git
76
78
  cd dp-fair-intervention-benchmark
79
+
80
+ python3 -m venv dpfair-env
81
+ source dpfair-env/bin/activate
82
+
83
+ pip install torch --index-url https://download.pytorch.org/whl/cpu
77
84
  pip install -e .
78
85
  ```
79
86
 
80
87
  > Using PyPi **(SUGGESTED)**
81
88
  ```bash
89
+ python3 -m venv dpfair-env
90
+ source dpfair-env/bin/activate
91
+ pip install torch --index-url https://download.pytorch.org/whl/cpu
82
92
  pip install BenchmarkDPFair
83
93
  ````
84
94
 
@@ -89,8 +99,7 @@ pip install BenchmarkDPFair
89
99
  ```
90
100
  ├── data/ # Pre-offered datasets
91
101
  ├── src/ # Core source code
92
- ├── examples/ # Some demo
93
- ├── tests/ # Unit tests
102
+ ├── example/ # Files used in the main paper and a dummy example.
94
103
  └── README.md
95
104
  ```
96
105
 
@@ -21,7 +21,4 @@ src/BenchmarkDPFair/Benchmark/utils/verifiers.py
21
21
  src/BenchmarkDPFair/DataGenerator/__init__.py
22
22
  src/BenchmarkDPFair/DataGenerator/dataconf.py
23
23
  src/BenchmarkDPFair/DataGenerator/datagen.py
24
- src/BenchmarkDPFair/DataGenerator/utils/verifiers.py
25
- tests/test_benchmark.py
26
- tests/test_dataconf.py
27
- tests/test_datagen.py
24
+ src/BenchmarkDPFair/DataGenerator/utils/verifiers.py
@@ -12,7 +12,15 @@ smartnoise-sql>=1.0.6
12
12
  smartnoise-synth>=1.0.5
13
13
  tabulate>=0.9.0
14
14
  ucimlrepo>=0.0.7
15
- xgboost>=2.1.1
16
15
  cvxpy>=1.6.5
17
16
  chex>=0.1.87
18
17
  BlackBoxAuditing==0.1.54
18
+
19
+ [:sys_platform == "darwin"]
20
+ xgboost>=3.2.0
21
+
22
+ [:sys_platform == "linux"]
23
+ xgboost-cpu>=3.2.0
24
+
25
+ [:sys_platform == "win32"]
26
+ xgboost-cpu>=3.2.0
@@ -1,31 +0,0 @@
1
- import sys
2
- from pathlib import Path
3
-
4
- # Add src/ to the Python path
5
- sys.path.insert(0, str(Path(__file__).resolve().parent.parent / "src"))
6
-
7
- from Benchmark.dataconf import DatasetConfig
8
-
9
-
10
- # Test DatsetConfig object creation
11
-
12
- def test_dataset_config():
13
-
14
- adult = DatasetConfig(
15
- name="Adult",
16
- target="income",
17
- root_dir="../data/",
18
- sensitive_attr="sex",
19
- categorical_cols=['workclass', 'education', 'marital-status', 'occupation', 'relationship', 'race', 'sex', 'native-country', 'income', 'age', 'hours-per-week'],
20
- usecols = [
21
- 'age', 'native-country', 'education', 'marital-status', 'occupation', 'relationship',
22
- 'hours-per-week', 'workclass', 'race', 'sex', 'income'
23
- ]
24
- )
25
-
26
- x = str(adult)
27
- assert x == "DatasetConfig(name=Adult,dir=../data/,target=income,sensitive_attr=sex,categorical_cols=['workclass', 'education', 'marital-status', 'occupation', 'relationship', 'race', 'sex', 'native-country', 'income', 'age', 'hours-per-week'],ordinal_cols=[],continuous_cols=[])"
28
-
29
-
30
- if __name__ == "__main__":
31
- test_dataset_config()
@@ -1,25 +0,0 @@
1
- from Benchmark.dataconf import BenchmarkDatasetConfig
2
-
3
-
4
- # Test DatsetConfig object creation
5
-
6
- def test_dataset_config():
7
-
8
- adult = BenchmarkDatasetConfig(
9
- name="Adult",
10
- target="income",
11
- root_dir="../data/",
12
- sensitive_attr="sex",
13
- categorical_cols=['workclass', 'education', 'marital-status', 'occupation', 'relationship', 'race', 'sex', 'native-country', 'income', 'age', 'hours-per-week'],
14
- usecols = [
15
- 'age', 'native-country', 'education', 'marital-status', 'occupation', 'relationship',
16
- 'hours-per-week', 'workclass', 'race', 'sex', 'income'
17
- ]
18
- )
19
-
20
- x = str(adult)
21
- assert x == "BenchmarkDatasetConfig(name=Adult,dir=../data/,target=income,sensitive_attr=sex,categorical_cols=['workclass', 'education', 'marital-status', 'occupation', 'relationship', 'race', 'sex', 'native-country', 'income', 'age', 'hours-per-week'],ordinal_cols=[],continuous_cols=[])"
22
-
23
-
24
- if __name__ == "__main__":
25
- test_dataset_config()
File without changes
File without changes