Description
Train a logistic regression model that predicts whether a proposed fix will pass verification, given its features.
What to implement
Create backend/scripts/train_fix_predictor.py:
- Reads CSV from Issue 5.2 (or directly from SQLite)
- Encodes categorical features, trains
LogisticRegression
- Reports accuracy and ROC-AUC on 20% held-out split
- Saves to
backend/app/ml/models/fix_predictor.pkl
- Requires ≥ 100 examples; exits with message if fewer
Acceptance criteria
Description
Train a logistic regression model that predicts whether a proposed fix will pass verification, given its features.
What to implement
Create
backend/scripts/train_fix_predictor.py:LogisticRegressionbackend/app/ml/models/fix_predictor.pklAcceptance criteria
fix_predictor.pklfix_predictor.pklis gitignored--helpflag