Quest 02 / 03 · Quick build
Add an abstain option to a survey classifier
- PyTorch
- classification
- confidence thresholds
Why now Liquid AI says its d1.2 decision model can return a value such as not found when evidence is missing, with low-confidence cases routed to a person. Test the same kind of handoff in a small survey-data classifier, without treating its predictions as medical guidance.
Build it Make a PyTorch notebook that trains a binary classifier on a small subset of the health-indicator survey data and sends low-confidence holdout predictions to a review bucket. Report model coverage and accuracy on the cases it answers; this is an educational exercise, not a clinical tool.
From the news
Tools
- PyTorch
PyTorch source is free under its BSD-style license. Hardware, cloud compute and third-party components can have separate costs or terms.
Data
- Diabetes Health Indicators Dataset Kaggle
Supply survey responses for a small binary classification exercise; inspect the columns and keep the result out of clinical use.
Steps
- Load the survey data and inspect the columns; choose a binary outcome and a small predictor set that the data supports.
- Create a reproducible train and holdout split, then fit a small PyTorch classifier on the training rows.
- Set a confidence threshold and route holdout predictions below it to a review bucket.
- Print accuracy on answered cases, the share routed for review, and a confusion matrix for answered cases.
Done when
- The notebook runs on a laptop-sized sample and reports the chosen threshold with its holdout results.
- Changing the threshold changes the review share, and the notebook keeps survey predictions separate from medical advice.
