From 216ff66fd637c0cc84158f05b1fa038999e0a599 Mon Sep 17 00:00:00 2001 From: grafana-watcher Date: Sun, 5 Jul 2026 16:29:56 +0200 Subject: [PATCH] post: commit 450d681 in bojemoi --- .../commits/2026-07-05-commit-450d681.md | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 content/posts/commits/2026-07-05-commit-450d681.md 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(-) +```