File size: 685 Bytes
a94715d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
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 |