Completed BTH coursework

Wine Quality Classification

A controlled comparison of scikit-learn classification pipelines with and without training-fold resampling.

  • scikit-learn
  • imbalanced-learn
  • Python
  • Jupyter
GitHub repository

70.3%holdout accuracy without SMOTE in the rerun

Bar chart comparing holdout accuracy of 70.3% without SMOTE and 66.9% with SMOTE.
Accuracy comparison generated from the documented local rerun.

The problem

Test whether training-fold resampling improves holdout performance on red wine quality labels.

Technical approach

The notebook compares Random Forest and SVM pipelines. Scaling and optional SMOTE occur within training folds. The pipelines are refit on the training set and scored on a common holdout.

System architecture
  1. UCI red wine data
  2. Train and holdout split
  3. Fold-local scaling and optional SMOTE
  4. Model selection
  5. Common holdout evaluation

My contribution

The coursework notebook and its documentation provide the experimental implementation and source attribution.

Results and evaluation

  • The local rerun measured 70.3% holdout accuracy without SMOTE and 66.9% with SMOTE. In this experiment, resampling lowered overall holdout accuracy.

Limitations

The comparison uses one dataset and one documented split. Class-level metrics and repeated splits would help establish whether the aggregate result conceals improvements on minority classes.

All projects