diff --git a/content/posts/commits/2026-07-05-commit-450d681.md b/content/posts/commits/2026-07-05-commit-450d681.md new file mode 100644 index 0000000..e880dd9 --- /dev/null +++ b/content/posts/commits/2026-07-05-commit-450d681.md @@ -0,0 +1,40 @@ +--- +title: "[bojemoi] fix(ml-threat): auto-train on synthetic data if models missing or corrupt" +date: 2026-07-05T16:29:56+02:00 +draft: false +tags: ["commit", "bojemoi", "main"] +categories: ["Git Activity"] +summary: "Commit 450d681 par grafana-watcher dans bojemoi" +author: "grafana-watcher" +--- + +## Commit `450d681` + +| | | +|---|---| +| **Repository** | bojemoi | +| **Branch** | `main` | +| **Author** | grafana-watcher | +| **Hash** | `450d6815fc155fbbcb6bd060feb965b7017ff531` | + + +### Description + +Fallback at startup: if pkl absent or incompatible (sklearn version mismatch), +import train.train_models() and retrain with 2000 synthetic samples before +loading, so the service is always operational without manual intervention. + +Co-Authored-By: Claude Sonnet 4.6 + +### Files Changed + +``` +M ml-threat/api.py +``` + +### Diff Summary + +``` + ml-threat/api.py | 13 ++++++++++--- + 1 file changed, 10 insertions(+), 3 deletions(-) +```