kostis-init commited on
Commit
98c84f9
Β·
1 Parent(s): 3ab0825
Files changed (4) hide show
  1. src/config.py +2 -2
  2. src/ui.py +1 -1
  3. src/user_eval.py +2 -2
  4. template.py +1 -1
src/config.py CHANGED
@@ -17,8 +17,8 @@ LDB_COLS = [
17
  ]
18
 
19
  # dataset versions
20
- DATASET_VERSIONS = ["v1", "v1_verified", "v2"]
21
- DEFAULT_DATASET_VERSION = "v2"
22
 
23
  # modelling frameworks
24
  CPMPY_FRAMEWORK = "CPMpy"
 
17
  ]
18
 
19
  # dataset versions
20
+ DATASET_VERSIONS = ["v1", "v1_verified"]
21
+ DEFAULT_DATASET_VERSION = DATASET_VERSIONS[-1]
22
 
23
  # modelling frameworks
24
  CPMPY_FRAMEWORK = "CPMpy"
src/ui.py CHANGED
@@ -101,7 +101,7 @@ def create_ui():
101
  "2. **File Format**: Ensure that the uploaded files are in the correct format. The submission file must be a `.jsonl` file, and the report must be a `pdf` file.\n"
102
  "3. **Evaluation Script**: It is highly recommended to use the evaluation script provided [here](https://huggingface.co/spaces/kostis-init/CP-Bench-competition/blob/main/src/user_eval.py) to check your results before submission. You can run the script as follows:\n"
103
  " ```bash\n"
104
- " python user_eval.py --submission_file path/to/my/submission.jsonl --modelling_framework CPMpy --dataset_version v2\n"
105
  " ```\n"
106
  " This will evaluate your submission locally and print the results to the console.\n"
107
  "4. **Modelling Frameworks**: Currently, the supported modelling frameworks are MiniZinc, CPMpy and OR-Tools. More frameworks can be added (feel free to submit pull requests)."
 
101
  "2. **File Format**: Ensure that the uploaded files are in the correct format. The submission file must be a `.jsonl` file, and the report must be a `pdf` file.\n"
102
  "3. **Evaluation Script**: It is highly recommended to use the evaluation script provided [here](https://huggingface.co/spaces/kostis-init/CP-Bench-competition/blob/main/src/user_eval.py) to check your results before submission. You can run the script as follows:\n"
103
  " ```bash\n"
104
+ " python user_eval.py --submission_file path/to/my/submission.jsonl --modelling_framework CPMpy --dataset_version v1_verified\n"
105
  " ```\n"
106
  " This will evaluate your submission locally and print the results to the console.\n"
107
  "4. **Modelling Frameworks**: Currently, the supported modelling frameworks are MiniZinc, CPMpy and OR-Tools. More frameworks can be added (feel free to submit pull requests)."
src/user_eval.py CHANGED
@@ -16,7 +16,7 @@ CPMPY_FRAMEWORK = "CPMpy"
16
  MINIZINC_FRAMEWORK = "MiniZinc"
17
  ORTOOLS_FRAMEWORK = "OR-Tools"
18
 
19
- DATASET_VERSIONS = ["v1", "v1_verified", "v2"]
20
 
21
  GT_DATASET_NAME = "kostis-init/CP-Bench"
22
  GT_PROBLEM_NAME_COLUMN = "id"
@@ -345,7 +345,7 @@ def evaluate_submission(submitted_models, summary_file_path, modelling_framw, to
345
  @click.option('--modelling_framework', required=True,
346
  type=click.Choice([CPMPY_FRAMEWORK, ORTOOLS_FRAMEWORK, MINIZINC_FRAMEWORK]),
347
  help='Modelling framework used in the submission')
348
- @click.option('--dataset_version', default='v2', required=True,
349
  type=click.Choice(DATASET_VERSIONS),
350
  help='Dataset version to use for evaluation')
351
  def main(submission_file: Path, modelling_framework: str, dataset_version: str):
 
16
  MINIZINC_FRAMEWORK = "MiniZinc"
17
  ORTOOLS_FRAMEWORK = "OR-Tools"
18
 
19
+ DATASET_VERSIONS = ["v1", "v1_verified"]
20
 
21
  GT_DATASET_NAME = "kostis-init/CP-Bench"
22
  GT_PROBLEM_NAME_COLUMN = "id"
 
345
  @click.option('--modelling_framework', required=True,
346
  type=click.Choice([CPMPY_FRAMEWORK, ORTOOLS_FRAMEWORK, MINIZINC_FRAMEWORK]),
347
  help='Modelling framework used in the submission')
348
+ @click.option('--dataset_version', default=DATASET_VERSIONS[-1], required=True,
349
  type=click.Choice(DATASET_VERSIONS),
350
  help='Dataset version to use for evaluation')
351
  def main(submission_file: Path, modelling_framework: str, dataset_version: str):
template.py CHANGED
@@ -5,7 +5,7 @@ from together import Together
5
 
6
  # === DATASET CONFIGURATION (Do not change, except potentially the split) ===
7
  GT_DATASET_NAME = "kostis-init/CP-Bench"
8
- DATASET_SPLIT = "v2" # Choose the appropriate version/split for your submission
9
  PROBLEM_ID_COLUMN = "id"
10
  PROBLEM_DESCRIPTION_COLUMN = "description"
11
  PROBLEM_DATA_COLUMN = "input_data"
 
5
 
6
  # === DATASET CONFIGURATION (Do not change, except potentially the split) ===
7
  GT_DATASET_NAME = "kostis-init/CP-Bench"
8
+ DATASET_SPLIT = "v1_verified" # Choose the appropriate version/split for your submission
9
  PROBLEM_ID_COLUMN = "id"
10
  PROBLEM_DESCRIPTION_COLUMN = "description"
11
  PROBLEM_DATA_COLUMN = "input_data"