fix: wire ML retraining pipeline to actual training and persistence #83
Merged
wasabi opened 2 days ago

Summary

Connects the ML retraining scaffolding to actual model training and persistence.

Changes

  • trigger_retrain(): now calls fit_prophet/fit_isolation_forest and save_models based on model name
  • Updates last_retrain_at and records accuracy_after/improvement_pct
  • Auto-retrain: when schedule has auto_retrain=True, automatically triggers retrain on detection
  • Training failures are caught and logged without crashing

Tests

9 tests covering training invocation, model persistence, auto-retrain, and failure handling.

Commits were merged into target branch
1/1
Submitter wasabi
Target main
Source fix/ml-retraining-pipeline
Jobs
Merge Strategy
Create Merge Commit
Watchers (1)
Reference
pull request KI-83
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover