Downloads · 30 days
0
leixiang25/hw2-tops-fit-automl
hw2-tops-fit-automl is a tabular classification model from leixiang25. Use it for the tabular classification task on the model card, and read the license before you ship it in a product. It is set up for flaml. The card lists the license as cc-by-4.0.
Predicts how a top fits one specific wearer (tight, regular, baggy) from its brand, fabric, garment type and flat-lay measurements. Built for CMU 24-679 Homework 2 to practice AutoML — not a size-recommendation tool f…
Downloads · 30 days
0
Access
Public
Updated Sep 24, 2026
Repo size
520 KB
Likes
0
Public
Click a slice to open those files.
.pkl520 KB · 99%
From the Hugging Face model README
Predicts how a top fits one specific wearer (tight, regular, baggy) from its brand, fabric,
garment type and flat-lay measurements. Built for CMU 24-679 Homework 2 to practice AutoML — not a
size-recommendation tool for other people.
ypolatog.Categorical columns cast to pandas category with a shared vocabulary; no scaling (tree models).
xgboost{'n_estimators': 72, 'max_leaves': 8, 'min_child_weight': np.float64(19.50627616863098), 'learning_rate': np.float64(0.020232966686106597), 'subsample': np.float64(0.7004758809403493), 'colsample_bylevel': 1.0, 'colsample_bytree': 1.0, 'reg_alpha': 0.0009765625, 'reg_lambda': np.float64(0.018706743166653998)}| Metric | Value |
|---|---|
| Cross-validated macro-F1 (train) | 0.780 |
| Test accuracy (8 real tops) | 0.750 |
| Test macro-F1 | 0.750 |
| Majority-class baseline accuracy | 0.500 |
Uncertainty: with only 8 test tops, one prediction = 12.5 accuracy points, so these numbers are very noisy.
brand carries little reliable signal.regular and the other classes is fuzzy.import pickle, pandas as pd
model = pickle.load(open("model.pkl", "rb"))
model.predict(pd.DataFrame([...])) # same 6 feature columns, categorical columns as pandas category
Google Colab CPU, ~120s search.
Code and this card were drafted with Claude (Anthropic) and reviewed, run, and interpreted by the author.
Dataset by ypolatog (CMU 24-679, Fall 2026).
model.pkl stores the full FLAML AutoML object using Python's pickle format. Hugging Face's scanner flags it because pickle files can execute code when loaded, and this file references libraries outside the scanner's safe list (FLAML, XGBoost, NumPy). It contains no malicious code, but as a general rule, only load pickle files from sources you trust. In future work I would also export the model in a safe format, such as XGBoost's native JSON (save_model("model.json")), alongside the pickle.