Skip to content

Commit 101d32f

Browse files
authored
Merge pull request #7 from NGO-Algorithm-Audit/feature/heat-map
Feature/heat map
2 parents d2fad42 + 3a2c796 commit 101d32f

24 files changed

+25672
-25
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,6 @@ dist-ssr
2222
*.njsproj
2323
*.sln
2424
*.sw?
25+
26+
__pycache__
27+
*.pyc

datasets/__init__.py

Whitespace-only changes.

datasets/adult/__init__.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import pandas as pd
2+
from pathlib import Path
3+
import json
4+
5+
6+
data_folder = Path(__file__).resolve().parent / "data"
7+
dtypes_path = (data_folder / "dtypes.json")
8+
csv_path = str(data_folder / "adult.data")
9+
10+
11+
with dtypes_path.open('r') as f:
12+
dtypes = json.load(f)
13+
columns = list(dtypes.keys())
14+
df = pd.read_csv(csv_path, header=None, names=columns).astype(dtypes)

datasets/data/bar_pass_prediction.csv

Lines changed: 22408 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import pandas as pd
2+
from pathlib import Path
3+
import json
4+
5+
6+
data_folder = Path(__file__).resolve().parent / "data"
7+
dtypes_path = (data_folder / "dtypes.json")
8+
csv_path = str(data_folder / "bar_pass_prediction.csv")
9+
10+
11+
with dtypes_path.open('r') as f:
12+
dtypes = json.load(f)
13+
columns = list(dtypes.keys())
14+
df = pd.read_csv(csv_path, skiprows=1, sep=';', header=None, names=columns).astype(dtypes)

datasets/winequality/__init__.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import pandas as pd
2+
from pathlib import Path
3+
import json
4+
5+
6+
data_folder = Path(__file__).resolve().parent / "data"
7+
dtypes_path = (data_folder / "dtypes.json")
8+
csv_path = str(data_folder / "winequality-white.csv")
9+
10+
11+
with dtypes_path.open('r') as f:
12+
dtypes = json.load(f)
13+
columns = list(dtypes.keys())
14+
df = pd.read_csv(csv_path, skiprows=1, sep=';', header=None, names=columns).astype(dtypes)

0 commit comments

Comments
 (0)