Ross ROSS = Recommend OSS · open-source software intelligence for agents

Bjarten/early-stopping-pytorch

Early stopping for PyTorch observed · 2026-08-28

github.com/Bjarten/early-stopping-pytorch · Jupyter Notebook · MIT (permissive) observed · 2026-08-28

Health v2 · maintenance only

34/100

  • Activity 0
  • Release rhythm 40
  • Longevity 100
How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.

  • gap_med: 0
  • age_days: 2804
  • days_rel: 660
  • days_push: 660
  • n_releases_24m: 10

Full methodology

Adoption not part of the score

1266 stars · 288 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

A small PyTorch utility package providing an EarlyStopping class that monitors validation loss during training and stops when it stops improving. It also saves model checkpoints whenever validation loss decreases.

Use cases

  • stop pytorch training when validation loss stops improving
  • prevent overfitting in pytorch model training
  • save best model checkpoint during training
  • add early stopping with patience to training loop
  • regularize deep learning model training

When to choose

  • you train PyTorch models and want simple early stopping with checkpointing
  • you want a lightweight pip-installable utility rather than a full training framework

When to avoid

  • you use TensorFlow/Keras, which has built-in early stopping callbacks
  • you need a full experiment tracking or training framework like PyTorch Lightning or Ignite

Facets

library · maturity stable

machine-learning developer-tools machine-learning deep-learning python pytorch early-stopping regularization model-training checkpointing

2 sources

Member repositories

RepositoryRoleHealth v2
Bjarten/early-stopping-pytorchmain34

For agents

markdown · JSON · MCP: product_card(name="Bjarten/early-stopping-pytorch")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem