41 lines
946 B
Markdown
41 lines
946 B
Markdown
---
|
|
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(-)
|
|
```
|