Skip to content
Snippets Groups Projects
README.md 1.17 KiB
Newer Older
Shay Cohen's avatar
Shay Cohen committed
## File Descriptions

### `main.py`

Shay Cohen's avatar
Shay Cohen committed
This is the main script that sets up the entire process, including loading datasets, model initialisation, and evaluation.
Shay Cohen's avatar
Shay Cohen committed

To execute the main script, use the following command:

```bash
Shay Cohen's avatar
Shay Cohen committed
cd code_question
Shay Cohen's avatar
Shay Cohen committed
```

```bash
Shay Cohen's avatar
Shay Cohen committed
python main.py --dataset  mmlu-redux-college_mathematics  --method comat --model gpt
Shay Cohen's avatar
Shay Cohen committed
```

### `mmlu_redux.py`

Shay Cohen's avatar
Shay Cohen committed
This file contains functions for processing the MMLU-Redux dataset.
Shay Cohen's avatar
Shay Cohen committed

- **`process_mmlu_redux_questions`**: Processes questions from the MMLU-Redux dataset and evaluates them.

Shay Cohen's avatar
Shay Cohen committed
This directory also contains prompt files associated with the College Mathematics dataset:
Shay Cohen's avatar
Shay Cohen committed

Shay Cohen's avatar
Shay Cohen committed
- **`MMLU-Redux-college_mathematics_prompts/comat.txt`**: Prompt file for the CoMAT method.
- **`CoMAT_Instruction.py`**: Prompt file for the CoMAT method, used for evaluation in this assignment.
Shay Cohen's avatar
Shay Cohen committed


### `shapley_value_evaluation.py`

Shay Cohen's avatar
Shay Cohen committed
This script evaluates the Shapley value, a concept from cooperative game theory. The Shapley value is used to fairly distribute total gains among participants based on their individual contributions.
Shay Cohen's avatar
Shay Cohen committed

### `utils.py`

Shay Cohen's avatar
Shay Cohen committed
This file contains functions for using gpt to make predictions with different models and evaluate their outputs.