post: commit 450d681 in bojemoi
Some checks failed
Hugo Build & Deploy / build-deploy (push) Failing after 7s

This commit is contained in:
grafana-watcher
2026-07-05 16:29:56 +02:00
committed by Betty
parent 4949000a1c
commit 216ff66fd6

View File

@@ -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 <noreply@anthropic.com>
### Files Changed
```
M ml-threat/api.py
```
### Diff Summary
```
ml-threat/api.py | 13 ++++++++++---
1 file changed, 10 insertions(+), 3 deletions(-)
```