bias_mitigation_benchmark / create_yaml.py
kleytondacosta's picture
fix: data folder
a94715d
raw
history blame
685 Bytes
import yaml
data_folder = "data"
data = {"license": "mit", "configs": []}
# Collect configurations based on folder structure
for task in ["binary_classification", "multiclass", "regression", "clustering",]:
for stage in ["preprocessing", "inprocessing", "postprocessing"]:
config = {
"config_name": task + "_" + stage,
"data_files": f"benchmark_{task}_{stage}.parquet"
}
data["configs"].append(config)
# Write YAML to README.md with delimiters
with open("README.md", "w") as file:
file.write("---\n") # Add starting delimiter
yaml.dump(data, file, default_flow_style=False)
file.write("---\n") # Add ending delimiter