Files
blog/content/posts/commits/2026-07-05-commit-450d681.md
grafana-watcher 216ff66fd6
Some checks failed
Hugo Build & Deploy / build-deploy (push) Failing after 7s
post: commit 450d681 in bojemoi
2026-07-05 16:29:57 +02:00

946 B

title, date, draft, tags, categories, summary, author
title date draft tags categories summary author
[bojemoi] fix(ml-threat): auto-train on synthetic data if models missing or corrupt 2026-07-05T16:29:56+02:00 false
commit
bojemoi
main
Git Activity
Commit 450d681 par grafana-watcher dans bojemoi 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 noreply@anthropic.com

Files Changed

M	ml-threat/api.py

Diff Summary

 ml-threat/api.py | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)