Machine learning: comment éviter le surapprentissage sur un petit dataset ?

asked 13 days ago54 viewsfr

3

J'ai seulement ~2000 exemples étiquetés. Le modèle mémorise l'ensemble d'entraînement. Régularisation, augmentation de données, validation croisée — par où commencer ?

🤖 AI diagnosis

AI-generated. Not an answer — the community below confirms or corrects it. Always verify before relying on it.

2 Answers

8
Accepted answer

Use a healthcheck and condition: service_healthy:

db:
  healthcheck:
    test: ["CMD-SHELL", "pg_isready -U postgres"]
    interval: 5s
    retries: 5
app:
  depends_on:
    db:
      condition: service_healthy

Also add app-level connection retries — containers restart.

Sign in to tell others whether this worked.

answered 13 days ago
7

With ~2000 examples: start with cross-validation (5-fold), strong regularization (dropout / weight decay), and early stopping. Then data augmentation. Prefer a small model or fine-tune a pretrained one rather than training from scratch.

Sign in to tell others whether this worked.

answered 13 days ago

Sign in and verify your email to post an answer.