{"adoption": {"forks": 288, "observed_at": "2026-08-28T04:04:11.194719+00:00", "stars": 1266}, "canonical_url": "https://ross.abutalabs.com/products/early-stopping-pytorch", "card": {"archived": false, "artifact_type": "library", "description": "Early stopping for PyTorch ", "domain": ["machine-learning", "deep-learning"], "enriched": true, "function": ["machine-learning", "developer-tools"], "health_score": 29, "homepage": null, "language": "Jupyter Notebook", "license": "MIT", "license_family": "permissive", "maturity": "stable", "member_repos": ["Bjarten/early-stopping-pytorch"], "name": "Bjarten/early-stopping-pytorch", "platform": ["python"], "pushed_at": "2024-11-11T10:34:07+00:00", "repo": "Bjarten/early-stopping-pytorch", "stars": 1266, "tags": ["pytorch", "early-stopping", "regularization", "model-training", "checkpointing"], "topics": ["pytorch", "early-stopping", "early", "stopping", "pytorch-tutorial", "python", "mnist", "regularization", "tutorial"], "urls": [], "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"], "what_it_is": "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.", "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"], "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"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/early-stopping-pytorch", "repo": "Bjarten/early-stopping-pytorch", "role": "main", "score": 34}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:04:11.194719+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T05:03:45.365658+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "1032a1404c428b20cf8a206ed2f19afca66ed26958caf0c0488080f0801b2a9c", "fetched_at": "2026-08-28T04:04:11.194719+00:00", "kind": "readme", "missing": false, "url": "https://github.com/Bjarten/early-stopping-pytorch"}, {"content_hash": "42422ca85e14f304040022485dfa2c9801d40630a870f2f0fdde4dc475e294c9", "fetched_at": "2026-08-29T12:15:50.919115+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/early-stopping-pytorch/json"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:04:11.194719+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T05:03:45.365658+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "1032a1404c428b20cf8a206ed2f19afca66ed26958caf0c0488080f0801b2a9c", "fetched_at": "2026-08-28T04:04:11.194719+00:00", "kind": "readme", "missing": false, "url": "https://github.com/Bjarten/early-stopping-pytorch"}, {"content_hash": "42422ca85e14f304040022485dfa2c9801d40630a870f2f0fdde4dc475e294c9", "fetched_at": "2026-08-29T12:15:50.919115+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/early-stopping-pytorch/json"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T05:03:45.365658+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "1032a1404c428b20cf8a206ed2f19afca66ed26958caf0c0488080f0801b2a9c", "fetched_at": "2026-08-28T04:04:11.194719+00:00", "kind": "readme", "missing": false, "url": "https://github.com/Bjarten/early-stopping-pytorch"}, {"content_hash": "42422ca85e14f304040022485dfa2c9801d40630a870f2f0fdde4dc475e294c9", "fetched_at": "2026-08-29T12:15:50.919115+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/early-stopping-pytorch/json"}], "taxonomy_version": 1}, "health_score": {"inputs": ["days_since_push", "days_since_release", "archived"], "kind": "computed", "method": "health_v1"}, "homepage": {"kind": "observed", "observed_at": "2026-08-28T04:04:11.194719+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:04:11.194719+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:04:11.194719+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T05:03:45.365658+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "1032a1404c428b20cf8a206ed2f19afca66ed26958caf0c0488080f0801b2a9c", "fetched_at": "2026-08-28T04:04:11.194719+00:00", "kind": "readme", "missing": false, "url": "https://github.com/Bjarten/early-stopping-pytorch"}, {"content_hash": "42422ca85e14f304040022485dfa2c9801d40630a870f2f0fdde4dc475e294c9", "fetched_at": "2026-08-29T12:15:50.919115+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/early-stopping-pytorch/json"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:04:11.194719+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:04:11.194719+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T05:03:45.365658+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "1032a1404c428b20cf8a206ed2f19afca66ed26958caf0c0488080f0801b2a9c", "fetched_at": "2026-08-28T04:04:11.194719+00:00", "kind": "readme", "missing": false, "url": "https://github.com/Bjarten/early-stopping-pytorch"}, {"content_hash": "42422ca85e14f304040022485dfa2c9801d40630a870f2f0fdde4dc475e294c9", "fetched_at": "2026-08-29T12:15:50.919115+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/early-stopping-pytorch/json"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:04:11.194719+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:04:11.194719+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:04:11.194719+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T05:03:45.365658+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "1032a1404c428b20cf8a206ed2f19afca66ed26958caf0c0488080f0801b2a9c", "fetched_at": "2026-08-28T04:04:11.194719+00:00", "kind": "readme", "missing": false, "url": "https://github.com/Bjarten/early-stopping-pytorch"}, {"content_hash": "42422ca85e14f304040022485dfa2c9801d40630a870f2f0fdde4dc475e294c9", "fetched_at": "2026-08-29T12:15:50.919115+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/early-stopping-pytorch/json"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:04:11.194719+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:04:11.194719+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T05:03:45.365658+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "1032a1404c428b20cf8a206ed2f19afca66ed26958caf0c0488080f0801b2a9c", "fetched_at": "2026-08-28T04:04:11.194719+00:00", "kind": "readme", "missing": false, "url": "https://github.com/Bjarten/early-stopping-pytorch"}, {"content_hash": "42422ca85e14f304040022485dfa2c9801d40630a870f2f0fdde4dc475e294c9", "fetched_at": "2026-08-29T12:15:50.919115+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/early-stopping-pytorch/json"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T05:03:45.365658+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "1032a1404c428b20cf8a206ed2f19afca66ed26958caf0c0488080f0801b2a9c", "fetched_at": "2026-08-28T04:04:11.194719+00:00", "kind": "readme", "missing": false, "url": "https://github.com/Bjarten/early-stopping-pytorch"}, {"content_hash": "42422ca85e14f304040022485dfa2c9801d40630a870f2f0fdde4dc475e294c9", "fetched_at": "2026-08-29T12:15:50.919115+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/early-stopping-pytorch/json"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T05:03:45.365658+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "1032a1404c428b20cf8a206ed2f19afca66ed26958caf0c0488080f0801b2a9c", "fetched_at": "2026-08-28T04:04:11.194719+00:00", "kind": "readme", "missing": false, "url": "https://github.com/Bjarten/early-stopping-pytorch"}, {"content_hash": "42422ca85e14f304040022485dfa2c9801d40630a870f2f0fdde4dc475e294c9", "fetched_at": "2026-08-29T12:15:50.919115+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/early-stopping-pytorch/json"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T05:03:45.365658+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "1032a1404c428b20cf8a206ed2f19afca66ed26958caf0c0488080f0801b2a9c", "fetched_at": "2026-08-28T04:04:11.194719+00:00", "kind": "readme", "missing": false, "url": "https://github.com/Bjarten/early-stopping-pytorch"}, {"content_hash": "42422ca85e14f304040022485dfa2c9801d40630a870f2f0fdde4dc475e294c9", "fetched_at": "2026-08-29T12:15:50.919115+00:00", "kind": "registry_pypi", "missing": false, "url": "https://pypi.org/pypi/early-stopping-pytorch/json"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 0, "longevity": 100, "rhythm": 40}, "computed_at": "2026-09-03T02:20:16.233290+00:00", "flags": [], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 2804, "days_push": 660, "days_rel": 660, "gap_med": 0, "n_releases_24m": 10}, "score": 34, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}