kleytondacosta
commited on
Commit
•
a14a1b8
1
Parent(s):
9d9ff81
fix: subset format yaml
Browse files- README.md +36 -11
- create_yaml.py +21 -0
README.md
CHANGED
@@ -1,11 +1,36 @@
|
|
1 |
-
---
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
configs:
|
3 |
+
- config_name: compas_is_recid
|
4 |
+
data_files: data/compas_is_recid/compas_is_recid_dataset.parquet
|
5 |
+
- config_name: law_school
|
6 |
+
data_files: data/law_school/law_school_dataset.parquet
|
7 |
+
- config_name: acsincome
|
8 |
+
data_files: data/acsincome/acsincome_dataset.parquet
|
9 |
+
- config_name: bank_marketing
|
10 |
+
data_files: data/bank_marketing/bank_marketing_dataset.parquet
|
11 |
+
- config_name: mw_small
|
12 |
+
data_files: data/mw_small/mw_small_dataset.parquet
|
13 |
+
- config_name: clinical_records
|
14 |
+
data_files: data/clinical_records/clinical_records_dataset.parquet
|
15 |
+
- config_name: acspublic
|
16 |
+
data_files: data/acspublic/acspublic_dataset.parquet
|
17 |
+
- config_name: census_kdd
|
18 |
+
data_files: data/census_kdd/census_kdd_dataset.parquet
|
19 |
+
- config_name: student
|
20 |
+
data_files: data/student/student_dataset.parquet
|
21 |
+
- config_name: us_crime
|
22 |
+
data_files: data/us_crime/us_crime_dataset.parquet
|
23 |
+
- config_name: german_credit
|
24 |
+
data_files: data/german_credit/german_credit_dataset.parquet
|
25 |
+
- config_name: mw_medium
|
26 |
+
data_files: data/mw_medium/mw_medium_dataset.parquet
|
27 |
+
- config_name: last_fm
|
28 |
+
data_files: data/last_fm/last_fm_dataset.parquet
|
29 |
+
- config_name: adult
|
30 |
+
data_files: data/adult/adult_dataset.parquet
|
31 |
+
- config_name: diabetes
|
32 |
+
data_files: data/diabetes/diabetes_dataset.parquet
|
33 |
+
- config_name: compas_two_year_recid
|
34 |
+
data_files: data/compas_two_year_recid/compas_two_year_recid_dataset.parquet
|
35 |
+
license: mit
|
36 |
+
---
|
create_yaml.py
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import os
|
2 |
+
import yaml
|
3 |
+
|
4 |
+
data_folder = "data"
|
5 |
+
data = {"license": "mit", "configs": []}
|
6 |
+
|
7 |
+
# Collect configurations based on folder structure
|
8 |
+
for folder_name in os.listdir(data_folder):
|
9 |
+
folder_path = os.path.join(data_folder, folder_name)
|
10 |
+
if os.path.isdir(folder_path):
|
11 |
+
config = {
|
12 |
+
"config_name": folder_name,
|
13 |
+
"data_files": f"{folder_path}/{folder_name}_dataset.parquet"
|
14 |
+
}
|
15 |
+
data["configs"].append(config)
|
16 |
+
|
17 |
+
# Write YAML to README.md with delimiters
|
18 |
+
with open("README.md", "w") as file:
|
19 |
+
file.write("---\n") # Add starting delimiter
|
20 |
+
yaml.dump(data, file, default_flow_style=False)
|
21 |
+
file.write("---\n") # Add ending delimiter
|