Download source/launch_create_dataset.py from Almanach-HF/flowshop_transformer: direct link, hf CLI and curl.
- Browser
- Download file 577 Bytes
-
https://huggingface.co/Almanach-HF/flowshop_transformer/resolve/main/source/launch_create_dataset.py
- Command line
-
hf download hf://Almanach-HF/flowshop_transformer/source/launch_create_dataset.py
-
curl -L -o launch_create_dataset.py https://huggingface.co/Almanach-HF/flowshop_transformer/resolve/main/source/launch_create_dataset.py
577 Bytes
| from create_dataset import create_dataset | |
| params = [ | |
| { | |
| "testing": False, | |
| "nb_jobs": nb_jobs, | |
| "nb_machines": nb_machines, | |
| "time_min": 0, | |
| "time_max": 1, | |
| "nb_samples": 0, | |
| "init_type": "exhaustive", | |
| "output_dir": f"../datasets/exhaustive_{nb_jobs}_{nb_machines}", | |
| "seed": 97, | |
| "normalize_makespans": True, | |
| "pfsp_instance": "", | |
| "autoname_output_dir": False, | |
| } | |
| for nb_jobs in range(7, 11) | |
| for nb_machines in range(2, 7) | |
| ] | |
| for param in params: | |
| create_dataset(**param) |