You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Model Performance Prediction (Section 4.3 and Appendix F)
2
+
3
+
We use [`uv`](https://docs.astral.sh/uv/) for the experiment environment in this directory. See the official site for installation.
4
+
5
+
### Setup
6
+
7
+
With `uv` available, install the required packages:
8
+
9
+
```bash
10
+
$ uv sync
11
+
```
12
+
13
+
The experiments use [`../data/modeldata_1018.pkl`](../data/modeldata_1018.pkl) and [`../data/uniq-idx-weight/`](../data/uniq-idx-weight/). See [`../README.md`](../README.md) for details of these data.
14
+
15
+
### Data Preparation
16
+
17
+
Prepare training and prediction splits for ridge regression with `GroupKFold`:
18
+
19
+
```bash
20
+
$ uv run src/split_data.py
21
+
```
22
+
23
+
Five-fold splits with five seeds are saved to `output/split_data/groupkfold/`.
24
+
25
+
### Train and Predict with Ridge Regression
26
+
27
+
Train the ridge regression models and generate predictions (**This step takes about half a day !**) :
28
+
29
+
```bash
30
+
$ uv run src/train_and_pred.py
31
+
```
32
+
33
+
Predictions for each method (Uniform, KL, LS) are saved to `output/train_and_pred/groupkfold/`.
0 commit comments