← All data projects

Skills Exercised

Languages

  • Python
  • JavaScript

Frameworks & Tools

  • PyTorch
  • Hugging Face Transformers
  • ONNX Runtime
  • MLflow
  • NumPy
  • pandas
  • scikit-learn
  • Flask
  • Docker

Concepts

  • Transformer Fine-Tuning
  • Backpropagation
  • Model Quantization
  • Experiment Tracking
  • Data Leakage Prevention
  • Model Serving

Overview

Will You Get In? predicts whether a graduate school application was accepted or rejected from the details applicants post on The GradCafe: program, university, degree, citizenship, GPA, GRE scores, and a free-text comment. A fine-tuned DistilBERT model gets 79.1% of held-out results right, compared with 55.2% for always guessing “Rejected” and 71.8% for the two-layer neural network written from scratch in NumPy. The text fields make the difference: the baseline could only use six numeric and yes/no features, and the transformer raises recall for accepted applicants from 55% to 71%. The data is self-reported which leaves out many factors that decide admissions, such as essays, letters, and research fit, and the model leans heavily on degree type. The demo is meant to show the techniques at work rather than offering admissions advice.

Both models learn from roughly 39,000 decided results that were scraped and cleaned in earlier projects, and both are tested on the 20% of results they never saw in training. The baseline implements the forward pass and backpropagation by hand, with sigmoid activations, MSE loss, and early stopping. For the transformer, each applicant is written into a single text template. Missing scores become “Not reported”, and outcome words in comments are redacted so the model can’t read the answer. distilbert-base-uncased is then fine-tuned for three epochs in PyTorch. MLflow tracks every run in one experiment, so the models can be compared side by side. For serving, the model is exported to ONNX and quantized to int8, which shrinks it from 268 MB to 67 MB for a 0.05-point drop in accuracy. It runs in a Flask app on ONNX Runtime alone, without PyTorch, inside a Docker container that uses about 175 MB of memory. A test confirms the app builds its input text exactly as training did for every row of the dataset.

Screenshots

The Will You Get In? demo showing an Accepted prediction, a 90% score, and the model's input text with an outcome word redacted
Live Prediction Demo
MLflow charts comparing test accuracy, F1, precision, and recall for the NumPy baseline, the PyTorch DistilBERT model, and the int8 ONNX model
MLflow Model Comparison
Training and test MSE for the NumPy baseline over 10,000 epochs, with a plateau followed by a sharp drop near epoch 2,000
Baseline Training Curve