BenchmarkDPFair 0.2.4__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.4/src/BenchmarkDPFair.egg-info → benchmarkdpfair-0.2.5}/PKG-INFO +5 -4
  2. {benchmarkdpfair-0.2.4 → benchmarkdpfair-0.2.5}/README.md +1 -2
  3. {benchmarkdpfair-0.2.4 → benchmarkdpfair-0.2.5}/pyproject.toml +4 -2
  4. {benchmarkdpfair-0.2.4 → benchmarkdpfair-0.2.5/src/BenchmarkDPFair.egg-info}/PKG-INFO +5 -4
  5. {benchmarkdpfair-0.2.4 → benchmarkdpfair-0.2.5}/src/BenchmarkDPFair.egg-info/SOURCES.txt +1 -4
  6. {benchmarkdpfair-0.2.4 → benchmarkdpfair-0.2.5}/src/BenchmarkDPFair.egg-info/requires.txt +9 -1
  7. benchmarkdpfair-0.2.4/tests/test_benchmark.py +0 -31
  8. benchmarkdpfair-0.2.4/tests/test_dataconf.py +0 -25
  9. benchmarkdpfair-0.2.4/tests/test_datagen.py +0 -0
  10. {benchmarkdpfair-0.2.4 → benchmarkdpfair-0.2.5}/LICENSE +0 -0
  11. {benchmarkdpfair-0.2.4 → benchmarkdpfair-0.2.5}/setup.cfg +0 -0
  12. {benchmarkdpfair-0.2.4 → benchmarkdpfair-0.2.5}/src/BenchmarkDPFair/Benchmark/__init__.py +0 -0
  13. {benchmarkdpfair-0.2.4 → benchmarkdpfair-0.2.5}/src/BenchmarkDPFair/Benchmark/benchmark.py +0 -0
  14. {benchmarkdpfair-0.2.4 → benchmarkdpfair-0.2.5}/src/BenchmarkDPFair/Benchmark/dataconf.py +0 -0
  15. {benchmarkdpfair-0.2.4 → benchmarkdpfair-0.2.5}/src/BenchmarkDPFair/Benchmark/utils/__init__.py +0 -0
  16. {benchmarkdpfair-0.2.4 → benchmarkdpfair-0.2.5}/src/BenchmarkDPFair/Benchmark/utils/auxiliar.py +0 -0
  17. {benchmarkdpfair-0.2.4 → benchmarkdpfair-0.2.5}/src/BenchmarkDPFair/Benchmark/utils/benchmark.py +0 -0
  18. {benchmarkdpfair-0.2.4 → benchmarkdpfair-0.2.5}/src/BenchmarkDPFair/Benchmark/utils/inp.py +0 -0
  19. {benchmarkdpfair-0.2.4 → benchmarkdpfair-0.2.5}/src/BenchmarkDPFair/Benchmark/utils/pos.py +0 -0
  20. {benchmarkdpfair-0.2.4 → benchmarkdpfair-0.2.5}/src/BenchmarkDPFair/Benchmark/utils/pre.py +0 -0
  21. {benchmarkdpfair-0.2.4 → benchmarkdpfair-0.2.5}/src/BenchmarkDPFair/Benchmark/utils/types.py +0 -0
  22. {benchmarkdpfair-0.2.4 → benchmarkdpfair-0.2.5}/src/BenchmarkDPFair/Benchmark/utils/verifiers.py +0 -0
  23. {benchmarkdpfair-0.2.4 → benchmarkdpfair-0.2.5}/src/BenchmarkDPFair/DataGenerator/__init__.py +0 -0
  24. {benchmarkdpfair-0.2.4 → benchmarkdpfair-0.2.5}/src/BenchmarkDPFair/DataGenerator/dataconf.py +0 -0
  25. {benchmarkdpfair-0.2.4 → benchmarkdpfair-0.2.5}/src/BenchmarkDPFair/DataGenerator/datagen.py +0 -0
  26. {benchmarkdpfair-0.2.4 → benchmarkdpfair-0.2.5}/src/BenchmarkDPFair/DataGenerator/utils/verifiers.py +0 -0
  27. {benchmarkdpfair-0.2.4 → benchmarkdpfair-0.2.5}/src/BenchmarkDPFair/__init__.py +0 -0
  28. {benchmarkdpfair-0.2.4 → benchmarkdpfair-0.2.5}/src/BenchmarkDPFair.egg-info/dependency_links.txt +0 -0
  29. {benchmarkdpfair-0.2.4 → 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.4
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-cpu>=3.2.0
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
@@ -97,8 +99,7 @@ pip install BenchmarkDPFair
97
99
  ```
98
100
  ├── data/ # Pre-offered datasets
99
101
  ├── src/ # Core source code
100
- ├── examples/ # Some demo
101
- ├── tests/ # Unit tests
102
+ ├── example/ # Files used in the main paper and a dummy example.
102
103
  └── README.md
103
104
  ```
104
105
 
@@ -45,8 +45,7 @@ pip install BenchmarkDPFair
45
45
  ```
46
46
  ├── data/ # Pre-offered datasets
47
47
  ├── src/ # Core source code
48
- ├── examples/ # Some demo
49
- ├── tests/ # Unit tests
48
+ ├── example/ # Files used in the main paper and a dummy example.
50
49
  └── README.md
51
50
  ```
52
51
 
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "BenchmarkDPFair"
7
- version = "0.2.4"
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,7 +27,9 @@ dependencies = [
27
27
  "smartnoise-synth>=1.0.5",
28
28
  "tabulate>=0.9.0",
29
29
  "ucimlrepo>=0.0.7",
30
- "xgboost-cpu>=3.2.0",
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"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: BenchmarkDPFair
3
- Version: 0.2.4
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-cpu>=3.2.0
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
@@ -97,8 +99,7 @@ pip install BenchmarkDPFair
97
99
  ```
98
100
  ├── data/ # Pre-offered datasets
99
101
  ├── src/ # Core source code
100
- ├── examples/ # Some demo
101
- ├── tests/ # Unit tests
102
+ ├── example/ # Files used in the main paper and a dummy example.
102
103
  └── README.md
103
104
  ```
104
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-cpu>=3.2.0
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