File size: 3,739 Bytes
0f3b5fc
 
 
 
 
 
2854858
 
0f3b5fc
 
 
 
 
 
2854858
 
0f3b5fc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2854858
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0f3b5fc
 
 
 
2854858
 
 
 
 
 
 
0f3b5fc
2854858
 
 
0f3b5fc
 
 
 
2854858
 
 
 
 
 
 
 
 
 
 
 
 
 
 
0f3b5fc
 
 
 
 
2854858
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
# AutoML Regression Model for Shoe Dataset

## Model Summary
This model was trained using **AutoGluon Tabular (v1.4.0)** on the dataset [maryzhang/hw1-24679-tabular-dataset](https://huggingface.co/datasets/maryzhang/hw1-24679-tabular-dataset).  
The task is **regression**, predicting the **actual measured shoe length (mm)** from shoe attributes.

- **Best Model**: `CatBoost_r177_BAG_L1` (bagged ensemble of CatBoost models)  
- **Test R² Score**: **0.8904** (≈ 89% variance explained)  
- **Validation R² Score**: 0.8049  
- **Pearson correlation**: 0.9473  
- **RMSE**: 1.80 mm  
- **MAE**: 1.10 mm  
- **Median AE**: 0.68 mm  

These values indicate the model can predict shoe length within ~1–2 mm of the actual measurement on average.

---

## Leaderboard (Top 5 Models)
| Rank | Model                  | Test R² | Val R²  | Pred Time (s) | Fit Time (s) |
|------|------------------------|---------|---------|---------------|--------------|
| 1    | CatBoost_r177_BAG_L1   | 0.8994  | 0.8049  | 0.0293        | 27.14        |
| 2    | LightGBMLarge_BAG_L2   | 0.8971  | 0.7995  | 0.7011        | 238.93       |
| 3    | CatBoost_BAG_L2        | 0.8939  | 0.8405  | 0.6155        | 276.40       |
| 4    | CatBoost_r9_BAG_L1     | 0.8917  | 0.7889  | 0.0606        | 53.87        |
| 5    | WeightedEnsemble_L3    | 0.8904  | 0.8500  | 0.9871        | 333.68       |

---

## Dataset
- **Source**: [maryzhang/hw1-24679-tabular-dataset](https://huggingface.co/datasets/maryzhang/hw1-24679-tabular-dataset)  
- **Size**: 338 samples (30 original, 308 augmented)  
- **Features**:
  - US size (numeric)  
  - Shoe size (mm) (numeric)  
  - Type of shoe (categorical)  
  - Shoe color (categorical)  
  - Shoe brand (categorical)  
- **Target**: *Actual measured shoe length (mm)*  
- **Splits**: 80% training, 20% testing (random_state=42)  

---

## Preprocessing
- Converted Hugging Face dataset to Pandas DataFrame  
- Train/test split with stratified random seed  
- AutoGluon handled categorical encoding, normalization, and feature selection automatically  

---

## Training Setup
- **Framework**: AutoGluon Tabular v1.4.0  
- **Search Strategy**: Bagged/stacked ensembles with model selection (`presets="best"`)  
- **Time Budget**: 1200 seconds (20 minutes)  
- **Evaluation Metric**: R²  
- **Hyperparameter Search**: Automated by AutoGluon (CatBoost, LightGBM, ensemble stacking)  

---

## Metrics
- **R²**: 0.8904 (test)  
- **RMSE**: 1.80 mm  
- **MAE**: 1.10 mm  
- **Median AE**: 0.68 mm  
- **Uncertainty**: Variability assessed across multiple base models in ensemble. Bagging reduces variance; expected error ±2 mm for most predictions.  

---

## Intended Use
- **Educational**: Demonstrates AutoML regression in CMU course 24-679  
- **Limitations**:  
  - Small dataset size (338 samples) → not robust for production use  
  - Augmented data may not reflect real-world variability  
  - Not suitable for medical or industrial applications  

---

## Ethical Considerations
- Predictions should **not** be used to recommend or prescribe footwear sizes in clinical or consumer contexts.  
- Dataset augmentation could introduce biases not present in real measurements.  

---

## License
- **Dataset**: MIT License  
- **Model**: MIT License  

---

## Hardware / Compute
- **Training**: Google Colab (CPU runtime)  
- **Time**: ~20 minutes wall-clock time  
- **RAM**: <8 GB used  

---

## AI Usage Disclosure
- Model training and hyperparameter search used **AutoML (AutoGluon)**.  
- Model card text and documentation partially generated with **AI assistance (ChatGPT)**.  

---

## Acknowledgments
- Dataset by **Mary Zhang (CMU 24-679)**  
- Model training and documentation by **Yash Sakhale**