{"adoption": {"forks": 266, "observed_at": "2026-08-28T04:06:37.465536+00:00", "stars": 2326}, "canonical_url": "https://ross.abutalabs.com/products/imbalanced-dataset-sampler", "card": {"archived": false, "artifact_type": "library", "description": "A (PyTorch) imbalanced dataset sampler for oversampling low frequent classes and undersampling high frequent ones.", "domain": ["machine-learning", "deep-learning"], "enriched": true, "function": ["machine-learning", "data-science"], "health_score": 75, "homepage": null, "language": "Python", "license": "MIT", "license_family": "permissive", "maturity": "stable", "member_repos": ["ufoym/imbalanced-dataset-sampler"], "name": "ufoym/imbalanced-dataset-sampler", "platform": ["python"], "pushed_at": "2026-07-06T20:24:50+00:00", "repo": "ufoym/imbalanced-dataset-sampler", "stars": 2326, "tags": ["pytorch", "sampler", "imbalanced-data", "oversampling", "undersampling"], "topics": ["pytorch", "imbalanced-data", "image-classification", "data-sampling"], "urls": [], "use_cases": ["handle imbalanced datasets in pytorch", "oversample minority classes during training", "prevent model bias toward majority class", "balance class distribution in dataloader", "train classifier on rare disease images"], "what_it_is": "A PyTorch dataset sampler (ImbalancedDatasetSampler, pip package torchsampler) that rebalances class distributions during training by oversampling rare classes and undersampling frequent ones. It estimates sampling weights automatically and plugs directly into DataLoader.", "when_to_avoid": ["you use TensorFlow or non-PyTorch frameworks", "you need advanced resampling like SMOTE"], "when_to_choose": ["you train PyTorch models on class-imbalanced data", "you want automatic sampling weights without building a new balanced dataset"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/imbalanced-dataset-sampler", "repo": "ufoym/imbalanced-dataset-sampler", "role": "main", "score": 64}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:06:37.465536+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T02:38:15.930244+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "05e6c6e05b7aa7f8d08f9a04210f7acf773468521e85c657a16be5218f8e3484", "fetched_at": "2026-08-28T04:06:37.465536+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ufoym/imbalanced-dataset-sampler"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:06:37.465536+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T02:38:15.930244+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "05e6c6e05b7aa7f8d08f9a04210f7acf773468521e85c657a16be5218f8e3484", "fetched_at": "2026-08-28T04:06:37.465536+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ufoym/imbalanced-dataset-sampler"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T02:38:15.930244+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "05e6c6e05b7aa7f8d08f9a04210f7acf773468521e85c657a16be5218f8e3484", "fetched_at": "2026-08-28T04:06:37.465536+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ufoym/imbalanced-dataset-sampler"}], "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:06:37.465536+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:06:37.465536+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:06:37.465536+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T02:38:15.930244+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "05e6c6e05b7aa7f8d08f9a04210f7acf773468521e85c657a16be5218f8e3484", "fetched_at": "2026-08-28T04:06:37.465536+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ufoym/imbalanced-dataset-sampler"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:06:37.465536+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:06:37.465536+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T02:38:15.930244+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "05e6c6e05b7aa7f8d08f9a04210f7acf773468521e85c657a16be5218f8e3484", "fetched_at": "2026-08-28T04:06:37.465536+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ufoym/imbalanced-dataset-sampler"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:06:37.465536+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:06:37.465536+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:06:37.465536+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T02:38:15.930244+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "05e6c6e05b7aa7f8d08f9a04210f7acf773468521e85c657a16be5218f8e3484", "fetched_at": "2026-08-28T04:06:37.465536+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ufoym/imbalanced-dataset-sampler"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:06:37.465536+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:06:37.465536+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T02:38:15.930244+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "05e6c6e05b7aa7f8d08f9a04210f7acf773468521e85c657a16be5218f8e3484", "fetched_at": "2026-08-28T04:06:37.465536+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ufoym/imbalanced-dataset-sampler"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T02:38:15.930244+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "05e6c6e05b7aa7f8d08f9a04210f7acf773468521e85c657a16be5218f8e3484", "fetched_at": "2026-08-28T04:06:37.465536+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ufoym/imbalanced-dataset-sampler"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T02:38:15.930244+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "05e6c6e05b7aa7f8d08f9a04210f7acf773468521e85c657a16be5218f8e3484", "fetched_at": "2026-08-28T04:06:37.465536+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ufoym/imbalanced-dataset-sampler"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T02:38:15.930244+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "05e6c6e05b7aa7f8d08f9a04210f7acf773468521e85c657a16be5218f8e3484", "fetched_at": "2026-08-28T04:06:37.465536+00:00", "kind": "readme", "missing": false, "url": "https://github.com/ufoym/imbalanced-dataset-sampler"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 91, "longevity": 100, "rhythm": 8}, "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": 3019, "days_push": 58, "days_rel": null, "gap_med": null, "n_releases_24m": 0}, "score": 64, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}