Skip to content

[Feature] Train fix success predictor #180

Description

@ionfwsrijan

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

  • Produces fix_predictor.pkl
  • Prints ROC-AUC score to stdout
  • fix_predictor.pkl is gitignored
  • Script has --help flag

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions