url string | repository_url string | labels_url string | comments_url string | events_url string | html_url string | id int64 | node_id string | number int64 | title string | user dict | labels list | state string | locked bool | assignees list | milestone dict | comments int64 | created_at timestamp[s] | updated_at timestamp[s] | closed_at timestamp[s] | assignee dict | author_association string | type dict | active_lock_reason string | sub_issues_summary dict | issue_dependencies_summary dict | body string | closed_by dict | reactions dict | timeline_url string | performed_via_github_app null | state_reason string | pinned_comment dict | draft bool | pull_request dict | is_pull_request bool |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33360 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33360/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33360/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33360/events | https://github.com/scikit-learn/scikit-learn/pull/33360 | 3,974,787,957 | PR_kwDOAAzd1s7FeipG | 33,360 | DOC Add explicit math formulas to dcg_score and ndcg_score | {
"login": "Pchambet",
"id": 119671552,
"node_id": "U_kgDOByILAA",
"avatar_url": "https://avatars.githubusercontent.com/u/119671552?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Pchambet",
"html_url": "https://github.com/Pchambet",
"followers_url": "https://api.github.com/users/Pchambet/followers",
"following_url": "https://api.github.com/users/Pchambet/following{/other_user}",
"gists_url": "https://api.github.com/users/Pchambet/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Pchambet/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Pchambet/subscriptions",
"organizations_url": "https://api.github.com/users/Pchambet/orgs",
"repos_url": "https://api.github.com/users/Pchambet/repos",
"events_url": "https://api.github.com/users/Pchambet/events{/privacy}",
"received_events_url": "https://api.github.com/users/Pchambet/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 12995770,
"node_id": "MDU6TGFiZWwxMjk5NTc3MA==",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/Documentation",
"name": "Documentation",
"color": "0b02e1",
"default": false,
"description": null
},
{
"id": 1815445423,
"node_id": "MDU6TGFiZWwxODE1... | open | false | [] | null | 0 | 2026-02-22T15:18:39 | 2026-02-22T15:19:00 | null | null | NONE | null | null | null | null | ## What does this PR do?
Adds explicit LaTeX formulas to the docstrings of `dcg_score` and `ndcg_score` so users can immediately identify which definition of DCG this implementation uses.
### Problem
As reported in #32049, the prose description *"Sum the true scores ranked in the order induced by the predicted scores, after applying a logarithmic discount"* is technically correct but hard to parse without seeing the actual formula. Since there are two competing definitions of DCG in the literature (linear gains vs. exponential gains), users are forced to dig through the references to figure out which one scikit-learn implements.
### Changes
**`dcg_score`** β added after the opening description:
$$\text{DCG@k} = \sum_{i=1}^{k} \frac{\text{rel}_i}{\log_b(i + 1)}$$
with notation for $\text{rel}_i$ (true relevance at rank $i$), $b$ (logarithm base), and $k$ (truncation depth). A note clarifies that this uses **linear gains**, not the exponential variant ($2^{\text{rel}_i} - 1$).
**`ndcg_score`** β added after the opening description:
$$\text{NDCG@k} = \frac{\text{DCG@k}}{\text{IDCG@k}}$$
with a cross-reference to `dcg_score` for the full DCG definition.
### What this PR does NOT change
- No parameter descriptions modified
- No examples modified
- No code logic modified
- `ruff format` passes (verified locally)
Fixes #32049 | null | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33360/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33360/timeline | null | null | null | false | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/pulls/33360",
"html_url": "https://github.com/scikit-learn/scikit-learn/pull/33360",
"diff_url": "https://github.com/scikit-learn/scikit-learn/pull/33360.diff",
"patch_url": "https://github.com/scikit-learn/scikit-learn/pull/33360.patch",
"merged_at": null
} | true |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33359 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33359/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33359/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33359/events | https://github.com/scikit-learn/scikit-learn/pull/33359 | 3,974,767,553 | PR_kwDOAAzd1s7FeeXA | 33,359 | FIX nan_euclidean_distances returns asymmetric matrix with missing values | {
"login": "akuligowski9",
"id": 33849595,
"node_id": "MDQ6VXNlcjMzODQ5NTk1",
"avatar_url": "https://avatars.githubusercontent.com/u/33849595?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/akuligowski9",
"html_url": "https://github.com/akuligowski9",
"followers_url": "https://api.github.com/users/akuligowski9/followers",
"following_url": "https://api.github.com/users/akuligowski9/following{/other_user}",
"gists_url": "https://api.github.com/users/akuligowski9/gists{/gist_id}",
"starred_url": "https://api.github.com/users/akuligowski9/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/akuligowski9/subscriptions",
"organizations_url": "https://api.github.com/users/akuligowski9/orgs",
"repos_url": "https://api.github.com/users/akuligowski9/repos",
"events_url": "https://api.github.com/users/akuligowski9/events{/privacy}",
"received_events_url": "https://api.github.com/users/akuligowski9/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 1815445423,
"node_id": "MDU6TGFiZWwxODE1NDQ1NDIz",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/module:metrics",
"name": "module:metrics",
"color": "151e91",
"default": false,
"description": ""
}
] | closed | false | [] | null | 1 | 2026-02-22T15:10:29 | 2026-02-22T23:52:50 | 2026-02-22T23:52:49 | null | NONE | null | null | null | null | ## Summary
Fixes #32848
- `nan_euclidean_distances(X)` could return an asymmetric distance matrix when `X` contains missing values, due to floating point rounding in intermediate dot products and subtractions.
- Fix enforces exact symmetry via `(D + D.T) / 2` when computing pairwise distances of a single array (`X is Y`).
## Test plan
- [x] Added non-regression test `test_nan_euclidean_distances_symmetric` that verifies exact (not approximate) symmetry
- [x] All 29 existing+new nan_euclidean tests pass
- [x] Pre-commit hooks pass (ruff, mypy, codespell)
## AI disclosure
AI tools (Claude Code) were used to assist with this contribution. All changes have been manually reviewed, tested, and are well understood by the contributor.
π€ Generated with [Claude Code](https://claude.com/claude-code) | {
"login": "lucyleeow",
"id": 23182829,
"node_id": "MDQ6VXNlcjIzMTgyODI5",
"avatar_url": "https://avatars.githubusercontent.com/u/23182829?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/lucyleeow",
"html_url": "https://github.com/lucyleeow",
"followers_url": "https://api.github.com/users/lucyleeow/followers",
"following_url": "https://api.github.com/users/lucyleeow/following{/other_user}",
"gists_url": "https://api.github.com/users/lucyleeow/gists{/gist_id}",
"starred_url": "https://api.github.com/users/lucyleeow/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lucyleeow/subscriptions",
"organizations_url": "https://api.github.com/users/lucyleeow/orgs",
"repos_url": "https://api.github.com/users/lucyleeow/repos",
"events_url": "https://api.github.com/users/lucyleeow/events{/privacy}",
"received_events_url": "https://api.github.com/users/lucyleeow/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33359/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33359/timeline | null | null | null | false | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/pulls/33359",
"html_url": "https://github.com/scikit-learn/scikit-learn/pull/33359",
"diff_url": "https://github.com/scikit-learn/scikit-learn/pull/33359.diff",
"patch_url": "https://github.com/scikit-learn/scikit-learn/pull/33359.patch",
"merged_at": null
} | true |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33358 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33358/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33358/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33358/events | https://github.com/scikit-learn/scikit-learn/pull/33358 | 3,974,702,625 | PR_kwDOAAzd1s7FeRAg | 33,358 | FIX QuantileTransformer sparse subsampling with ignore_implicit_zeros | {
"login": "akuligowski9",
"id": 33849595,
"node_id": "MDQ6VXNlcjMzODQ5NTk1",
"avatar_url": "https://avatars.githubusercontent.com/u/33849595?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/akuligowski9",
"html_url": "https://github.com/akuligowski9",
"followers_url": "https://api.github.com/users/akuligowski9/followers",
"following_url": "https://api.github.com/users/akuligowski9/following{/other_user}",
"gists_url": "https://api.github.com/users/akuligowski9/gists{/gist_id}",
"starred_url": "https://api.github.com/users/akuligowski9/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/akuligowski9/subscriptions",
"organizations_url": "https://api.github.com/users/akuligowski9/orgs",
"repos_url": "https://api.github.com/users/akuligowski9/repos",
"events_url": "https://api.github.com/users/akuligowski9/events{/privacy}",
"received_events_url": "https://api.github.com/users/akuligowski9/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 1815448196,
"node_id": "MDU6TGFiZWwxODE1NDQ4MTk2",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/module:preprocessing",
"name": "module:preprocessing",
"color": "151e91",
"default": false,
"description": ""
}
] | closed | false | [] | null | 1 | 2026-02-22T14:41:32 | 2026-02-22T23:50:05 | 2026-02-22T23:50:05 | null | NONE | null | null | null | null | ## Summary
Fixes #32585
- `QuantileTransformer(ignore_implicit_zeros=True)` subsampling was incorrectly computing the number of non-zero samples to keep as `subsample * nnz // n_samples`. For very sparse matrices (where `n_samples` vastly exceeds `nnz`), this evaluated to 0, producing empty arrays and all-zero quantiles.
- When `ignore_implicit_zeros=True`, implicit zeros are excluded from the quantile computation, so `n_samples` should be irrelevant to how many non-zero values are subsampled. The fix subsamples `subsample` elements directly from the non-zero data.
- The `ignore_implicit_zeros=False` path is unchanged but refactored to be scoped under its own branch for clarity.
## Test plan
- [x] Added non-regression test `test_quantile_transform_sparse_ignore_zeros_very_sparse` that constructs a very sparse matrix (nnz/n_samples ~ 1e-4) and verifies quantiles are non-degenerate
- [x] All 21 existing quantile-related tests pass
- [x] Pre-commit hooks pass (ruff, mypy, codespell)
## AI disclosure
AI tools (Claude Code) were used to assist with this contribution. All changes have been manually reviewed, tested, and are well understood by the contributor.
π€ Generated with [Claude Code](https://claude.com/claude-code) | {
"login": "lucyleeow",
"id": 23182829,
"node_id": "MDQ6VXNlcjIzMTgyODI5",
"avatar_url": "https://avatars.githubusercontent.com/u/23182829?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/lucyleeow",
"html_url": "https://github.com/lucyleeow",
"followers_url": "https://api.github.com/users/lucyleeow/followers",
"following_url": "https://api.github.com/users/lucyleeow/following{/other_user}",
"gists_url": "https://api.github.com/users/lucyleeow/gists{/gist_id}",
"starred_url": "https://api.github.com/users/lucyleeow/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lucyleeow/subscriptions",
"organizations_url": "https://api.github.com/users/lucyleeow/orgs",
"repos_url": "https://api.github.com/users/lucyleeow/repos",
"events_url": "https://api.github.com/users/lucyleeow/events{/privacy}",
"received_events_url": "https://api.github.com/users/lucyleeow/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33358/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33358/timeline | null | null | null | false | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/pulls/33358",
"html_url": "https://github.com/scikit-learn/scikit-learn/pull/33358",
"diff_url": "https://github.com/scikit-learn/scikit-learn/pull/33358.diff",
"patch_url": "https://github.com/scikit-learn/scikit-learn/pull/33358.patch",
"merged_at": null
} | true |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33357 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33357/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33357/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33357/events | https://github.com/scikit-learn/scikit-learn/pull/33357 | 3,974,642,348 | PR_kwDOAAzd1s7FeEr6 | 33,357 | API Deprecate positional args for confusion_matrix_at_thresholds | {
"login": "jeremiedbb",
"id": 34657725,
"node_id": "MDQ6VXNlcjM0NjU3NzI1",
"avatar_url": "https://avatars.githubusercontent.com/u/34657725?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jeremiedbb",
"html_url": "https://github.com/jeremiedbb",
"followers_url": "https://api.github.com/users/jeremiedbb/followers",
"following_url": "https://api.github.com/users/jeremiedbb/following{/other_user}",
"gists_url": "https://api.github.com/users/jeremiedbb/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jeremiedbb/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jeremiedbb/subscriptions",
"organizations_url": "https://api.github.com/users/jeremiedbb/orgs",
"repos_url": "https://api.github.com/users/jeremiedbb/repos",
"events_url": "https://api.github.com/users/jeremiedbb/events{/privacy}",
"received_events_url": "https://api.github.com/users/jeremiedbb/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 1815445423,
"node_id": "MDU6TGFiZWwxODE1NDQ1NDIz",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/module:metrics",
"name": "module:metrics",
"color": "151e91",
"default": false,
"description": ""
},
{
"id": 3730476391,
"node_id": "LA_kwDOAAzd1s7... | closed | false | [] | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/milestones/69",
"html_url": "https://github.com/scikit-learn/scikit-learn/milestone/69",
"labels_url": "https://api.github.com/repos/scikit-learn/scikit-learn/milestones/69/labels",
"id": 14107987,
"node_id": "MI_kwDOAAzd1s4A10VT",
"number": 69,
"title": "1.9",
"description": "Planning for the release of 1.9.0: - April 31, 2026: Release candidate 1.9.0.dev0 - May, 18 2026: Release 1.9.0",
"creator": {
"login": "lesteve",
"id": 1680079,
"node_id": "MDQ6VXNlcjE2ODAwNzk=",
"avatar_url": "https://avatars.githubusercontent.com/u/1680079?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/lesteve",
"html_url": "https://github.com/lesteve",
"followers_url": "https://api.github.com/users/lesteve/followers",
"following_url": "https://api.github.com/users/lesteve/following{/other_user}",
"gists_url": "https://api.github.com/users/lesteve/gists{/gist_id}",
"starred_url": "https://api.github.com/users/lesteve/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lesteve/subscriptions",
"organizations_url": "https://api.github.com/users/lesteve/orgs",
"repos_url": "https://api.github.com/users/lesteve/repos",
"events_url": "https://api.github.com/users/lesteve/events{/privacy}",
"received_events_url": "https://api.github.com/users/lesteve/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
},
"open_issues": 12,
"closed_issues": 6,
"state": "open",
"created_at": "2025-11-12T10:28:02",
"updated_at": "2026-02-27T04:58:45",
"due_on": "2026-05-18T00:00:00",
"closed_at": null
} | 1 | 2026-02-22T14:17:22 | 2026-02-24T10:22:59 | 2026-02-24T10:22:59 | null | MEMBER | null | null | null | null | When we made `confusion_matrix_at_thresholds` public (previously named `_binary_clf_curve`) we forgot to make optional args kwarg only. Since it's already released in 1.8 we need to do that with deprecation.
ping @lucyleeow | {
"login": "jeremiedbb",
"id": 34657725,
"node_id": "MDQ6VXNlcjM0NjU3NzI1",
"avatar_url": "https://avatars.githubusercontent.com/u/34657725?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jeremiedbb",
"html_url": "https://github.com/jeremiedbb",
"followers_url": "https://api.github.com/users/jeremiedbb/followers",
"following_url": "https://api.github.com/users/jeremiedbb/following{/other_user}",
"gists_url": "https://api.github.com/users/jeremiedbb/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jeremiedbb/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jeremiedbb/subscriptions",
"organizations_url": "https://api.github.com/users/jeremiedbb/orgs",
"repos_url": "https://api.github.com/users/jeremiedbb/repos",
"events_url": "https://api.github.com/users/jeremiedbb/events{/privacy}",
"received_events_url": "https://api.github.com/users/jeremiedbb/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33357/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33357/timeline | null | null | null | false | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/pulls/33357",
"html_url": "https://github.com/scikit-learn/scikit-learn/pull/33357",
"diff_url": "https://github.com/scikit-learn/scikit-learn/pull/33357.diff",
"patch_url": "https://github.com/scikit-learn/scikit-learn/pull/33357.patch",
"merged_at": "2026-02-24T10:22:59"
} | true |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33356 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33356/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33356/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33356/events | https://github.com/scikit-learn/scikit-learn/pull/33356 | 3,973,872,997 | PR_kwDOAAzd1s7FbjHf | 33,356 | removed astray seperator from the doc | {
"login": "GeorgeST1302",
"id": 87616496,
"node_id": "MDQ6VXNlcjg3NjE2NDk2",
"avatar_url": "https://avatars.githubusercontent.com/u/87616496?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/GeorgeST1302",
"html_url": "https://github.com/GeorgeST1302",
"followers_url": "https://api.github.com/users/GeorgeST1302/followers",
"following_url": "https://api.github.com/users/GeorgeST1302/following{/other_user}",
"gists_url": "https://api.github.com/users/GeorgeST1302/gists{/gist_id}",
"starred_url": "https://api.github.com/users/GeorgeST1302/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/GeorgeST1302/subscriptions",
"organizations_url": "https://api.github.com/users/GeorgeST1302/orgs",
"repos_url": "https://api.github.com/users/GeorgeST1302/repos",
"events_url": "https://api.github.com/users/GeorgeST1302/events{/privacy}",
"received_events_url": "https://api.github.com/users/GeorgeST1302/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [] | closed | false | [] | null | 2 | 2026-02-22T07:58:55 | 2026-02-22T23:55:08 | 2026-02-22T23:54:57 | null | NONE | null | null | null | null | <!--
π Thanks for contributing a pull request!
π Please ensure you have taken a look at the contribution guidelines:
https://github.com/scikit-learn/scikit-learn/blob/main/CONTRIBUTING.md
β
In particular following the pull request checklist will increase the likelihood
of having maintainers review your PR:
https://scikit-learn.org/dev/developers/contributing.html#pull-request-checklist
π If your PR is likely to affect users, you will need to add a changelog entry
describing your PR changes, see:
https://github.com/scikit-learn/scikit-learn/blob/main/doc/whats_new/upcoming_changes/README.md
-->
#### Reference Issues/PRs
<!--
Example: Fixes #1234. See also #3456.
Please use keywords (e.g., Fixes) to create link to the issues or pull requests
you resolved, so that they will automatically be closed when your pull request
is merged. See https://github.com/blog/1506-closing-issues-via-pull-requests
-->
#### What does this implement/fix? Explain your changes.
#### AI usage disclosure
<!--
If AI tools were involved in creating this PR, please check all boxes that apply
below and make sure that you adhere to our Automated Contributions Policy:
https://scikit-learn.org/dev/developers/contributing.html#automated-contributions-policy
-->
I used AI assistance for:
- [ ] Code generation (e.g., when writing an implementation or fixing a bug)
- [ ] Test/benchmark generation
- [x] Documentation (including examples)
- [ ] Research and understanding
#### Any other comments?
<!--
Thank you for your patience. Changes to scikit-learn require careful
attention, but with limited maintainer time, not every contribution can be reviewed
quickly.
For more information and tips on improving your pull request, see:
https://scikit-learn.org/dev/faq.html#why-is-my-pull-request-not-getting-any-attention.
Thanks for contributing!
-->
| {
"login": "lucyleeow",
"id": 23182829,
"node_id": "MDQ6VXNlcjIzMTgyODI5",
"avatar_url": "https://avatars.githubusercontent.com/u/23182829?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/lucyleeow",
"html_url": "https://github.com/lucyleeow",
"followers_url": "https://api.github.com/users/lucyleeow/followers",
"following_url": "https://api.github.com/users/lucyleeow/following{/other_user}",
"gists_url": "https://api.github.com/users/lucyleeow/gists{/gist_id}",
"starred_url": "https://api.github.com/users/lucyleeow/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lucyleeow/subscriptions",
"organizations_url": "https://api.github.com/users/lucyleeow/orgs",
"repos_url": "https://api.github.com/users/lucyleeow/repos",
"events_url": "https://api.github.com/users/lucyleeow/events{/privacy}",
"received_events_url": "https://api.github.com/users/lucyleeow/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33356/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33356/timeline | null | null | null | false | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/pulls/33356",
"html_url": "https://github.com/scikit-learn/scikit-learn/pull/33356",
"diff_url": "https://github.com/scikit-learn/scikit-learn/pull/33356.diff",
"patch_url": "https://github.com/scikit-learn/scikit-learn/pull/33356.patch",
"merged_at": null
} | true |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33355 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33355/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33355/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33355/events | https://github.com/scikit-learn/scikit-learn/issues/33355 | 3,973,802,208 | I_kwDOAAzd1s7s22jg | 33,355 | Conversion of an array with ndim > 0 to a scalar deprecated | {
"login": "KulikDM",
"id": 74867610,
"node_id": "MDQ6VXNlcjc0ODY3NjEw",
"avatar_url": "https://avatars.githubusercontent.com/u/74867610?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/KulikDM",
"html_url": "https://github.com/KulikDM",
"followers_url": "https://api.github.com/users/KulikDM/followers",
"following_url": "https://api.github.com/users/KulikDM/following{/other_user}",
"gists_url": "https://api.github.com/users/KulikDM/gists{/gist_id}",
"starred_url": "https://api.github.com/users/KulikDM/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/KulikDM/subscriptions",
"organizations_url": "https://api.github.com/users/KulikDM/orgs",
"repos_url": "https://api.github.com/users/KulikDM/repos",
"events_url": "https://api.github.com/users/KulikDM/events{/privacy}",
"received_events_url": "https://api.github.com/users/KulikDM/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 12995755,
"node_id": "MDU6TGFiZWwxMjk5NTc1NQ==",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/Bug",
"name": "Bug",
"color": "e10c02",
"default": false,
"description": null
},
{
"id": 3631152487,
"node_id": "LA_kwDOAAzd1s7Ybv1n",
"url": "ht... | closed | false | [] | null | 6 | 2026-02-22T07:15:32 | 2026-02-23T13:06:33 | 2026-02-23T13:06:33 | null | NONE | null | null | {
"total": 0,
"completed": 0,
"percent_completed": 0
} | {
"blocked_by": 0,
"total_blocked_by": 0,
"blocking": 0,
"total_blocking": 0
} | ### Describe the bug and give evidence about its user-facing impact
Hi I was running an automated test and ran into this issue.
Checked the changelog for Numpy as saw as of v2.4.0 that conversion of an array with ndim > 0 to a scalar is deprecated. The error below looks like this is linked to that deprecation.
```
/opt/hostedtoolcache/Python/3.11.14/x64/lib/python3.11/site-packages/sklearn/cluster/_hdbscan/hdbscan.py:866: in fit
self.labels_, self.probabilities_ = tree_to_labels(
sklearn/cluster/_hdbscan/_tree.pyx:61: in sklearn.cluster._hdbscan._tree.tree_to_labels
???
sklearn/cluster/_hdbscan/_tree.pyx:75: in sklearn.cluster._hdbscan._tree.tree_to_labels
???
sklearn/cluster/_hdbscan/_tree.pyx:751: in sklearn.cluster._hdbscan._tree._get_clusters
???
sklearn/cluster/_hdbscan/_tree.pyx:626: in sklearn.cluster._hdbscan._tree.epsilon_search
???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> ???
E TypeError: only 0-dimensional arrays can be converted to Python scalars
```
Not sure if this issue is applicable to other areas of the sklearn lib but hope it is not to big of an issue.
My env was using scikit-learn==1.8.0 and numpy==2.4.2
### Steps/Code to Reproduce
```
import numpy as np
from sklearn.cluster import HDBSCAN
X = np.random.normal(0, 1, 1000)
X = np.atleast_2d(X).T
clust = HDBSCAN(cluster_selection_epsilon=np.std(X) / np.sqrt(2))
clust.fit(X)
```
### Expected Results
No error is thrown
### Actual Results
```
/opt/hostedtoolcache/Python/3.11.14/x64/lib/python3.11/site-packages/sklearn/cluster/_hdbscan/hdbscan.py:866: in fit
self.labels_, self.probabilities_ = tree_to_labels(
sklearn/cluster/_hdbscan/_tree.pyx:61: in sklearn.cluster._hdbscan._tree.tree_to_labels
???
sklearn/cluster/_hdbscan/_tree.pyx:75: in sklearn.cluster._hdbscan._tree.tree_to_labels
???
sklearn/cluster/_hdbscan/_tree.pyx:751: in sklearn.cluster._hdbscan._tree._get_clusters
???
sklearn/cluster/_hdbscan/_tree.pyx:626: in sklearn.cluster._hdbscan._tree.epsilon_search
???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> ???
E TypeError: only 0-dimensional arrays can be converted to Python scalars
```
### Versions
```shell
scikit-learn==1.8.0
numpy==2.4.2
```
### Interest in fixing the bug
Not sure how to fix | {
"login": "lesteve",
"id": 1680079,
"node_id": "MDQ6VXNlcjE2ODAwNzk=",
"avatar_url": "https://avatars.githubusercontent.com/u/1680079?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/lesteve",
"html_url": "https://github.com/lesteve",
"followers_url": "https://api.github.com/users/lesteve/followers",
"following_url": "https://api.github.com/users/lesteve/following{/other_user}",
"gists_url": "https://api.github.com/users/lesteve/gists{/gist_id}",
"starred_url": "https://api.github.com/users/lesteve/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lesteve/subscriptions",
"organizations_url": "https://api.github.com/users/lesteve/orgs",
"repos_url": "https://api.github.com/users/lesteve/repos",
"events_url": "https://api.github.com/users/lesteve/events{/privacy}",
"received_events_url": "https://api.github.com/users/lesteve/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33355/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33355/timeline | null | duplicate | null | null | null | false |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33354 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33354/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33354/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33354/events | https://github.com/scikit-learn/scikit-learn/pull/33354 | 3,973,551,384 | PR_kwDOAAzd1s7FagXf | 33,354 | FEA Categorical split support for `DecisionTree*`, and `RandomForest*` | {
"login": "adam2392",
"id": 3460267,
"node_id": "MDQ6VXNlcjM0NjAyNjc=",
"avatar_url": "https://avatars.githubusercontent.com/u/3460267?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/adam2392",
"html_url": "https://github.com/adam2392",
"followers_url": "https://api.github.com/users/adam2392/followers",
"following_url": "https://api.github.com/users/adam2392/following{/other_user}",
"gists_url": "https://api.github.com/users/adam2392/gists{/gist_id}",
"starred_url": "https://api.github.com/users/adam2392/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/adam2392/subscriptions",
"organizations_url": "https://api.github.com/users/adam2392/orgs",
"repos_url": "https://api.github.com/users/adam2392/repos",
"events_url": "https://api.github.com/users/adam2392/events{/privacy}",
"received_events_url": "https://api.github.com/users/adam2392/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 1815440243,
"node_id": "MDU6TGFiZWwxODE1NDQwMjQz",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/module:ensemble",
"name": "module:ensemble",
"color": "151e91",
"default": false,
"description": ""
},
{
"id": 1815449280,
"node_id": "MDU6TGFiZWwx... | open | false | [] | null | 9 | 2026-02-22T04:40:33 | 2026-03-04T21:29:07 | null | null | MEMBER | null | null | null | null | #### Reference Issues/PRs
Supersedes #12866 #4899 and #7068 , https://github.com/scikit-learn/scikit-learn/pull/3346
Supersedes https://github.com/scikit-learn/scikit-learn/pull/29437 because the diff was too complicated relative to main.
Took some inspiration from: https://github.com/cakedev0/scikit-learn/pull/2, so I would say we should say this is co-authored with @cakedev0. Instead of only using a uint64_t to encode the bitset, I opt for `uint64_t*`, which future proofs our ability to handle much larger cardinality categories, which will be useful for the categorical support in ExtraTrees*.
#### What does this implement/fix? Explain your changes.
Implements splitting rules when categorical data is given in a decision tree classifier/regressor. For now, limits it to use the breiman shortcut to demonstrate the value and the main implementation changes. Downstream features (outlined in the next section) can be more simply added after this PR.
- Tree data structures are moved to maintain the cimport/import sequence (`ParentInfo`, `SplitRecord`, `Node`) -> `_utils.pxd`
- Adds partitioning of samples given a category (this complements nicely the partitioning of samples given a numerical threshold)
- Adds splitting logic given a category
- add deterministic unit-tests, performance tests, and basic error checks. The deterministic test for a tree I think is correct... Its very useful because it checks that we are tracking categorical splitting over multiple split nodes (at least 2 levels).
- implemented the breiman shortcut.
Also ran this benchmark, which compares one-hot-encoding (OHE), ordinal (ord), and native-categorical support (cat); I had to group-encode rare categories to make this all fit within the constraint of "256" max categories:
- [gist](https://gist.github.com/adam2392/2679337920b7839a15c4e821b1b17b11)
There are two results worth looking at. The first is using default parameters where `max_features = 'sqrt'`
<img width="1800" height="1500" alt="categorical_benchmark" src="https://github.com/user-attachments/assets/3af03673-7137-41dd-a0a7-a439b9f72fa3" />
Here, the only reason OHE is better is because it samples ~8x more features per split node. But it has ~10+x deeper trees, and almost 3-5x longer fittime.
The second is where we fix `max_features=None`, so it samples all features:
<img width="1800" height="1500" alt="categorical_benchmark" src="https://github.com/user-attachments/assets/7f567aa7-ff77-47d4-a6ea-a60b38470ba4" />
(Interestingly, if you order the categories by their occurrence, then the ordinal approach does quite well. This probably opens up a door of heuristics that we can later on add for categorical support. there is no 1 right-answer for everything, so I think it's totally reasonable).
Here, OHE is abysmally slow, and performance is essentially equivalent with native categorical support being on average the best. Surprisingly the ordinal strategy is quite good. It could be due to the fact that maybe I'm cutting categorical support down by group-encoding rare categories, which could be informative.
#### Open Questions / TODO In a downstream PR
1. [Feature] Add a bitset cache (i.e. a uint64_t memory view) that allows us to compute the category split as we traverse the tree for inference speedup
2. [Feature] Brute-force search; expands categorical support to multi-class and multi-output problems
3. [Refactor] Consolidate the `goes_left` operation to work at inference time too
4. [Refactor] Understand the bitset operations and merge these with the HistGradientBoosting bitset operations
5. [Feature] Implement categorical splitting for RandomSplitter for ExtraTrees. Pretty easy now that we have an arbitrary sized bitset, which we can expand to hold many categories in the case of a randomized tree
6. [Feature] Add support for sparse categorical splitting with best and random splitter
7. [Feature] Add support for categorical in exporting tree
#### Any other comments?
May be related to #24967
| null | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33354/reactions",
"total_count": 3,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 3,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33354/timeline | null | null | null | false | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/pulls/33354",
"html_url": "https://github.com/scikit-learn/scikit-learn/pull/33354",
"diff_url": "https://github.com/scikit-learn/scikit-learn/pull/33354.diff",
"patch_url": "https://github.com/scikit-learn/scikit-learn/pull/33354.patch",
"merged_at": null
} | true |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33353 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33353/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33353/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33353/events | https://github.com/scikit-learn/scikit-learn/pull/33353 | 3,973,159,293 | PR_kwDOAAzd1s7FZP5b | 33,353 | Fix eigsh performance issue in spectral embedding | {
"login": "paipeline",
"id": 84555416,
"node_id": "MDQ6VXNlcjg0NTU1NDE2",
"avatar_url": "https://avatars.githubusercontent.com/u/84555416?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/paipeline",
"html_url": "https://github.com/paipeline",
"followers_url": "https://api.github.com/users/paipeline/followers",
"following_url": "https://api.github.com/users/paipeline/following{/other_user}",
"gists_url": "https://api.github.com/users/paipeline/gists{/gist_id}",
"starred_url": "https://api.github.com/users/paipeline/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/paipeline/subscriptions",
"organizations_url": "https://api.github.com/users/paipeline/orgs",
"repos_url": "https://api.github.com/users/paipeline/repos",
"events_url": "https://api.github.com/users/paipeline/events{/privacy}",
"received_events_url": "https://api.github.com/users/paipeline/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 1815444974,
"node_id": "MDU6TGFiZWwxODE1NDQ0OTc0",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/module:manifold",
"name": "module:manifold",
"color": "151e91",
"default": false,
"description": ""
},
{
"id": 2399338178,
"node_id": "MDU6TGFiZWwy... | closed | false | [] | null | 1 | 2026-02-22T00:34:41 | 2026-02-22T23:58:06 | 2026-02-22T23:58:02 | null | NONE | null | null | null | null | ## Summary
This PR fixes a performance issue in the spectral embedding function where was targeting the wrong eigenvalues, causing suboptimal convergence.
## Problem
The existing code computes (negative Laplacian) but the comments describe using (identity minus Laplacian) and targeting eigenvalues near 1.0 with . This mismatch causes to target eigenvalues near 0 instead of near 1.0, leading to poor convergence performance.
## Solution
Add the identity matrix after negating the Laplacian to properly compute :
```python
laplacian *= -1
# Add identity matrix to convert -L to I - L as described in comments
if sparse.issparse(laplacian):
laplacian.setdiag(laplacian.diagonal() + 1)
else:
np.fill_diagonal(laplacian, laplacian.diagonal() + 1)
```
## Performance Impact
Based on the issue reporter's testing, this fix provides **6.7x speedup** (1.5s vs 10.1s) for spectral embedding on graphs with 5000 samples.
## Changes
- **sklearn/manifold/_spectral_embedding.py**: Add identity matrix after Laplacian negation
- **sklearn/manifold/tests/test_spectral_embedding_eigsh_fix.py**: Add comprehensive tests for eigenvalue correctness and performance regression prevention
## Testing
The fix includes tests that verify:
1. Eigenvalues are correctly near 1.0 (as expected for I-L)
2. Spectral embedding converges without errors
3. Results maintain expected variance (not degenerate)
Fixes #33242
## Checklist
- [x] I have read the [contribution guide](https://scikit-learn.org/dev/developers/contributing.html)
- [x] The change addresses a specific issue with clear performance benefits
- [x] Tests are included and cover the fix
- [x] The change aligns implementation with existing documentation/comments
- [x] No breaking changes - pure performance optimization | {
"login": "lucyleeow",
"id": 23182829,
"node_id": "MDQ6VXNlcjIzMTgyODI5",
"avatar_url": "https://avatars.githubusercontent.com/u/23182829?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/lucyleeow",
"html_url": "https://github.com/lucyleeow",
"followers_url": "https://api.github.com/users/lucyleeow/followers",
"following_url": "https://api.github.com/users/lucyleeow/following{/other_user}",
"gists_url": "https://api.github.com/users/lucyleeow/gists{/gist_id}",
"starred_url": "https://api.github.com/users/lucyleeow/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lucyleeow/subscriptions",
"organizations_url": "https://api.github.com/users/lucyleeow/orgs",
"repos_url": "https://api.github.com/users/lucyleeow/repos",
"events_url": "https://api.github.com/users/lucyleeow/events{/privacy}",
"received_events_url": "https://api.github.com/users/lucyleeow/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33353/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33353/timeline | null | null | null | false | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/pulls/33353",
"html_url": "https://github.com/scikit-learn/scikit-learn/pull/33353",
"diff_url": "https://github.com/scikit-learn/scikit-learn/pull/33353.diff",
"patch_url": "https://github.com/scikit-learn/scikit-learn/pull/33353.patch",
"merged_at": null
} | true |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33352 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33352/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33352/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33352/events | https://github.com/scikit-learn/scikit-learn/issues/33352 | 3,972,214,668 | I_kwDOAAzd1s7swy-M | 33,352 | Suggestion: reference a RAG / LLM debugging checklist (WFGY Problem Map) for downstream pipelines | {
"login": "onestardao",
"id": 212544643,
"node_id": "U_kgDODKssgw",
"avatar_url": "https://avatars.githubusercontent.com/u/212544643?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/onestardao",
"html_url": "https://github.com/onestardao",
"followers_url": "https://api.github.com/users/onestardao/followers",
"following_url": "https://api.github.com/users/onestardao/following{/other_user}",
"gists_url": "https://api.github.com/users/onestardao/gists{/gist_id}",
"starred_url": "https://api.github.com/users/onestardao/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/onestardao/subscriptions",
"organizations_url": "https://api.github.com/users/onestardao/orgs",
"repos_url": "https://api.github.com/users/onestardao/repos",
"events_url": "https://api.github.com/users/onestardao/events{/privacy}",
"received_events_url": "https://api.github.com/users/onestardao/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 3631152487,
"node_id": "LA_kwDOAAzd1s7Ybv1n",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/Needs%20Triage",
"name": "Needs Triage",
"color": "FF0000",
"default": false,
"description": "Issue requires triage"
}
] | open | false | [] | null | 0 | 2026-02-21T15:26:15 | 2026-02-21T15:26:26 | null | null | NONE | null | null | {
"total": 0,
"completed": 0,
"percent_completed": 0
} | {
"blocked_by": 0,
"total_blocked_by": 0,
"blocking": 0,
"total_blocking": 0
} | Hi scikit-learn team,
thank you for keeping such an essential ML toolkit alive and healthy. Many modern LLM / RAG stacks still rely on scikit-learn components for preprocessing, feature pipelines, classical models, and evaluation baselines around an LLM core.
I maintain an MIT-licensed project called **WFGY Problem Map**, which is a 16-question diagnostic checklist for real-world RAG / LLM pipelines. It focuses on failure modes that happen in the data and retrieval layers (ingestion, chunking, indexing, vector search, evaluation gaps), not on fine-tuning the LLM itself.
Why I think this might be relevant for scikit-learn users:
- A lot of production RAG systems still combine scikit-learn pipelines with vector stores and LLMs.
- Several of the 16 failure modes talk about how features, labels, and evaluation metrics can drift once an LLM layer is added on top.
- The checklist is model- and framework-agnostic, so it does not depend on any deep learning library.
WFGY Problem Map has already been referenced by a few external ecosystems, for example:
- Harvard MIMS Labβs ToolUniverse
- Multimodal RAG Survey by QCRI LLM Lab
- Rankify (University of Innsbruck)
Concrete suggestion:
If you feel it fits, would you consider adding a short βSee alsoβ style link in your docs or community resources, for users who are extending scikit-learn workflows into LLM / RAG pipelines?
> βRAG / LLM debugging checklist: WFGY Problem Map (16 failure modes)β
> https://github.com/onestardao/WFGY/blob/main/ProblemMap/README.md
Project home: https://github.com/onestardao/WFGY
Thank you for considering and for all your work on scikit-learn.
Best,
PSBigBig | null | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33352/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33352/timeline | null | null | null | null | null | false |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33351 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33351/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33351/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33351/events | https://github.com/scikit-learn/scikit-learn/pull/33351 | 3,972,169,400 | PR_kwDOAAzd1s7FWLB9 | 33,351 | Fix #33167: Segfault in KDTree.query_radius | {
"login": "danielalanbates",
"id": 211571394,
"node_id": "U_kgDODJxSwg",
"avatar_url": "https://avatars.githubusercontent.com/u/211571394?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/danielalanbates",
"html_url": "https://github.com/danielalanbates",
"followers_url": "https://api.github.com/users/danielalanbates/followers",
"following_url": "https://api.github.com/users/danielalanbates/following{/other_user}",
"gists_url": "https://api.github.com/users/danielalanbates/gists{/gist_id}",
"starred_url": "https://api.github.com/users/danielalanbates/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/danielalanbates/subscriptions",
"organizations_url": "https://api.github.com/users/danielalanbates/orgs",
"repos_url": "https://api.github.com/users/danielalanbates/repos",
"events_url": "https://api.github.com/users/danielalanbates/events{/privacy}",
"received_events_url": "https://api.github.com/users/danielalanbates/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 1815447666,
"node_id": "MDU6TGFiZWwxODE1NDQ3NjY2",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/module:neighbors",
"name": "module:neighbors",
"color": "151e91",
"default": false,
"description": ""
},
{
"id": 1815453311,
"node_id": "MDU6TGFiZW... | closed | false | [] | null | 0 | 2026-02-21T14:56:21 | 2026-02-22T07:20:23 | 2026-02-22T07:20:15 | null | NONE | null | null | null | null | Fixes #33167
## Summary
This PR fixes: Segfault in KDTree.query_radius
## Changes
```
sklearn/neighbors/tests/test_neighbors_tree.py | 25 ++++
sklearn/utils/_sorting.pyx | 165 +++++++++++++++++--------
2 files changed, 141 insertions(+), 49 deletions(-)
```
## Testing
Please review the changes carefully. The fix was verified against the existing test suite.
---
*This PR was created with the assistance of Claude Sonnet 4.6 by Anthropic | effort: high. Happy to make any adjustments!* | {
"login": "virchan",
"id": 25701849,
"node_id": "MDQ6VXNlcjI1NzAxODQ5",
"avatar_url": "https://avatars.githubusercontent.com/u/25701849?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/virchan",
"html_url": "https://github.com/virchan",
"followers_url": "https://api.github.com/users/virchan/followers",
"following_url": "https://api.github.com/users/virchan/following{/other_user}",
"gists_url": "https://api.github.com/users/virchan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/virchan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/virchan/subscriptions",
"organizations_url": "https://api.github.com/users/virchan/orgs",
"repos_url": "https://api.github.com/users/virchan/repos",
"events_url": "https://api.github.com/users/virchan/events{/privacy}",
"received_events_url": "https://api.github.com/users/virchan/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33351/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33351/timeline | null | null | null | false | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/pulls/33351",
"html_url": "https://github.com/scikit-learn/scikit-learn/pull/33351",
"diff_url": "https://github.com/scikit-learn/scikit-learn/pull/33351.diff",
"patch_url": "https://github.com/scikit-learn/scikit-learn/pull/33351.patch",
"merged_at": null
} | true |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33350 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33350/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33350/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33350/events | https://github.com/scikit-learn/scikit-learn/pull/33350 | 3,972,101,484 | PR_kwDOAAzd1s7FV-L- | 33,350 | Fix #33146: Using `BisectingKMeans` with `init` raises a possibly dubiou | {
"login": "danielalanbates",
"id": 211571394,
"node_id": "U_kgDODJxSwg",
"avatar_url": "https://avatars.githubusercontent.com/u/211571394?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/danielalanbates",
"html_url": "https://github.com/danielalanbates",
"followers_url": "https://api.github.com/users/danielalanbates/followers",
"following_url": "https://api.github.com/users/danielalanbates/following{/other_user}",
"gists_url": "https://api.github.com/users/danielalanbates/gists{/gist_id}",
"starred_url": "https://api.github.com/users/danielalanbates/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/danielalanbates/subscriptions",
"organizations_url": "https://api.github.com/users/danielalanbates/orgs",
"repos_url": "https://api.github.com/users/danielalanbates/repos",
"events_url": "https://api.github.com/users/danielalanbates/events{/privacy}",
"received_events_url": "https://api.github.com/users/danielalanbates/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 1815435821,
"node_id": "MDU6TGFiZWwxODE1NDM1ODIx",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/module:cluster",
"name": "module:cluster",
"color": "151e91",
"default": false,
"description": ""
},
{
"id": 2399338178,
"node_id": "MDU6TGFiZWwyMz... | closed | false | [] | null | 0 | 2026-02-21T14:12:47 | 2026-02-22T07:19:54 | 2026-02-22T07:19:46 | null | NONE | null | null | null | null | Fixes #33146
## Summary
This PR fixes: Using `BisectingKMeans` with `init` raises a possibly dubious `ValueError`
## Changes
```
.../upcoming_changes/sklearn.cluster/33146.fix.rst | 4 ++++
sklearn/cluster/_bisect_k_means.py | 4 +++-
sklearn/cluster/_kmeans.py | 10 +++++----
sklearn/cluster/tests/test_bisect_k_means.py | 24 ++++++++++++++++++++++
4 files changed, 37 insertions(+), 5 deletions(-)
```
## Testing
Please review the changes carefully. The fix was verified against the existing test suite.
---
*This PR was created with the assistance of Claude Sonnet 4.6 by Anthropic | effort: high. Happy to make any adjustments!* | {
"login": "virchan",
"id": 25701849,
"node_id": "MDQ6VXNlcjI1NzAxODQ5",
"avatar_url": "https://avatars.githubusercontent.com/u/25701849?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/virchan",
"html_url": "https://github.com/virchan",
"followers_url": "https://api.github.com/users/virchan/followers",
"following_url": "https://api.github.com/users/virchan/following{/other_user}",
"gists_url": "https://api.github.com/users/virchan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/virchan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/virchan/subscriptions",
"organizations_url": "https://api.github.com/users/virchan/orgs",
"repos_url": "https://api.github.com/users/virchan/repos",
"events_url": "https://api.github.com/users/virchan/events{/privacy}",
"received_events_url": "https://api.github.com/users/virchan/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33350/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33350/timeline | null | null | null | false | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/pulls/33350",
"html_url": "https://github.com/scikit-learn/scikit-learn/pull/33350",
"diff_url": "https://github.com/scikit-learn/scikit-learn/pull/33350.diff",
"patch_url": "https://github.com/scikit-learn/scikit-learn/pull/33350.patch",
"merged_at": null
} | true |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33349 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33349/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33349/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33349/events | https://github.com/scikit-learn/scikit-learn/pull/33349 | 3,972,097,955 | PR_kwDOAAzd1s7FV9iK | 33,349 | Fix #33242: The eigsh call in spectral embedding is done wrong and diffe | {
"login": "danielalanbates",
"id": 211571394,
"node_id": "U_kgDODJxSwg",
"avatar_url": "https://avatars.githubusercontent.com/u/211571394?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/danielalanbates",
"html_url": "https://github.com/danielalanbates",
"followers_url": "https://api.github.com/users/danielalanbates/followers",
"following_url": "https://api.github.com/users/danielalanbates/following{/other_user}",
"gists_url": "https://api.github.com/users/danielalanbates/gists{/gist_id}",
"starred_url": "https://api.github.com/users/danielalanbates/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/danielalanbates/subscriptions",
"organizations_url": "https://api.github.com/users/danielalanbates/orgs",
"repos_url": "https://api.github.com/users/danielalanbates/repos",
"events_url": "https://api.github.com/users/danielalanbates/events{/privacy}",
"received_events_url": "https://api.github.com/users/danielalanbates/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 1815444974,
"node_id": "MDU6TGFiZWwxODE1NDQ0OTc0",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/module:manifold",
"name": "module:manifold",
"color": "151e91",
"default": false,
"description": ""
},
{
"id": 2399338178,
"node_id": "MDU6TGFiZWwy... | closed | false | [] | null | 0 | 2026-02-21T14:10:21 | 2026-02-22T07:19:16 | 2026-02-22T07:19:00 | null | NONE | null | null | null | null | Fixes #33242
## Summary
This PR fixes: The eigsh call in spectral embedding is done wrong and differently from what is described in the comments
## Changes
```
sklearn/manifold/_spectral_embedding.py | 28 ++++++++++------------------
1 file changed, 10 insertions(+), 18 deletions(-)
```
## Testing
Please review the changes carefully. The fix was verified against the existing test suite.
---
*This PR was created with the assistance of Claude Sonnet 4.6 by Anthropic | effort: low. Happy to make any adjustments!* | {
"login": "virchan",
"id": 25701849,
"node_id": "MDQ6VXNlcjI1NzAxODQ5",
"avatar_url": "https://avatars.githubusercontent.com/u/25701849?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/virchan",
"html_url": "https://github.com/virchan",
"followers_url": "https://api.github.com/users/virchan/followers",
"following_url": "https://api.github.com/users/virchan/following{/other_user}",
"gists_url": "https://api.github.com/users/virchan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/virchan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/virchan/subscriptions",
"organizations_url": "https://api.github.com/users/virchan/orgs",
"repos_url": "https://api.github.com/users/virchan/repos",
"events_url": "https://api.github.com/users/virchan/events{/privacy}",
"received_events_url": "https://api.github.com/users/virchan/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33349/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33349/timeline | null | null | null | false | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/pulls/33349",
"html_url": "https://github.com/scikit-learn/scikit-learn/pull/33349",
"diff_url": "https://github.com/scikit-learn/scikit-learn/pull/33349.diff",
"patch_url": "https://github.com/scikit-learn/scikit-learn/pull/33349.patch",
"merged_at": null
} | true |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33348 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33348/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33348/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33348/events | https://github.com/scikit-learn/scikit-learn/pull/33348 | 3,972,004,383 | PR_kwDOAAzd1s7FVr7w | 33,348 | FEA Add array API support for PoissonRegressor with LBFGS | {
"login": "lorentzenchr",
"id": 15324633,
"node_id": "MDQ6VXNlcjE1MzI0NjMz",
"avatar_url": "https://avatars.githubusercontent.com/u/15324633?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/lorentzenchr",
"html_url": "https://github.com/lorentzenchr",
"followers_url": "https://api.github.com/users/lorentzenchr/followers",
"following_url": "https://api.github.com/users/lorentzenchr/following{/other_user}",
"gists_url": "https://api.github.com/users/lorentzenchr/gists{/gist_id}",
"starred_url": "https://api.github.com/users/lorentzenchr/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lorentzenchr/subscriptions",
"organizations_url": "https://api.github.com/users/lorentzenchr/orgs",
"repos_url": "https://api.github.com/users/lorentzenchr/repos",
"events_url": "https://api.github.com/users/lorentzenchr/events{/privacy}",
"received_events_url": "https://api.github.com/users/lorentzenchr/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 1815444632,
"node_id": "MDU6TGFiZWwxODE1NDQ0NjMy",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/module:linear_model",
"name": "module:linear_model",
"color": "151e91",
"default": false,
"description": ""
},
{
"id": 5464227604,
"node_id": "LA_k... | open | false | [] | null | 1 | 2026-02-21T13:12:31 | 2026-03-06T11:08:24 | null | null | MEMBER | null | null | null | null | #### Reference Issues/PRs
Similar to #32644.
#### What does this implement/fix? Explain your changes.
This adds array API support to `PoissonRegressor(solver="lbfgs")`.
#### AI usage disclosure
None
#### Any other comments?
~~Depends on #33345.~~(merged)
| null | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33348/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33348/timeline | null | null | null | true | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/pulls/33348",
"html_url": "https://github.com/scikit-learn/scikit-learn/pull/33348",
"diff_url": "https://github.com/scikit-learn/scikit-learn/pull/33348.diff",
"patch_url": "https://github.com/scikit-learn/scikit-learn/pull/33348.patch",
"merged_at": null
} | true |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33347 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33347/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33347/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33347/events | https://github.com/scikit-learn/scikit-learn/pull/33347 | 3,971,895,648 | PR_kwDOAAzd1s7FVXxN | 33,347 | MNT remove unused need_update_leaves_values in private losses | {
"login": "lorentzenchr",
"id": 15324633,
"node_id": "MDQ6VXNlcjE1MzI0NjMz",
"avatar_url": "https://avatars.githubusercontent.com/u/15324633?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/lorentzenchr",
"html_url": "https://github.com/lorentzenchr",
"followers_url": "https://api.github.com/users/lorentzenchr/followers",
"following_url": "https://api.github.com/users/lorentzenchr/following{/other_user}",
"gists_url": "https://api.github.com/users/lorentzenchr/gists{/gist_id}",
"starred_url": "https://api.github.com/users/lorentzenchr/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lorentzenchr/subscriptions",
"organizations_url": "https://api.github.com/users/lorentzenchr/orgs",
"repos_url": "https://api.github.com/users/lorentzenchr/repos",
"events_url": "https://api.github.com/users/lorentzenchr/events{/privacy}",
"received_events_url": "https://api.github.com/users/lorentzenchr/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 2659863795,
"node_id": "MDU6TGFiZWwyNjU5ODYzNzk1",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/No%20Changelog%20Needed",
"name": "No Changelog Needed",
"color": "B0529C",
"default": false,
"description": ""
},
{
"id": 3730476391,
"node_id": "... | closed | false | [] | null | 0 | 2026-02-21T11:45:55 | 2026-02-22T19:46:34 | 2026-02-22T17:07:00 | null | MEMBER | null | null | null | null | #### Reference Issues/PRs
None
#### What does this implement/fix? Explain your changes.
Small clean up to remove an unused attribute. `need_update_leaves_values` is redundant to attribute `differentiable` (if one is true, the other is false, and vice versa).
#### AI usage disclosure
None
#### Any other comments?
| {
"login": "jeremiedbb",
"id": 34657725,
"node_id": "MDQ6VXNlcjM0NjU3NzI1",
"avatar_url": "https://avatars.githubusercontent.com/u/34657725?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jeremiedbb",
"html_url": "https://github.com/jeremiedbb",
"followers_url": "https://api.github.com/users/jeremiedbb/followers",
"following_url": "https://api.github.com/users/jeremiedbb/following{/other_user}",
"gists_url": "https://api.github.com/users/jeremiedbb/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jeremiedbb/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jeremiedbb/subscriptions",
"organizations_url": "https://api.github.com/users/jeremiedbb/orgs",
"repos_url": "https://api.github.com/users/jeremiedbb/repos",
"events_url": "https://api.github.com/users/jeremiedbb/events{/privacy}",
"received_events_url": "https://api.github.com/users/jeremiedbb/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33347/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33347/timeline | null | null | null | false | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/pulls/33347",
"html_url": "https://github.com/scikit-learn/scikit-learn/pull/33347",
"diff_url": "https://github.com/scikit-learn/scikit-learn/pull/33347.diff",
"patch_url": "https://github.com/scikit-learn/scikit-learn/pull/33347.patch",
"merged_at": "2026-02-22T17:07:00"
} | true |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33346 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33346/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33346/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33346/events | https://github.com/scikit-learn/scikit-learn/issues/33346 | 3,971,836,853 | I_kwDOAAzd1s7svWu1 | 33,346 | Array API support for LogisticRegressionCV with LBFGS | {
"login": "lorentzenchr",
"id": 15324633,
"node_id": "MDQ6VXNlcjE1MzI0NjMz",
"avatar_url": "https://avatars.githubusercontent.com/u/15324633?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/lorentzenchr",
"html_url": "https://github.com/lorentzenchr",
"followers_url": "https://api.github.com/users/lorentzenchr/followers",
"following_url": "https://api.github.com/users/lorentzenchr/following{/other_user}",
"gists_url": "https://api.github.com/users/lorentzenchr/gists{/gist_id}",
"starred_url": "https://api.github.com/users/lorentzenchr/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lorentzenchr/subscriptions",
"organizations_url": "https://api.github.com/users/lorentzenchr/orgs",
"repos_url": "https://api.github.com/users/lorentzenchr/repos",
"events_url": "https://api.github.com/users/lorentzenchr/events{/privacy}",
"received_events_url": "https://api.github.com/users/lorentzenchr/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 1815444632,
"node_id": "MDU6TGFiZWwxODE1NDQ0NjMy",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/module:linear_model",
"name": "module:linear_model",
"color": "151e91",
"default": false,
"description": ""
},
{
"id": 5464227604,
"node_id": "LA_k... | open | false | [] | null | 3 | 2026-02-21T10:55:42 | 2026-02-23T10:15:09 | null | null | MEMBER | null | null | {
"total": 0,
"completed": 0,
"percent_completed": 0
} | {
"blocked_by": 0,
"total_blocked_by": 0,
"blocking": 0,
"total_blocking": 0
} | Follow-up of #32611. | null | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33346/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33346/timeline | null | null | null | null | null | false |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33345 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33345/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33345/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33345/events | https://github.com/scikit-learn/scikit-learn/pull/33345 | 3,971,828,711 | PR_kwDOAAzd1s7FVLce | 33,345 | ENH make `_loss.link.py` array API compatible | {
"login": "lorentzenchr",
"id": 15324633,
"node_id": "MDQ6VXNlcjE1MzI0NjMz",
"avatar_url": "https://avatars.githubusercontent.com/u/15324633?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/lorentzenchr",
"html_url": "https://github.com/lorentzenchr",
"followers_url": "https://api.github.com/users/lorentzenchr/followers",
"following_url": "https://api.github.com/users/lorentzenchr/following{/other_user}",
"gists_url": "https://api.github.com/users/lorentzenchr/gists{/gist_id}",
"starred_url": "https://api.github.com/users/lorentzenchr/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lorentzenchr/subscriptions",
"organizations_url": "https://api.github.com/users/lorentzenchr/orgs",
"repos_url": "https://api.github.com/users/lorentzenchr/repos",
"events_url": "https://api.github.com/users/lorentzenchr/events{/privacy}",
"received_events_url": "https://api.github.com/users/lorentzenchr/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 2659863795,
"node_id": "MDU6TGFiZWwyNjU5ODYzNzk1",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/No%20Changelog%20Needed",
"name": "No Changelog Needed",
"color": "B0529C",
"default": false,
"description": ""
},
{
"id": 5464227604,
"node_id": "... | closed | false | [] | null | 10 | 2026-02-21T10:48:49 | 2026-03-05T10:33:11 | 2026-03-05T10:33:08 | null | MEMBER | null | null | null | null | #### Reference Issues/PRs
Contributes to #26024.
#### What does this implement/fix? Explain your changes.
This makes the link functions in the private loss module array API compliant (for recent versions of scipy).
#### AI usage disclosure
None
#### Any other comments?
| {
"login": "ogrisel",
"id": 89061,
"node_id": "MDQ6VXNlcjg5MDYx",
"avatar_url": "https://avatars.githubusercontent.com/u/89061?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ogrisel",
"html_url": "https://github.com/ogrisel",
"followers_url": "https://api.github.com/users/ogrisel/followers",
"following_url": "https://api.github.com/users/ogrisel/following{/other_user}",
"gists_url": "https://api.github.com/users/ogrisel/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ogrisel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ogrisel/subscriptions",
"organizations_url": "https://api.github.com/users/ogrisel/orgs",
"repos_url": "https://api.github.com/users/ogrisel/repos",
"events_url": "https://api.github.com/users/ogrisel/events{/privacy}",
"received_events_url": "https://api.github.com/users/ogrisel/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33345/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33345/timeline | null | null | null | false | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/pulls/33345",
"html_url": "https://github.com/scikit-learn/scikit-learn/pull/33345",
"diff_url": "https://github.com/scikit-learn/scikit-learn/pull/33345.diff",
"patch_url": "https://github.com/scikit-learn/scikit-learn/pull/33345.patch",
"merged_at": "2026-03-05T10:33:08"
} | true |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33344 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33344/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33344/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33344/events | https://github.com/scikit-learn/scikit-learn/pull/33344 | 3,971,638,684 | PR_kwDOAAzd1s7FUngH | 33,344 | Fix #33294: `check_X_y` with list of dtypes converts polars 'X' incorrec | {
"login": "danielalanbates",
"id": 211571394,
"node_id": "U_kgDODJxSwg",
"avatar_url": "https://avatars.githubusercontent.com/u/211571394?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/danielalanbates",
"html_url": "https://github.com/danielalanbates",
"followers_url": "https://api.github.com/users/danielalanbates/followers",
"following_url": "https://api.github.com/users/danielalanbates/following{/other_user}",
"gists_url": "https://api.github.com/users/danielalanbates/gists{/gist_id}",
"starred_url": "https://api.github.com/users/danielalanbates/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/danielalanbates/subscriptions",
"organizations_url": "https://api.github.com/users/danielalanbates/orgs",
"repos_url": "https://api.github.com/users/danielalanbates/repos",
"events_url": "https://api.github.com/users/danielalanbates/events{/privacy}",
"received_events_url": "https://api.github.com/users/danielalanbates/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 1815453311,
"node_id": "MDU6TGFiZWwxODE1NDUzMzEx",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/module:utils",
"name": "module:utils",
"color": "151e91",
"default": false,
"description": ""
},
{
"id": 2399338178,
"node_id": "MDU6TGFiZWwyMzk5Mz... | closed | false | [] | null | 0 | 2026-02-21T08:06:49 | 2026-02-22T07:18:43 | 2026-02-22T07:18:34 | null | NONE | null | null | null | null | Fixes #33294
## Summary
This PR fixes: `check_X_y` with list of dtypes converts polars 'X' incorrectly
## Changes
```
sklearn/utils/validation.py | 16 +++++++++++++++-
1 file changed, 15 insertions(+), 1 deletion(-)
```
## Testing
Please review the changes carefully. The fix was verified against the existing test suite.
---
*This PR was created with the assistance of Claude Sonnet 4.6 by Anthropic | effort: low. Happy to make any adjustments!* | {
"login": "virchan",
"id": 25701849,
"node_id": "MDQ6VXNlcjI1NzAxODQ5",
"avatar_url": "https://avatars.githubusercontent.com/u/25701849?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/virchan",
"html_url": "https://github.com/virchan",
"followers_url": "https://api.github.com/users/virchan/followers",
"following_url": "https://api.github.com/users/virchan/following{/other_user}",
"gists_url": "https://api.github.com/users/virchan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/virchan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/virchan/subscriptions",
"organizations_url": "https://api.github.com/users/virchan/orgs",
"repos_url": "https://api.github.com/users/virchan/repos",
"events_url": "https://api.github.com/users/virchan/events{/privacy}",
"received_events_url": "https://api.github.com/users/virchan/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33344/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33344/timeline | null | null | null | false | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/pulls/33344",
"html_url": "https://github.com/scikit-learn/scikit-learn/pull/33344",
"diff_url": "https://github.com/scikit-learn/scikit-learn/pull/33344.diff",
"patch_url": "https://github.com/scikit-learn/scikit-learn/pull/33344.patch",
"merged_at": null
} | true |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33343 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33343/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33343/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33343/events | https://github.com/scikit-learn/scikit-learn/pull/33343 | 3,971,631,345 | PR_kwDOAAzd1s7FUmF_ | 33,343 | Fix #33227: Segmentation fault with free-threaded in `test_gpr_correct_e | {
"login": "danielalanbates",
"id": 211571394,
"node_id": "U_kgDODJxSwg",
"avatar_url": "https://avatars.githubusercontent.com/u/211571394?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/danielalanbates",
"html_url": "https://github.com/danielalanbates",
"followers_url": "https://api.github.com/users/danielalanbates/followers",
"following_url": "https://api.github.com/users/danielalanbates/following{/other_user}",
"gists_url": "https://api.github.com/users/danielalanbates/gists{/gist_id}",
"starred_url": "https://api.github.com/users/danielalanbates/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/danielalanbates/subscriptions",
"organizations_url": "https://api.github.com/users/danielalanbates/orgs",
"repos_url": "https://api.github.com/users/danielalanbates/repos",
"events_url": "https://api.github.com/users/danielalanbates/events{/privacy}",
"received_events_url": "https://api.github.com/users/danielalanbates/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 1815443556,
"node_id": "MDU6TGFiZWwxODE1NDQzNTU2",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/module:gaussian_process",
"name": "module:gaussian_process",
"color": "151e91",
"default": false,
"description": ""
},
{
"id": 2399338178,
"node_id... | closed | false | [] | null | 1 | 2026-02-21T08:02:52 | 2026-02-22T15:09:52 | 2026-02-22T07:17:31 | null | NONE | null | null | null | null | Fixes #33227
## Summary
This PR fixes: Segmentation fault with free-threaded in `test_gpr_correct_error_message`
## Changes
```
sklearn/gaussian_process/kernels.py | 15 ++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)
```
## Testing
Please review the changes carefully. The fix was verified against the existing test suite.
---
*This PR was created with the assistance of Claude Sonnet 4.6 by Anthropic | effort: low. Happy to make any adjustments!* | {
"login": "virchan",
"id": 25701849,
"node_id": "MDQ6VXNlcjI1NzAxODQ5",
"avatar_url": "https://avatars.githubusercontent.com/u/25701849?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/virchan",
"html_url": "https://github.com/virchan",
"followers_url": "https://api.github.com/users/virchan/followers",
"following_url": "https://api.github.com/users/virchan/following{/other_user}",
"gists_url": "https://api.github.com/users/virchan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/virchan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/virchan/subscriptions",
"organizations_url": "https://api.github.com/users/virchan/orgs",
"repos_url": "https://api.github.com/users/virchan/repos",
"events_url": "https://api.github.com/users/virchan/events{/privacy}",
"received_events_url": "https://api.github.com/users/virchan/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33343/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33343/timeline | null | null | null | false | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/pulls/33343",
"html_url": "https://github.com/scikit-learn/scikit-learn/pull/33343",
"diff_url": "https://github.com/scikit-learn/scikit-learn/pull/33343.diff",
"patch_url": "https://github.com/scikit-learn/scikit-learn/pull/33343.patch",
"merged_at": null
} | true |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33342 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33342/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33342/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33342/events | https://github.com/scikit-learn/scikit-learn/issues/33342 | 3,971,233,834 | I_kwDOAAzd1s7stDgq | 33,342 | Wrong chance_level plot in PrecisionRecallDisplay when using Pytorch data | {
"login": "lucolivi",
"id": 10436644,
"node_id": "MDQ6VXNlcjEwNDM2NjQ0",
"avatar_url": "https://avatars.githubusercontent.com/u/10436644?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/lucolivi",
"html_url": "https://github.com/lucolivi",
"followers_url": "https://api.github.com/users/lucolivi/followers",
"following_url": "https://api.github.com/users/lucolivi/following{/other_user}",
"gists_url": "https://api.github.com/users/lucolivi/gists{/gist_id}",
"starred_url": "https://api.github.com/users/lucolivi/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lucolivi/subscriptions",
"organizations_url": "https://api.github.com/users/lucolivi/orgs",
"repos_url": "https://api.github.com/users/lucolivi/repos",
"events_url": "https://api.github.com/users/lucolivi/events{/privacy}",
"received_events_url": "https://api.github.com/users/lucolivi/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 12995755,
"node_id": "MDU6TGFiZWwxMjk5NTc1NQ==",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/Bug",
"name": "Bug",
"color": "e10c02",
"default": false,
"description": null
},
{
"id": 5464227604,
"node_id": "LA_kwDOAAzd1s8AAAABRbF_FA",
"url... | open | false | [] | null | 14 | 2026-02-21T03:43:11 | 2026-03-02T09:28:45 | null | null | NONE | null | null | {
"total": 0,
"completed": 0,
"percent_completed": 0
} | {
"blocked_by": 0,
"total_blocked_by": 0,
"blocking": 0,
"total_blocking": 0
} | ### Describe the bug and give evidence about its user-facing impact
The chance_level line drawn by `PrecisionRecallDisplay.from_predictions` when `plot_chance_level=True` is not correct when `y_true` is an instance of `pytorch.Tensor`.
### Steps/Code to Reproduce
```python
# pytorch==2.8.0
from sklearn.metrics import PrecisionRecallDisplay
import torch
torch.manual_seed(42)
y_true = torch.cat([torch.ones(40), torch.zeros(60)]) # Chance level equal 0.4
y_score = torch.rand_like(y_true)
PrecisionRecallDisplay.from_predictions(y_true, y_score, plot_chance_level=True) # Wrong
PrecisionRecallDisplay.from_predictions(y_true.numpy(), y_score, plot_chance_level=True) # Correct
```
### Expected Results
Correct chance classifier line at y 0.4 with y_true as a numpy array.
<img width="448" height="434" alt="Image" src="https://github.com/user-attachments/assets/1c7b612d-bca1-4fdb-836e-f33bd0ef181c" />
### Actual Results
Wrong chance classifier line at y 0.0 with y_true as a pytorch tensor.
<img width="448" height="434" alt="Image" src="https://github.com/user-attachments/assets/4d68fe9e-c54d-4ba6-825f-62a117367679" />
### Versions
```shell
System:
python: 3.13.5 | packaged by Anaconda, Inc. | (main, Jun 12 2025, 16:37:03) [MSC v.1929 64 bit (AMD64)]
executable: C:\Users\lucas\miniconda\envs\pytorch28\python.exe
machine: Windows-11-10.0.26200-SP0
Python dependencies:
sklearn: 1.7.1
pip: 25.1
setuptools: 78.1.1
numpy: 2.1.2
scipy: 1.16.1
Cython: None
pandas: 2.3.3
matplotlib: 3.10.5
joblib: 1.5.1
threadpoolctl: 3.6.0
Built with OpenMP: True
threadpoolctl info:
user_api: openmp
internal_api: openmp
num_threads: 6
prefix: libiomp
filepath: C:\Users\lucas\miniconda\envs\pytorch28\Lib\site-packages\torch\lib\libiomp5md.dll
version: None
user_api: openmp
internal_api: openmp
num_threads: 1
prefix: libiomp
filepath: C:\Users\lucas\miniconda\envs\pytorch28\Lib\site-packages\torch\lib\libiompstubs5md.dll
version: None
user_api: blas
internal_api: openblas
num_threads: 12
prefix: libscipy_openblas
filepath: C:\Users\lucas\miniconda\envs\pytorch28\Lib\site-packages\numpy.libs\libscipy_openblas64_-c16e4918366c6bc1f1cd71e28ca36fc0.dll
version: 0.3.27
threading_layer: pthreads
architecture: Haswell
user_api: openmp
internal_api: openmp
num_threads: 12
prefix: vcomp
filepath: C:\Users\lucas\miniconda\envs\pytorch28\Lib\site-packages\sklearn\.libs\vcomp140.dll
version: None
user_api: blas
internal_api: openblas
num_threads: 12
prefix: libscipy_openblas
filepath: C:\Users\lucas\miniconda\envs\pytorch28\Lib\site-packages\scipy.libs\libscipy_openblas-6b2103f2ae4d8547998b5d188e9801fb.dll
version: 0.3.28
threading_layer: pthreads
architecture: Haswell
```
### Interest in fixing the bug
Working on this, the root cause is due to these reasons:
- pytorch (and potentially other array libraries) defines scalars in such a way that their hash is different from their value and same values may have different hashes;
- `PrecisionRecallDisplay.from_predictions` relies on `Counter` class to compare `y_true` entries with `pos_label` values in order to generate `prevalence_pos_label` (chance level). https://github.com/scikit-learn/scikit-learn/blob/646da0f072a8afef6a980aa427a710311e67eb9d/sklearn/metrics/_plot/precision_recall_curve.py#L563-L565
- `Counter` is not able to group objects with same values since they have different hash values.
Comparing the values from `y_true` directly to `pos_label` to calculate `prevalence_pos_label` should be enough to fix this. | null | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33342/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33342/timeline | null | null | null | null | null | false |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33341 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33341/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33341/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33341/events | https://github.com/scikit-learn/scikit-learn/pull/33341 | 3,970,638,299 | PR_kwDOAAzd1s7FRfGx | 33,341 | MNT remove duplicate comment in loss module | {
"login": "lorentzenchr",
"id": 15324633,
"node_id": "MDQ6VXNlcjE1MzI0NjMz",
"avatar_url": "https://avatars.githubusercontent.com/u/15324633?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/lorentzenchr",
"html_url": "https://github.com/lorentzenchr",
"followers_url": "https://api.github.com/users/lorentzenchr/followers",
"following_url": "https://api.github.com/users/lorentzenchr/following{/other_user}",
"gists_url": "https://api.github.com/users/lorentzenchr/gists{/gist_id}",
"starred_url": "https://api.github.com/users/lorentzenchr/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lorentzenchr/subscriptions",
"organizations_url": "https://api.github.com/users/lorentzenchr/orgs",
"repos_url": "https://api.github.com/users/lorentzenchr/repos",
"events_url": "https://api.github.com/users/lorentzenchr/events{/privacy}",
"received_events_url": "https://api.github.com/users/lorentzenchr/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 2659863795,
"node_id": "MDU6TGFiZWwyNjU5ODYzNzk1",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/No%20Changelog%20Needed",
"name": "No Changelog Needed",
"color": "B0529C",
"default": false,
"description": ""
},
{
"id": 3730476391,
"node_id": "... | closed | false | [] | null | 0 | 2026-02-20T22:30:45 | 2026-02-21T10:52:59 | 2026-02-21T06:44:15 | null | MEMBER | null | null | null | null | #### Reference Issues/PRs
None
#### What does this implement/fix? Explain your changes.
Minor code cleaning in private loss module.
#### AI usage disclosure
None.
| {
"login": "OmarManzoor",
"id": 17495884,
"node_id": "MDQ6VXNlcjE3NDk1ODg0",
"avatar_url": "https://avatars.githubusercontent.com/u/17495884?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/OmarManzoor",
"html_url": "https://github.com/OmarManzoor",
"followers_url": "https://api.github.com/users/OmarManzoor/followers",
"following_url": "https://api.github.com/users/OmarManzoor/following{/other_user}",
"gists_url": "https://api.github.com/users/OmarManzoor/gists{/gist_id}",
"starred_url": "https://api.github.com/users/OmarManzoor/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/OmarManzoor/subscriptions",
"organizations_url": "https://api.github.com/users/OmarManzoor/orgs",
"repos_url": "https://api.github.com/users/OmarManzoor/repos",
"events_url": "https://api.github.com/users/OmarManzoor/events{/privacy}",
"received_events_url": "https://api.github.com/users/OmarManzoor/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33341/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33341/timeline | null | null | null | false | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/pulls/33341",
"html_url": "https://github.com/scikit-learn/scikit-learn/pull/33341",
"diff_url": "https://github.com/scikit-learn/scikit-learn/pull/33341.diff",
"patch_url": "https://github.com/scikit-learn/scikit-learn/pull/33341.patch",
"merged_at": "2026-02-21T06:44:15"
} | true |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33340 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33340/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33340/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33340/events | https://github.com/scikit-learn/scikit-learn/pull/33340 | 3,969,580,656 | PR_kwDOAAzd1s7FOD4z | 33,340 | [Callbacks] FEA Define callback behaviour when cloning an estimator | {
"login": "FrancoisPgm",
"id": 35327799,
"node_id": "MDQ6VXNlcjM1MzI3Nzk5",
"avatar_url": "https://avatars.githubusercontent.com/u/35327799?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/FrancoisPgm",
"html_url": "https://github.com/FrancoisPgm",
"followers_url": "https://api.github.com/users/FrancoisPgm/followers",
"following_url": "https://api.github.com/users/FrancoisPgm/following{/other_user}",
"gists_url": "https://api.github.com/users/FrancoisPgm/gists{/gist_id}",
"starred_url": "https://api.github.com/users/FrancoisPgm/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/FrancoisPgm/subscriptions",
"organizations_url": "https://api.github.com/users/FrancoisPgm/orgs",
"repos_url": "https://api.github.com/users/FrancoisPgm/repos",
"events_url": "https://api.github.com/users/FrancoisPgm/events{/privacy}",
"received_events_url": "https://api.github.com/users/FrancoisPgm/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 2659863795,
"node_id": "MDU6TGFiZWwyNjU5ODYzNzk1",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/No%20Changelog%20Needed",
"name": "No Changelog Needed",
"color": "B0529C",
"default": false,
"description": ""
},
{
"id": 4691539216,
"node_id": "... | open | false | [] | null | 2 | 2026-02-20T17:24:18 | 2026-03-05T15:56:32 | null | null | CONTRIBUTOR | null | null | null | null | <!--
π Thanks for contributing a pull request!
π Please ensure you have taken a look at the contribution guidelines:
https://github.com/scikit-learn/scikit-learn/blob/main/CONTRIBUTING.md
β
In particular following the pull request checklist will increase the likelihood
of having maintainers review your PR:
https://scikit-learn.org/dev/developers/contributing.html#pull-request-checklist
π If your PR is likely to affect users, you will need to add a changelog entry
describing your PR changes, see:
https://github.com/scikit-learn/scikit-learn/blob/main/doc/whats_new/upcoming_changes/README.md
-->
#### Reference Issues/PRs
<!--
Example: Fixes #1234. See also #3456.
Please use keywords (e.g., Fixes) to create link to the issues or pull requests
you resolved, so that they will automatically be closed when your pull request
is merged. See https://github.com/blog/1506-closing-issues-via-pull-requests
-->
Towards #33323
#### What does this implement/fix? Explain your changes.
When used on an estimator holding callbacks, `clone` now discards the callbacks in the clone, raising a warning.
For callback-compatible meta estimator which need to clone sub-estimators, `propagate_callbacks` now offers a way to clone the sub-estimators while forwarding the callbacks to the clone and silencing the warning.
#### AI usage disclosure
<!--
If AI tools were involved in creating this PR, please check all boxes that apply
below and make sure that you adhere to our Automated Contributions Policy:
https://scikit-learn.org/dev/developers/contributing.html#automated-contributions-policy
-->
I used AI assistance for:
- [ ] Code generation (e.g., when writing an implementation or fixing a bug)
- [x] Test/benchmark generation
- [ ] Documentation (including examples)
- [x] Research and understanding
#### Any other comments?
<!--
Thank you for your patience. Changes to scikit-learn require careful
attention, but with limited maintainer time, not every contribution can be reviewed
quickly.
For more information and tips on improving your pull request, see:
https://scikit-learn.org/dev/faq.html#why-is-my-pull-request-not-getting-any-attention.
Thanks for contributing!
-->
| null | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33340/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33340/timeline | null | null | null | false | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/pulls/33340",
"html_url": "https://github.com/scikit-learn/scikit-learn/pull/33340",
"diff_url": "https://github.com/scikit-learn/scikit-learn/pull/33340.diff",
"patch_url": "https://github.com/scikit-learn/scikit-learn/pull/33340.patch",
"merged_at": null
} | true |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33339 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33339/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33339/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33339/events | https://github.com/scikit-learn/scikit-learn/pull/33339 | 3,969,162,444 | PR_kwDOAAzd1s7FMrDO | 33,339 | DOC remove incorrect integral dtype requirement from clustering metrics | {
"login": "raajpatre",
"id": 216502188,
"node_id": "U_kgDODOePrA",
"avatar_url": "https://avatars.githubusercontent.com/u/216502188?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/raajpatre",
"html_url": "https://github.com/raajpatre",
"followers_url": "https://api.github.com/users/raajpatre/followers",
"following_url": "https://api.github.com/users/raajpatre/following{/other_user}",
"gists_url": "https://api.github.com/users/raajpatre/gists{/gist_id}",
"starred_url": "https://api.github.com/users/raajpatre/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/raajpatre/subscriptions",
"organizations_url": "https://api.github.com/users/raajpatre/orgs",
"repos_url": "https://api.github.com/users/raajpatre/repos",
"events_url": "https://api.github.com/users/raajpatre/events{/privacy}",
"received_events_url": "https://api.github.com/users/raajpatre/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 12995770,
"node_id": "MDU6TGFiZWwxMjk5NTc3MA==",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/Documentation",
"name": "Documentation",
"color": "0b02e1",
"default": false,
"description": null
},
{
"id": 1815445423,
"node_id": "MDU6TGFiZWwxODE1... | closed | false | [] | null | 1 | 2026-02-20T15:41:45 | 2026-02-23T00:54:04 | 2026-02-23T00:54:00 | null | NONE | null | null | null | null | Fixes #32930
#### What does this implement/fix? Explain your changes.
->
This PR updates the docstrings for supervised clustering metrics in sklearn/metrics/cluster/_supervised.py. Previously, the parameters labels_true and labels_pred incorrectly specified dtype=integral (or int).
Since these metric functions support any array-like of discrete labels (including strings and discrete floats), I have removed the strict integer dtype requirement from the docstrings to prevent confusion and accurately reflect the underlying implementation.
#### AI usage disclosure
->
I used AI assistance for:
- [ ] Code generation (e.g., when writing an implementation or fixing a bug)
- [ ] Test/benchmark generation
- [β
] Documentation (including examples)
- [β
] Research and understanding
#### Any other comments?
-> NIL
| {
"login": "lucyleeow",
"id": 23182829,
"node_id": "MDQ6VXNlcjIzMTgyODI5",
"avatar_url": "https://avatars.githubusercontent.com/u/23182829?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/lucyleeow",
"html_url": "https://github.com/lucyleeow",
"followers_url": "https://api.github.com/users/lucyleeow/followers",
"following_url": "https://api.github.com/users/lucyleeow/following{/other_user}",
"gists_url": "https://api.github.com/users/lucyleeow/gists{/gist_id}",
"starred_url": "https://api.github.com/users/lucyleeow/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lucyleeow/subscriptions",
"organizations_url": "https://api.github.com/users/lucyleeow/orgs",
"repos_url": "https://api.github.com/users/lucyleeow/repos",
"events_url": "https://api.github.com/users/lucyleeow/events{/privacy}",
"received_events_url": "https://api.github.com/users/lucyleeow/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33339/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33339/timeline | null | null | null | false | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/pulls/33339",
"html_url": "https://github.com/scikit-learn/scikit-learn/pull/33339",
"diff_url": "https://github.com/scikit-learn/scikit-learn/pull/33339.diff",
"patch_url": "https://github.com/scikit-learn/scikit-learn/pull/33339.patch",
"merged_at": null
} | true |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33338 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33338/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33338/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33338/events | https://github.com/scikit-learn/scikit-learn/issues/33338 | 3,968,017,790 | I_kwDOAAzd1s7sgyV- | 33,338 | [Callbacks] TST Add test to check if `RichTask` tree mirrors the `CallbackContext` tree | {
"login": "StefanieSenger",
"id": 91849487,
"node_id": "U_kgDOBXmDDw",
"avatar_url": "https://avatars.githubusercontent.com/u/91849487?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/StefanieSenger",
"html_url": "https://github.com/StefanieSenger",
"followers_url": "https://api.github.com/users/StefanieSenger/followers",
"following_url": "https://api.github.com/users/StefanieSenger/following{/other_user}",
"gists_url": "https://api.github.com/users/StefanieSenger/gists{/gist_id}",
"starred_url": "https://api.github.com/users/StefanieSenger/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/StefanieSenger/subscriptions",
"organizations_url": "https://api.github.com/users/StefanieSenger/orgs",
"repos_url": "https://api.github.com/users/StefanieSenger/repos",
"events_url": "https://api.github.com/users/StefanieSenger/events{/privacy}",
"received_events_url": "https://api.github.com/users/StefanieSenger/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 10245205856,
"node_id": "LA_kwDOAAzd1s8AAAACYqlvYA",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/Callbacks",
"name": "Callbacks",
"color": "7800F5",
"default": false,
"description": ""
}
] | open | false | [] | null | 1 | 2026-02-20T11:15:28 | 2026-02-20T13:07:21 | null | null | MEMBER | null | null | {
"total": 0,
"completed": 0,
"percent_completed": 0
} | {
"blocked_by": 0,
"total_blocked_by": 0,
"blocking": 0,
"total_blocking": 0
} | related to #27676
It might be worth adding a test in `test_progressbar.py` that verifies that the `RichTask` tree mirrors the `CallbackContext` tree. This would guard against regressions if `RichProgressMonitor` (which builds the tree) is modified in the future.
Both trees should have an identical structure except for the leaf nodes (max_subtasks=0) which are excluded in `RichTask.__iter__()`. | null | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33338/reactions",
"total_count": 1,
"+1": 1,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33338/timeline | null | null | null | null | null | false |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33337 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33337/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33337/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33337/events | https://github.com/scikit-learn/scikit-learn/pull/33337 | 3,967,512,439 | PR_kwDOAAzd1s7FHJfb | 33,337 | FIX: VarianceThreshold handling special-case of all-NaN columns | {
"login": "ThibaultDECO",
"id": 80053070,
"node_id": "MDQ6VXNlcjgwMDUzMDcw",
"avatar_url": "https://avatars.githubusercontent.com/u/80053070?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ThibaultDECO",
"html_url": "https://github.com/ThibaultDECO",
"followers_url": "https://api.github.com/users/ThibaultDECO/followers",
"following_url": "https://api.github.com/users/ThibaultDECO/following{/other_user}",
"gists_url": "https://api.github.com/users/ThibaultDECO/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ThibaultDECO/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ThibaultDECO/subscriptions",
"organizations_url": "https://api.github.com/users/ThibaultDECO/orgs",
"repos_url": "https://api.github.com/users/ThibaultDECO/repos",
"events_url": "https://api.github.com/users/ThibaultDECO/events{/privacy}",
"received_events_url": "https://api.github.com/users/ThibaultDECO/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 1815442108,
"node_id": "MDU6TGFiZWwxODE1NDQyMTA4",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/module:feature_selection",
"name": "module:feature_selection",
"color": "151e91",
"default": false,
"description": ""
}
] | closed | false | [] | null | 2 | 2026-02-20T09:29:44 | 2026-02-24T20:25:47 | 2026-02-22T23:49:02 | null | CONTRIBUTOR | null | null | null | null | #### What does this implement/fix? Explain your changes.
This allows VarianceThreshold to handle the special case of all-NaN columns. | {
"login": "lucyleeow",
"id": 23182829,
"node_id": "MDQ6VXNlcjIzMTgyODI5",
"avatar_url": "https://avatars.githubusercontent.com/u/23182829?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/lucyleeow",
"html_url": "https://github.com/lucyleeow",
"followers_url": "https://api.github.com/users/lucyleeow/followers",
"following_url": "https://api.github.com/users/lucyleeow/following{/other_user}",
"gists_url": "https://api.github.com/users/lucyleeow/gists{/gist_id}",
"starred_url": "https://api.github.com/users/lucyleeow/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lucyleeow/subscriptions",
"organizations_url": "https://api.github.com/users/lucyleeow/orgs",
"repos_url": "https://api.github.com/users/lucyleeow/repos",
"events_url": "https://api.github.com/users/lucyleeow/events{/privacy}",
"received_events_url": "https://api.github.com/users/lucyleeow/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33337/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33337/timeline | null | null | null | false | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/pulls/33337",
"html_url": "https://github.com/scikit-learn/scikit-learn/pull/33337",
"diff_url": "https://github.com/scikit-learn/scikit-learn/pull/33337.diff",
"patch_url": "https://github.com/scikit-learn/scikit-learn/pull/33337.patch",
"merged_at": null
} | true |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33336 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33336/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33336/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33336/events | https://github.com/scikit-learn/scikit-learn/pull/33336 | 3,967,240,563 | PR_kwDOAAzd1s7FGQOJ | 33,336 | FEA Add Array API support for sigmoid and isotonic in CalibratedClassifierCV | {
"login": "veeceey",
"id": 34209028,
"node_id": "MDQ6VXNlcjM0MjA5MDI4",
"avatar_url": "https://avatars.githubusercontent.com/u/34209028?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/veeceey",
"html_url": "https://github.com/veeceey",
"followers_url": "https://api.github.com/users/veeceey/followers",
"following_url": "https://api.github.com/users/veeceey/following{/other_user}",
"gists_url": "https://api.github.com/users/veeceey/gists{/gist_id}",
"starred_url": "https://api.github.com/users/veeceey/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/veeceey/subscriptions",
"organizations_url": "https://api.github.com/users/veeceey/orgs",
"repos_url": "https://api.github.com/users/veeceey/repos",
"events_url": "https://api.github.com/users/veeceey/events{/privacy}",
"received_events_url": "https://api.github.com/users/veeceey/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 2399338178,
"node_id": "MDU6TGFiZWwyMzk5MzM4MTc4",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/spam",
"name": "spam",
"color": "b60205",
"default": false,
"description": "spam PR and issues"
},
{
"id": 9691732262,
"node_id": "LA_kwDOAAzd1s8AA... | closed | false | [] | null | 1 | 2026-02-20T08:19:26 | 2026-02-20T08:49:07 | 2026-02-20T08:48:55 | null | NONE | null | null | null | null | #### Reference Issues/PRs
Closes #31869 (partially - adds sigmoid and isotonic support)
Follows up on #32246 which added Array API support for temperature scaling.
## Summary
- Extends Array API support in `CalibratedClassifierCV` to `method="sigmoid"` (Platt scaling) and `method="isotonic"` calibration methods
- Since sigmoid calibration uses `scipy.optimize.minimize` (L-BFGS-B) and isotonic regression is implemented in Cython, both are inherently numpy-only. The approach converts predictions, labels, sample weights, and class arrays to numpy before fitting/predicting with these calibrators, then converts results back to the original array namespace
- The underlying estimator can still operate on Array API arrays (e.g., PyTorch tensors) for its `fit` and `predict` methods
- Removes the `method == "temperature"` restriction from `__sklearn_tags__` so all methods declare Array API support when the underlying estimator supports it
- Uses `xp.where` instead of boolean index assignment for Array API compatibility in the probability clamping step
## Test plan
- [x] Added `test_sigmoid_isotonic_array_api_compliance` test covering sigmoid and isotonic methods with Array API inputs
- [x] Test parametrized over: method (sigmoid, isotonic), ensemble (True, False), sample_weight (True, False), and all array namespace/device/dtype combinations
- [x] All 177 existing calibration tests pass (113 skipped due to missing backends like CUDA)
- [x] Verified numerical equivalence between numpy and array_api_strict results
π€ Generated with [Claude Code](https://claude.com/claude-code) | {
"login": "virchan",
"id": 25701849,
"node_id": "MDQ6VXNlcjI1NzAxODQ5",
"avatar_url": "https://avatars.githubusercontent.com/u/25701849?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/virchan",
"html_url": "https://github.com/virchan",
"followers_url": "https://api.github.com/users/virchan/followers",
"following_url": "https://api.github.com/users/virchan/following{/other_user}",
"gists_url": "https://api.github.com/users/virchan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/virchan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/virchan/subscriptions",
"organizations_url": "https://api.github.com/users/virchan/orgs",
"repos_url": "https://api.github.com/users/virchan/repos",
"events_url": "https://api.github.com/users/virchan/events{/privacy}",
"received_events_url": "https://api.github.com/users/virchan/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33336/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33336/timeline | null | null | null | false | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/pulls/33336",
"html_url": "https://github.com/scikit-learn/scikit-learn/pull/33336",
"diff_url": "https://github.com/scikit-learn/scikit-learn/pull/33336.diff",
"patch_url": "https://github.com/scikit-learn/scikit-learn/pull/33336.patch",
"merged_at": null
} | true |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33335 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33335/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33335/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33335/events | https://github.com/scikit-learn/scikit-learn/pull/33335 | 3,966,004,163 | PR_kwDOAAzd1s7FCNOq | 33,335 | Implementing partial_fit for NearestCentroid #12952 | {
"login": "shivamlalakiya",
"id": 50960482,
"node_id": "MDQ6VXNlcjUwOTYwNDgy",
"avatar_url": "https://avatars.githubusercontent.com/u/50960482?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/shivamlalakiya",
"html_url": "https://github.com/shivamlalakiya",
"followers_url": "https://api.github.com/users/shivamlalakiya/followers",
"following_url": "https://api.github.com/users/shivamlalakiya/following{/other_user}",
"gists_url": "https://api.github.com/users/shivamlalakiya/gists{/gist_id}",
"starred_url": "https://api.github.com/users/shivamlalakiya/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/shivamlalakiya/subscriptions",
"organizations_url": "https://api.github.com/users/shivamlalakiya/orgs",
"repos_url": "https://api.github.com/users/shivamlalakiya/repos",
"events_url": "https://api.github.com/users/shivamlalakiya/events{/privacy}",
"received_events_url": "https://api.github.com/users/shivamlalakiya/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 1815447666,
"node_id": "MDU6TGFiZWwxODE1NDQ3NjY2",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/module:neighbors",
"name": "module:neighbors",
"color": "151e91",
"default": false,
"description": ""
}
] | open | false | [] | null | 2 | 2026-02-20T01:21:28 | 2026-02-24T04:33:58 | null | null | NONE | null | null | null | null |
Fixes #12952
What does this implement/fix? Explain your changes.
This PR introduces out-of-core learning capabilities to the NearestCentroid classifier by implementing the partial_fit method for the euclidean metric. This allows the model to incrementally train on large-scale datasets that cannot fit entirely into memory.
Key Technical Details:
Incremental Updates: Implemented Chan's algorithm for numerically stable, batched updates of class centroids and within-class sum of squared errors (SSE).
Metric Routing: partial_fit is explicitly restricted to the euclidean metric, as the median (used in manhattan) cannot be properly updated incrementally.
Validation & DataFrame Preservation: Refactored the internal routing between fit and partial_fit to strictly avoid double-validation. This properly preserves pandas DataFrame metadata (feature_names_in_) and prevents the stripping of feature names during shell delegation.
Edge-Case Handling: Bulletproofed zero-variance checks across global and batched states, gracefully handling identical inputs within the same class without triggering Cython-level NaN/Inf divisions.
Cython Compatibility: Enforced strictly np.float64 and C-contiguous memory layouts for the centroids_ arrays to ensure downstream compatibility with Cython distances.
I used AI assistance for:
- [ ] Code generation (e.g., when writing an implementation or fixing a bug)
- [x] Test/benchmark generation
- [ ] Documentation (including examples)
- [ ] Research and understanding
#### Any other comments?
The initial fit method for euclidean now acts as a clean shell that delegates directly to partial_fit, reducing code duplication while maintaining strict scikit-learn API compliance.
Signed-off-by: Shivam Lalakiya
| {
"login": "lucyleeow",
"id": 23182829,
"node_id": "MDQ6VXNlcjIzMTgyODI5",
"avatar_url": "https://avatars.githubusercontent.com/u/23182829?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/lucyleeow",
"html_url": "https://github.com/lucyleeow",
"followers_url": "https://api.github.com/users/lucyleeow/followers",
"following_url": "https://api.github.com/users/lucyleeow/following{/other_user}",
"gists_url": "https://api.github.com/users/lucyleeow/gists{/gist_id}",
"starred_url": "https://api.github.com/users/lucyleeow/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lucyleeow/subscriptions",
"organizations_url": "https://api.github.com/users/lucyleeow/orgs",
"repos_url": "https://api.github.com/users/lucyleeow/repos",
"events_url": "https://api.github.com/users/lucyleeow/events{/privacy}",
"received_events_url": "https://api.github.com/users/lucyleeow/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33335/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33335/timeline | null | null | null | false | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/pulls/33335",
"html_url": "https://github.com/scikit-learn/scikit-learn/pull/33335",
"diff_url": "https://github.com/scikit-learn/scikit-learn/pull/33335.diff",
"patch_url": "https://github.com/scikit-learn/scikit-learn/pull/33335.patch",
"merged_at": null
} | true |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33334 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33334/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33334/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33334/events | https://github.com/scikit-learn/scikit-learn/issues/33334 | 3,965,493,814 | I_kwDOAAzd1s7sXKI2 | 33,334 | [Callbacks] ENH Add callback support to a couple of estimators and meta-estimators | {
"login": "jeremiedbb",
"id": 34657725,
"node_id": "MDQ6VXNlcjM0NjU3NzI1",
"avatar_url": "https://avatars.githubusercontent.com/u/34657725?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jeremiedbb",
"html_url": "https://github.com/jeremiedbb",
"followers_url": "https://api.github.com/users/jeremiedbb/followers",
"following_url": "https://api.github.com/users/jeremiedbb/following{/other_user}",
"gists_url": "https://api.github.com/users/jeremiedbb/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jeremiedbb/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jeremiedbb/subscriptions",
"organizations_url": "https://api.github.com/users/jeremiedbb/orgs",
"repos_url": "https://api.github.com/users/jeremiedbb/repos",
"events_url": "https://api.github.com/users/jeremiedbb/events{/privacy}",
"received_events_url": "https://api.github.com/users/jeremiedbb/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 10245205856,
"node_id": "LA_kwDOAAzd1s8AAAACYqlvYA",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/Callbacks",
"name": "Callbacks",
"color": "7800F5",
"default": false,
"description": ""
}
] | open | false | [] | null | 6 | 2026-02-19T22:37:44 | 2026-03-03T09:13:50 | null | null | MEMBER | null | null | {
"total": 0,
"completed": 0,
"percent_completed": 0
} | {
"blocked_by": 0,
"total_blocked_by": 0,
"blocking": 0,
"total_blocking": 0
} | related to https://github.com/scikit-learn/scikit-learn/issues/27676
It would serve to showcase how callback support would look like in actual scikit-learn estimators.
Interesting candidates:
- GridSearchCV
- Pipeline
- LogisticRegression
- more ?
ping @FrancoisPgm | null | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33334/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33334/timeline | null | null | null | null | null | false |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33333 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33333/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33333/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33333/events | https://github.com/scikit-learn/scikit-learn/pull/33333 | 3,965,031,713 | PR_kwDOAAzd1s7E_LO5 | 33,333 | ENH change default scoring to log loss in LogisticRegressionCV | {
"login": "lorentzenchr",
"id": 15324633,
"node_id": "MDQ6VXNlcjE1MzI0NjMz",
"avatar_url": "https://avatars.githubusercontent.com/u/15324633?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/lorentzenchr",
"html_url": "https://github.com/lorentzenchr",
"followers_url": "https://api.github.com/users/lorentzenchr/followers",
"following_url": "https://api.github.com/users/lorentzenchr/following{/other_user}",
"gists_url": "https://api.github.com/users/lorentzenchr/gists{/gist_id}",
"starred_url": "https://api.github.com/users/lorentzenchr/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lorentzenchr/subscriptions",
"organizations_url": "https://api.github.com/users/lorentzenchr/orgs",
"repos_url": "https://api.github.com/users/lorentzenchr/repos",
"events_url": "https://api.github.com/users/lorentzenchr/events{/privacy}",
"received_events_url": "https://api.github.com/users/lorentzenchr/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 1815444632,
"node_id": "MDU6TGFiZWwxODE1NDQ0NjMy",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/module:linear_model",
"name": "module:linear_model",
"color": "151e91",
"default": false,
"description": ""
}
] | open | false | [] | null | 5 | 2026-02-19T20:50:21 | 2026-03-06T10:39:08 | null | null | MEMBER | null | null | null | null | #### Reference Issues/PRs
Fixes #33214.
#### What does this implement/fix? Explain your changes.
This PR changes the default `scoring=None`, i.e. accuracy, to `scoring=neg_log_loss` in `LogisticRegressionCV`.
#### AI usage disclosure
None
#### Any other comments?
The failing tests will be fixed, once #32828 gets merged. | null | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33333/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33333/timeline | null | null | null | false | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/pulls/33333",
"html_url": "https://github.com/scikit-learn/scikit-learn/pull/33333",
"diff_url": "https://github.com/scikit-learn/scikit-learn/pull/33333.diff",
"patch_url": "https://github.com/scikit-learn/scikit-learn/pull/33333.patch",
"merged_at": null
} | true |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33332 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33332/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33332/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33332/events | https://github.com/scikit-learn/scikit-learn/pull/33332 | 3,964,990,677 | PR_kwDOAAzd1s7E_CXD | 33,332 | docs: clarify redundant validation comment in _encoders.py | {
"login": "pshringi11",
"id": 206214556,
"node_id": "U_kgDODEqVnA",
"avatar_url": "https://avatars.githubusercontent.com/u/206214556?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/pshringi11",
"html_url": "https://github.com/pshringi11",
"followers_url": "https://api.github.com/users/pshringi11/followers",
"following_url": "https://api.github.com/users/pshringi11/following{/other_user}",
"gists_url": "https://api.github.com/users/pshringi11/gists{/gist_id}",
"starred_url": "https://api.github.com/users/pshringi11/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pshringi11/subscriptions",
"organizations_url": "https://api.github.com/users/pshringi11/orgs",
"repos_url": "https://api.github.com/users/pshringi11/repos",
"events_url": "https://api.github.com/users/pshringi11/events{/privacy}",
"received_events_url": "https://api.github.com/users/pshringi11/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 1815448196,
"node_id": "MDU6TGFiZWwxODE1NDQ4MTk2",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/module:preprocessing",
"name": "module:preprocessing",
"color": "151e91",
"default": false,
"description": ""
}
] | closed | false | [] | null | 3 | 2026-02-19T20:41:25 | 2026-02-24T17:06:05 | 2026-02-22T23:56:06 | null | NONE | null | null | null | null | Hi, I noticed that the comment on line 244 regarding check_unknown=False could be more descriptive to help developers understand that we are avoiding redundant validation. I've updated it for better clarity.
<!--
π Thanks for contributing a pull request!
π Please ensure you have taken a look at the contribution guidelines:
https://github.com/scikit-learn/scikit-learn/blob/main/CONTRIBUTING.md
β
In particular following the pull request checklist will increase the likelihood
of having maintainers review your PR:
https://scikit-learn.org/dev/developers/contributing.html#pull-request-checklist
π If your PR is likely to affect users, you will need to add a changelog entry
describing your PR changes, see:
https://github.com/scikit-learn/scikit-learn/blob/main/doc/whats_new/upcoming_changes/README.md
-->
#### Reference Issues/PRs
<!--
Example: Fixes #1234. See also #3456.
Please use keywords (e.g., Fixes) to create link to the issues or pull requests
you resolved, so that they will automatically be closed when your pull request
is merged. See https://github.com/blog/1506-closing-issues-via-pull-requests
-->
#### What does this implement/fix? Explain your changes.
This is a minor improvement to the comment on line 244 regarding check_unknown=False could be more descriptive to help developers understand that we are avoiding redundant validation. I've updated it for better clarity.
#### AI usage disclosure
<!--
If AI tools were involved in creating this PR, please check all boxes that apply
below and make sure that you adhere to our Automated Contributions Policy:
https://scikit-learn.org/dev/developers/contributing.html#automated-contributions-policy
-->
I used AI assistance for:
- [ ] Code generation (e.g., when writing an implementation or fixing a bug)
- [ ] Test/benchmark generation
- [ ] Documentation (including examples)
- [ ] Research and understanding
#### Any other comments?
<!--
Thank you for your patience. Changes to scikit-learn require careful
attention, but with limited maintainer time, not every contribution can be reviewed
quickly.
For more information and tips on improving your pull request, see:
https://scikit-learn.org/dev/faq.html#why-is-my-pull-request-not-getting-any-attention.
Thanks for contributing!
-->
| {
"login": "lucyleeow",
"id": 23182829,
"node_id": "MDQ6VXNlcjIzMTgyODI5",
"avatar_url": "https://avatars.githubusercontent.com/u/23182829?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/lucyleeow",
"html_url": "https://github.com/lucyleeow",
"followers_url": "https://api.github.com/users/lucyleeow/followers",
"following_url": "https://api.github.com/users/lucyleeow/following{/other_user}",
"gists_url": "https://api.github.com/users/lucyleeow/gists{/gist_id}",
"starred_url": "https://api.github.com/users/lucyleeow/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lucyleeow/subscriptions",
"organizations_url": "https://api.github.com/users/lucyleeow/orgs",
"repos_url": "https://api.github.com/users/lucyleeow/repos",
"events_url": "https://api.github.com/users/lucyleeow/events{/privacy}",
"received_events_url": "https://api.github.com/users/lucyleeow/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33332/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33332/timeline | null | null | null | false | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/pulls/33332",
"html_url": "https://github.com/scikit-learn/scikit-learn/pull/33332",
"diff_url": "https://github.com/scikit-learn/scikit-learn/pull/33332.diff",
"patch_url": "https://github.com/scikit-learn/scikit-learn/pull/33332.patch",
"merged_at": null
} | true |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33331 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33331/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33331/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33331/events | https://github.com/scikit-learn/scikit-learn/issues/33331 | 3,964,229,995 | I_kwDOAAzd1s7sSVlr | 33,331 | [Callbacks] DOC Add documentation for developpers | {
"login": "jeremiedbb",
"id": 34657725,
"node_id": "MDQ6VXNlcjM0NjU3NzI1",
"avatar_url": "https://avatars.githubusercontent.com/u/34657725?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jeremiedbb",
"html_url": "https://github.com/jeremiedbb",
"followers_url": "https://api.github.com/users/jeremiedbb/followers",
"following_url": "https://api.github.com/users/jeremiedbb/following{/other_user}",
"gists_url": "https://api.github.com/users/jeremiedbb/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jeremiedbb/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jeremiedbb/subscriptions",
"organizations_url": "https://api.github.com/users/jeremiedbb/orgs",
"repos_url": "https://api.github.com/users/jeremiedbb/repos",
"events_url": "https://api.github.com/users/jeremiedbb/events{/privacy}",
"received_events_url": "https://api.github.com/users/jeremiedbb/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 10245205856,
"node_id": "LA_kwDOAAzd1s8AAAACYqlvYA",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/Callbacks",
"name": "Callbacks",
"color": "7800F5",
"default": false,
"description": ""
}
] | open | false | [] | null | 1 | 2026-02-19T17:49:04 | 2026-02-19T17:54:40 | null | null | MEMBER | null | null | {
"total": 0,
"completed": 0,
"percent_completed": 0
} | {
"blocked_by": 0,
"total_blocked_by": 0,
"blocking": 0,
"total_blocking": 0
} | sub issue of https://github.com/scikit-learn/scikit-learn/issues/27676
Add a section or page in the developper guide to document
- the callback API
- the different objects needed to add callback support into an estimator
- how to implement callback support in an estimator
- how to implement a custome callback
Part of that could be done through an example.
We should also distinguish scikit-learn devs from third-party devs, the former being able to use private stuff.
ping @FrancoisPgm | null | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33331/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33331/timeline | null | null | null | null | null | false |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33330 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33330/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33330/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33330/events | https://github.com/scikit-learn/scikit-learn/issues/33330 | 3,964,209,942 | I_kwDOAAzd1s7sSQsW | 33,330 | [Callbacks] DOC Add documentation in the user guide | {
"login": "jeremiedbb",
"id": 34657725,
"node_id": "MDQ6VXNlcjM0NjU3NzI1",
"avatar_url": "https://avatars.githubusercontent.com/u/34657725?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jeremiedbb",
"html_url": "https://github.com/jeremiedbb",
"followers_url": "https://api.github.com/users/jeremiedbb/followers",
"following_url": "https://api.github.com/users/jeremiedbb/following{/other_user}",
"gists_url": "https://api.github.com/users/jeremiedbb/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jeremiedbb/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jeremiedbb/subscriptions",
"organizations_url": "https://api.github.com/users/jeremiedbb/orgs",
"repos_url": "https://api.github.com/users/jeremiedbb/repos",
"events_url": "https://api.github.com/users/jeremiedbb/events{/privacy}",
"received_events_url": "https://api.github.com/users/jeremiedbb/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 10245205856,
"node_id": "LA_kwDOAAzd1s8AAAACYqlvYA",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/Callbacks",
"name": "Callbacks",
"color": "7800F5",
"default": false,
"description": ""
}
] | open | false | [] | null | 4 | 2026-02-19T17:44:13 | 2026-03-06T07:35:53 | null | null | MEMBER | null | null | {
"total": 0,
"completed": 0,
"percent_completed": 0
} | {
"blocked_by": 0,
"total_blocked_by": 0,
"blocking": 0,
"total_blocking": 0
} | sub issue of https://github.com/scikit-learn/scikit-learn/issues/27676
Add a page or section, tbd, in the user guide to document
- where are the callbacks
- how to use them
- what are the different callbacks and their purpose
- more ?
ping @FrancoisPgm | null | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33330/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33330/timeline | null | null | null | null | null | false |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33329 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33329/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33329/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33329/events | https://github.com/scikit-learn/scikit-learn/issues/33329 | 3,964,178,622 | I_kwDOAAzd1s7sSJC- | 33,329 | [Callbacks] FEA Add a callback for metric monitoring | {
"login": "jeremiedbb",
"id": 34657725,
"node_id": "MDQ6VXNlcjM0NjU3NzI1",
"avatar_url": "https://avatars.githubusercontent.com/u/34657725?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jeremiedbb",
"html_url": "https://github.com/jeremiedbb",
"followers_url": "https://api.github.com/users/jeremiedbb/followers",
"following_url": "https://api.github.com/users/jeremiedbb/following{/other_user}",
"gists_url": "https://api.github.com/users/jeremiedbb/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jeremiedbb/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jeremiedbb/subscriptions",
"organizations_url": "https://api.github.com/users/jeremiedbb/orgs",
"repos_url": "https://api.github.com/users/jeremiedbb/repos",
"events_url": "https://api.github.com/users/jeremiedbb/events{/privacy}",
"received_events_url": "https://api.github.com/users/jeremiedbb/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 10245205856,
"node_id": "LA_kwDOAAzd1s8AAAACYqlvYA",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/Callbacks",
"name": "Callbacks",
"color": "7800F5",
"default": false,
"description": ""
}
] | open | false | [] | null | 1 | 2026-02-19T17:36:57 | 2026-02-19T17:54:56 | null | null | MEMBER | null | null | {
"total": 0,
"completed": 0,
"percent_completed": 0
} | {
"blocked_by": 0,
"total_blocked_by": 0,
"blocking": 0,
"total_blocking": 0
} | sub issue of https://github.com/scikit-learn/scikit-learn/issues/27676
The goal is to record values of a given metric during ``fit``.
It can be computed on the train set or on a validation set.
ping @FrancoisPgm | null | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33329/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33329/timeline | null | null | null | null | null | false |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33328 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33328/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33328/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33328/events | https://github.com/scikit-learn/scikit-learn/issues/33328 | 3,964,133,790 | I_kwDOAAzd1s7sR-Ge | 33,328 | [Callbacks] ENH Avoid repeating the no callback support warning | {
"login": "jeremiedbb",
"id": 34657725,
"node_id": "MDQ6VXNlcjM0NjU3NzI1",
"avatar_url": "https://avatars.githubusercontent.com/u/34657725?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jeremiedbb",
"html_url": "https://github.com/jeremiedbb",
"followers_url": "https://api.github.com/users/jeremiedbb/followers",
"following_url": "https://api.github.com/users/jeremiedbb/following{/other_user}",
"gists_url": "https://api.github.com/users/jeremiedbb/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jeremiedbb/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jeremiedbb/subscriptions",
"organizations_url": "https://api.github.com/users/jeremiedbb/orgs",
"repos_url": "https://api.github.com/users/jeremiedbb/repos",
"events_url": "https://api.github.com/users/jeremiedbb/events{/privacy}",
"received_events_url": "https://api.github.com/users/jeremiedbb/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 10245205856,
"node_id": "LA_kwDOAAzd1s8AAAACYqlvYA",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/Callbacks",
"name": "Callbacks",
"color": "7800F5",
"default": false,
"description": ""
}
] | open | false | [] | null | 1 | 2026-02-19T17:27:42 | 2026-02-19T17:59:04 | null | null | MEMBER | null | null | {
"total": 0,
"completed": 0,
"percent_completed": 0
} | {
"blocked_by": 0,
"total_blocked_by": 0,
"blocking": 0,
"total_blocking": 0
} | see https://github.com/scikit-learn/scikit-learn/pull/28760#discussion_r2787769530
related to https://github.com/scikit-learn/scikit-learn/issues/27676
We raise a warning for an estimator not implementing callback support within a meta-estimator that has callbacks registered.
Currently this warning is repeated each time the inner estimator is cloned and fitted which can mean a lot of times.
It would be nice to avoid this repetion for clones of a same estimator.
ping @FrancoisPgm | null | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33328/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33328/timeline | null | null | null | null | null | false |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33327 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33327/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33327/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33327/events | https://github.com/scikit-learn/scikit-learn/issues/33327 | 3,964,110,383 | I_kwDOAAzd1s7sR4Yv | 33,327 | [Callbacks] ENH Allow ProgressBar to run on python queue | {
"login": "jeremiedbb",
"id": 34657725,
"node_id": "MDQ6VXNlcjM0NjU3NzI1",
"avatar_url": "https://avatars.githubusercontent.com/u/34657725?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jeremiedbb",
"html_url": "https://github.com/jeremiedbb",
"followers_url": "https://api.github.com/users/jeremiedbb/followers",
"following_url": "https://api.github.com/users/jeremiedbb/following{/other_user}",
"gists_url": "https://api.github.com/users/jeremiedbb/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jeremiedbb/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jeremiedbb/subscriptions",
"organizations_url": "https://api.github.com/users/jeremiedbb/orgs",
"repos_url": "https://api.github.com/users/jeremiedbb/repos",
"events_url": "https://api.github.com/users/jeremiedbb/events{/privacy}",
"received_events_url": "https://api.github.com/users/jeremiedbb/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 10245205856,
"node_id": "LA_kwDOAAzd1s8AAAACYqlvYA",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/Callbacks",
"name": "Callbacks",
"color": "7800F5",
"default": false,
"description": ""
}
] | open | false | [] | null | 1 | 2026-02-19T17:23:04 | 2026-02-19T17:59:11 | null | null | MEMBER | null | null | {
"total": 0,
"completed": 0,
"percent_completed": 0
} | {
"blocked_by": 0,
"total_blocked_by": 0,
"blocking": 0,
"total_blocking": 0
} | see https://github.com/scikit-learn/scikit-learn/pull/28760#discussion_r2816515399
related to https://github.com/scikit-learn/scikit-learn/issues/27676
We'll probably need something similar for other callbacks as well as it will be useful in particular for pyodide.
So we can consider implementing it using a constructor param, or maybe through a global config since it would likely impact all callbacks at once.
ping @FrancoisPgm | null | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33327/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33327/timeline | null | null | null | null | null | false |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33326 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33326/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33326/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33326/events | https://github.com/scikit-learn/scikit-learn/issues/33326 | 3,964,088,119 | I_kwDOAAzd1s7sRy83 | 33,326 | [Callbacks] FEA A repr for CallbackContext | {
"login": "jeremiedbb",
"id": 34657725,
"node_id": "MDQ6VXNlcjM0NjU3NzI1",
"avatar_url": "https://avatars.githubusercontent.com/u/34657725?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jeremiedbb",
"html_url": "https://github.com/jeremiedbb",
"followers_url": "https://api.github.com/users/jeremiedbb/followers",
"following_url": "https://api.github.com/users/jeremiedbb/following{/other_user}",
"gists_url": "https://api.github.com/users/jeremiedbb/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jeremiedbb/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jeremiedbb/subscriptions",
"organizations_url": "https://api.github.com/users/jeremiedbb/orgs",
"repos_url": "https://api.github.com/users/jeremiedbb/repos",
"events_url": "https://api.github.com/users/jeremiedbb/events{/privacy}",
"received_events_url": "https://api.github.com/users/jeremiedbb/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 10245205856,
"node_id": "LA_kwDOAAzd1s8AAAACYqlvYA",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/Callbacks",
"name": "Callbacks",
"color": "7800F5",
"default": false,
"description": ""
}
] | open | false | [] | null | 1 | 2026-02-19T17:18:24 | 2026-02-19T17:59:17 | null | null | MEMBER | null | null | {
"total": 0,
"completed": 0,
"percent_completed": 0
} | {
"blocked_by": 0,
"total_blocked_by": 0,
"blocking": 0,
"total_blocking": 0
} | see https://github.com/scikit-learn/scikit-learn/pull/28760#discussion_r2827228802
related to https://github.com/scikit-learn/scikit-learn/issues/27676
It could be a simple representation just showing key information about the given context.
Or a complex representation including the whole tree below this context. (maybe not necessary, but useful for debugging).
@FrancoisPgm | null | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33326/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33326/timeline | null | null | null | null | null | false |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33325 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33325/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33325/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33325/events | https://github.com/scikit-learn/scikit-learn/issues/33325 | 3,964,072,158 | I_kwDOAAzd1s7sRvDe | 33,325 | [Callbacks] ENH Don't create a new manager for each callback | {
"login": "jeremiedbb",
"id": 34657725,
"node_id": "MDQ6VXNlcjM0NjU3NzI1",
"avatar_url": "https://avatars.githubusercontent.com/u/34657725?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jeremiedbb",
"html_url": "https://github.com/jeremiedbb",
"followers_url": "https://api.github.com/users/jeremiedbb/followers",
"following_url": "https://api.github.com/users/jeremiedbb/following{/other_user}",
"gists_url": "https://api.github.com/users/jeremiedbb/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jeremiedbb/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jeremiedbb/subscriptions",
"organizations_url": "https://api.github.com/users/jeremiedbb/orgs",
"repos_url": "https://api.github.com/users/jeremiedbb/repos",
"events_url": "https://api.github.com/users/jeremiedbb/events{/privacy}",
"received_events_url": "https://api.github.com/users/jeremiedbb/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 10245205856,
"node_id": "LA_kwDOAAzd1s8AAAACYqlvYA",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/Callbacks",
"name": "Callbacks",
"color": "7800F5",
"default": false,
"description": ""
}
] | open | false | [] | null | 1 | 2026-02-19T17:15:10 | 2026-02-19T17:59:24 | null | null | MEMBER | null | null | {
"total": 0,
"completed": 0,
"percent_completed": 0
} | {
"blocked_by": 0,
"total_blocked_by": 0,
"blocking": 0,
"total_blocking": 0
} | see https://github.com/scikit-learn/scikit-learn/pull/28760#discussion_r2822294959
related to https://github.com/scikit-learn/scikit-learn/issues/27676
Since callbacks are expected to be process aware and in particular aggregate information accross processes, they more or less all need to hold a data structure (list, dict, queue, ...) that is managed by a ``multiprocessing.Manager()``. Each manager creates a manager process, so we don't want to accumulate them.
There are callbacks that can create this data structure in ``on_fit_begin`` but others that need to create it at initialization. Taking into account the fact that it should work in custom user code, the most robust solution would be to have a sklearn global manager. It would be created lazily, i.e. the first time a callbacks requests a manager, and could then be accessed by all callbacks.
It implies that it would create a process that lives throughout the whole program session. Maybe that's okay.
To prevent that it accumulates data without control, we should make sure that when a shared data structure is no longer needed (i.e. when a callback gets garbage collected) it's automatically destroyed. If we find that the garbage collector is not able to do it properly on its own, we could rely on weakref finalizers.
ping @FrancoisPgm | null | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33325/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33325/timeline | null | null | null | null | null | false |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33324 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33324/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33324/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33324/events | https://github.com/scikit-learn/scikit-learn/issues/33324 | 3,964,010,668 | I_kwDOAAzd1s7sRgCs | 33,324 | [Callbacks] TST Add tests to check that all callback hooks are called in the expected order | {
"login": "jeremiedbb",
"id": 34657725,
"node_id": "MDQ6VXNlcjM0NjU3NzI1",
"avatar_url": "https://avatars.githubusercontent.com/u/34657725?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jeremiedbb",
"html_url": "https://github.com/jeremiedbb",
"followers_url": "https://api.github.com/users/jeremiedbb/followers",
"following_url": "https://api.github.com/users/jeremiedbb/following{/other_user}",
"gists_url": "https://api.github.com/users/jeremiedbb/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jeremiedbb/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jeremiedbb/subscriptions",
"organizations_url": "https://api.github.com/users/jeremiedbb/orgs",
"repos_url": "https://api.github.com/users/jeremiedbb/repos",
"events_url": "https://api.github.com/users/jeremiedbb/events{/privacy}",
"received_events_url": "https://api.github.com/users/jeremiedbb/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 10245205856,
"node_id": "LA_kwDOAAzd1s8AAAACYqlvYA",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/Callbacks",
"name": "Callbacks",
"color": "7800F5",
"default": false,
"description": ""
}
] | open | false | [] | null | 2 | 2026-02-19T17:01:50 | 2026-02-20T08:15:42 | null | null | MEMBER | null | null | {
"total": 0,
"completed": 0,
"percent_completed": 0
} | {
"blocked_by": 0,
"total_blocked_by": 0,
"blocking": 0,
"total_blocking": 0
} | see https://github.com/scikit-learn/scikit-learn/pull/28760#discussion_r2817829681
related to https://github.com/scikit-learn/scikit-learn/issues/27676
Let's add tests to check the sequence of calls of callback hooks and make sure it follows the expected order (i.e. the order in which we traverse the callback context tree).
ping @FrancoisPgm | null | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33324/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33324/timeline | null | null | null | null | null | false |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33323 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33323/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33323/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33323/events | https://github.com/scikit-learn/scikit-learn/issues/33323 | 3,963,985,859 | I_kwDOAAzd1s7sRZ_D | 33,323 | [Callbacks] FEA Define behavior for callbacks registered on estimators used in third party functions | {
"login": "jeremiedbb",
"id": 34657725,
"node_id": "MDQ6VXNlcjM0NjU3NzI1",
"avatar_url": "https://avatars.githubusercontent.com/u/34657725?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jeremiedbb",
"html_url": "https://github.com/jeremiedbb",
"followers_url": "https://api.github.com/users/jeremiedbb/followers",
"following_url": "https://api.github.com/users/jeremiedbb/following{/other_user}",
"gists_url": "https://api.github.com/users/jeremiedbb/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jeremiedbb/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jeremiedbb/subscriptions",
"organizations_url": "https://api.github.com/users/jeremiedbb/orgs",
"repos_url": "https://api.github.com/users/jeremiedbb/repos",
"events_url": "https://api.github.com/users/jeremiedbb/events{/privacy}",
"received_events_url": "https://api.github.com/users/jeremiedbb/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 10245205856,
"node_id": "LA_kwDOAAzd1s8AAAACYqlvYA",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/Callbacks",
"name": "Callbacks",
"color": "7800F5",
"default": false,
"description": ""
}
] | open | false | [] | null | 2 | 2026-02-19T16:56:49 | 2026-02-22T23:24:05 | null | null | MEMBER | null | null | {
"total": 0,
"completed": 0,
"percent_completed": 0
} | {
"blocked_by": 0,
"total_blocked_by": 0,
"blocking": 0,
"total_blocking": 0
} | From https://github.com/scikit-learn/scikit-learn/pull/28760#discussion_r2818025923 and https://github.com/scikit-learn/scikit-learn/pull/28760#discussion_r2818073843.
related to https://github.com/scikit-learn/scikit-learn/issues/27676
The current implementation requires that estimators used in meta-estimators can only have callbacks if the meta-estimator supports callbacks.
It may be a too strong requirement, or at least we need to define it properly, for user code.
A typical problematic use case is when several clones of an estimator are fitted in parallel in a user defined function (like a custom cross validation).
It implies in particular that we settle on the expected behavior of ``clone`` w.r.t callbacks.
An "easy" first step would be that clone discards the callbacks. Afterall callbacks are not constructor parameters strictly. With that callbacks would just be disabled for estimators used in non-callback-aware code. (it would be silent though)
Then we can investigate whether a second step where we don't impose that estimators within a meta estimator (or function that behaves like a meta-estimator) have their ``CallbackContext`` tree merged with the one of the parent estimator.
In such situations, the callbacks may not provide their full capabilities. For instance progress bars could not be displayed in a single ``rich`` live object with bars inserted dynamically and intuitive layout, but would pop one below the other.
ping @FrancoisPgm | null | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33323/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33323/timeline | null | null | null | null | null | false |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33322 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33322/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33322/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33322/events | https://github.com/scikit-learn/scikit-learn/pull/33322 | 3,963,850,580 | PR_kwDOAAzd1s7E7M89 | 33,322 | FEA Callbacks API | {
"login": "jeremiedbb",
"id": 34657725,
"node_id": "MDQ6VXNlcjM0NjU3NzI1",
"avatar_url": "https://avatars.githubusercontent.com/u/34657725?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jeremiedbb",
"html_url": "https://github.com/jeremiedbb",
"followers_url": "https://api.github.com/users/jeremiedbb/followers",
"following_url": "https://api.github.com/users/jeremiedbb/following{/other_user}",
"gists_url": "https://api.github.com/users/jeremiedbb/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jeremiedbb/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jeremiedbb/subscriptions",
"organizations_url": "https://api.github.com/users/jeremiedbb/orgs",
"repos_url": "https://api.github.com/users/jeremiedbb/repos",
"events_url": "https://api.github.com/users/jeremiedbb/events{/privacy}",
"received_events_url": "https://api.github.com/users/jeremiedbb/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 1815453311,
"node_id": "MDU6TGFiZWwxODE1NDUzMzEx",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/module:utils",
"name": "module:utils",
"color": "151e91",
"default": false,
"description": ""
},
{
"id": 10245205856,
"node_id": "LA_kwDOAAzd1s8AAA... | open | false | [] | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/milestones/69",
"html_url": "https://github.com/scikit-learn/scikit-learn/milestone/69",
"labels_url": "https://api.github.com/repos/scikit-learn/scikit-learn/milestones/69/labels",
"id": 14107987,
"node_id": "MI_kwDOAAzd1s4A10VT",
"number": 69,
"title": "1.9",
"description": "Planning for the release of 1.9.0: - April 31, 2026: Release candidate 1.9.0.dev0 - May, 18 2026: Release 1.9.0",
"creator": {
"login": "lesteve",
"id": 1680079,
"node_id": "MDQ6VXNlcjE2ODAwNzk=",
"avatar_url": "https://avatars.githubusercontent.com/u/1680079?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/lesteve",
"html_url": "https://github.com/lesteve",
"followers_url": "https://api.github.com/users/lesteve/followers",
"following_url": "https://api.github.com/users/lesteve/following{/other_user}",
"gists_url": "https://api.github.com/users/lesteve/gists{/gist_id}",
"starred_url": "https://api.github.com/users/lesteve/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lesteve/subscriptions",
"organizations_url": "https://api.github.com/users/lesteve/orgs",
"repos_url": "https://api.github.com/users/lesteve/repos",
"events_url": "https://api.github.com/users/lesteve/events{/privacy}",
"received_events_url": "https://api.github.com/users/lesteve/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
},
"open_issues": 12,
"closed_issues": 6,
"state": "open",
"created_at": "2025-11-12T10:28:02",
"updated_at": "2026-02-27T04:58:45",
"due_on": "2026-05-18T00:00:00",
"closed_at": null
} | 0 | 2026-02-19T16:26:47 | 2026-03-06T09:25:08 | null | null | MEMBER | null | null | null | null | This PR comes from the ``callbacks`` feature branch where the developement of the callback API continues.
It implements the SLEP 023: https://github.com/scikit-learn/enhancement_proposals/pull/90. **Please don't review this PR directly for now**, but comment in the side PRs and issues instead. For now the main purpose of this PR is to have a clean diff agains ``main``.
Closes #7574
Closes #10973 | null | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33322/reactions",
"total_count": 2,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 2,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33322/timeline | null | null | null | true | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/pulls/33322",
"html_url": "https://github.com/scikit-learn/scikit-learn/pull/33322",
"diff_url": "https://github.com/scikit-learn/scikit-learn/pull/33322.diff",
"patch_url": "https://github.com/scikit-learn/scikit-learn/pull/33322.patch",
"merged_at": null
} | true |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33321 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33321/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33321/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33321/events | https://github.com/scikit-learn/scikit-learn/pull/33321 | 3,962,161,056 | PR_kwDOAAzd1s7E1lQ9 | 33,321 | Add transformers names to FeatureUnion's HTML Display | {
"login": "DeaMariaLeon",
"id": 11835246,
"node_id": "MDQ6VXNlcjExODM1MjQ2",
"avatar_url": "https://avatars.githubusercontent.com/u/11835246?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/DeaMariaLeon",
"html_url": "https://github.com/DeaMariaLeon",
"followers_url": "https://api.github.com/users/DeaMariaLeon/followers",
"following_url": "https://api.github.com/users/DeaMariaLeon/following{/other_user}",
"gists_url": "https://api.github.com/users/DeaMariaLeon/gists{/gist_id}",
"starred_url": "https://api.github.com/users/DeaMariaLeon/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/DeaMariaLeon/subscriptions",
"organizations_url": "https://api.github.com/users/DeaMariaLeon/orgs",
"repos_url": "https://api.github.com/users/DeaMariaLeon/repos",
"events_url": "https://api.github.com/users/DeaMariaLeon/events{/privacy}",
"received_events_url": "https://api.github.com/users/DeaMariaLeon/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 1815450942,
"node_id": "MDU6TGFiZWwxODE1NDUwOTQy",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/module:pipeline",
"name": "module:pipeline",
"color": "151e91",
"default": false,
"description": ""
}
] | open | false | [] | null | 3 | 2026-02-19T10:27:38 | 2026-02-24T19:52:51 | null | null | MEMBER | null | null | null | null | <!--
π Thanks for contributing a pull request!
π Please ensure you have taken a look at the contribution guidelines:
https://github.com/scikit-learn/scikit-learn/blob/main/CONTRIBUTING.md
β
In particular following the pull request checklist will increase the likelihood
of having maintainers review your PR:
https://scikit-learn.org/dev/developers/contributing.html#pull-request-checklist
π If your PR is likely to affect users, you will need to add a changelog entry
describing your PR changes, see:
https://github.com/scikit-learn/scikit-learn/blob/main/doc/whats_new/upcoming_changes/README.md
-->
#### Reference Issues/PRs
<!--
Example: Fixes #1234. See also #3456.
Please use keywords (e.g., Fixes) to create link to the issues or pull requests
you resolved, so that they will automatically be closed when your pull request
is merged. See https://github.com/blog/1506-closing-issues-via-pull-requests
-->
Fixes https://github.com/scikit-learn/scikit-learn/issues/33295
Note: Trying to fix only the last point here https://github.com/scikit-learn/scikit-learn/issues/33295#issuecomment-3921080488. The first 2 points seem not to exist anymore (maybe `vscode` + `git` branch switching made me see this.. or it was fixed).
See also https://github.com/scikit-learn/scikit-learn/pull/31937#issuecomment-3908561441
#### What does this implement/fix? Explain your changes.
`FeatureUnion`'s display currently only shows the name of the transformers but not their type (see `name1` and `name2`):
<img width="868" height="165" alt="FeatureUnionColTransformer_main" src="https://github.com/user-attachments/assets/30744a2e-04a3-4ea4-8930-100e27e576f6" />
With this PR, the type of transformer (`ColumnTransformer` in this case) is added:
<img width="855" height="160" alt="FeatureUnionColTransformer_remainderbranch" src="https://github.com/user-attachments/assets/7fa392ae-89b9-4394-8ada-19c6487b641f" />
Please note how this would look with other transfomers:
<img width="348" height="115" alt="FeatureUnionPCATruncatedSVD_remainderbranch" src="https://github.com/user-attachments/assets/27117522-f782-4dcb-b3a5-0c334f3e2370" />
Using the same code as this https://github.com/scikit-learn/scikit-learn/issues/33295#issuecomment-3921537610
<img width="1772" height="400" alt="FeatureUnionColTransformer_plot" src="https://github.com/user-attachments/assets/01d5fc75-0d5c-43e4-9422-d998114d7050" />
#### AI usage disclosure
<!--
If AI tools were involved in creating this PR, please check all boxes that apply
below and make sure that you adhere to our Automated Contributions Policy:
https://scikit-learn.org/dev/developers/contributing.html#automated-contributions-policy
-->
I used AI assistance for:
- [ ] Code generation (e.g., when writing an implementation or fixing a bug)
- [ ] Test/benchmark generation
- [ ] Documentation (including examples)
- [ ] Research and understanding
#### Any other comments?
<!--
Thank you for your patience. Changes to scikit-learn require careful
attention, but with limited maintainer time, not every contribution can be reviewed
quickly.
For more information and tips on improving your pull request, see:
https://scikit-learn.org/dev/faq.html#why-is-my-pull-request-not-getting-any-attention.
Thanks for contributing!
-->
| null | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33321/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33321/timeline | null | null | null | false | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/pulls/33321",
"html_url": "https://github.com/scikit-learn/scikit-learn/pull/33321",
"diff_url": "https://github.com/scikit-learn/scikit-learn/pull/33321.diff",
"patch_url": "https://github.com/scikit-learn/scikit-learn/pull/33321.patch",
"merged_at": null
} | true |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33320 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33320/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33320/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33320/events | https://github.com/scikit-learn/scikit-learn/pull/33320 | 3,962,018,832 | PR_kwDOAAzd1s7E1JVT | 33,320 | TST Xfail test for Python 3.13 free-threaded that fails intermittently in the Wheels CI | {
"login": "lesteve",
"id": 1680079,
"node_id": "MDQ6VXNlcjE2ODAwNzk=",
"avatar_url": "https://avatars.githubusercontent.com/u/1680079?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/lesteve",
"html_url": "https://github.com/lesteve",
"followers_url": "https://api.github.com/users/lesteve/followers",
"following_url": "https://api.github.com/users/lesteve/following{/other_user}",
"gists_url": "https://api.github.com/users/lesteve/gists{/gist_id}",
"starred_url": "https://api.github.com/users/lesteve/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lesteve/subscriptions",
"organizations_url": "https://api.github.com/users/lesteve/orgs",
"repos_url": "https://api.github.com/users/lesteve/repos",
"events_url": "https://api.github.com/users/lesteve/events{/privacy}",
"received_events_url": "https://api.github.com/users/lesteve/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 55523804,
"node_id": "MDU6TGFiZWw1NTUyMzgwNA==",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/Build%20/%20CI",
"name": "Build / CI",
"color": "eb6420",
"default": false,
"description": null
},
{
"id": 1815440243,
"node_id": "MDU6TGFiZWwxODE1ND... | closed | false | [] | null | 2 | 2026-02-19T09:59:53 | 2026-03-05T12:50:21 | 2026-02-20T13:57:28 | null | MEMBER | null | null | null | null | Close #32631, seen occasionally in the wheels CI tracking issue https://github.com/scikit-learn/scikit-learn/issues/32393.
There is not much point trying to investigate this more, since this only happens for Python 3.13 free-threaded not 3.14. | {
"login": "lesteve",
"id": 1680079,
"node_id": "MDQ6VXNlcjE2ODAwNzk=",
"avatar_url": "https://avatars.githubusercontent.com/u/1680079?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/lesteve",
"html_url": "https://github.com/lesteve",
"followers_url": "https://api.github.com/users/lesteve/followers",
"following_url": "https://api.github.com/users/lesteve/following{/other_user}",
"gists_url": "https://api.github.com/users/lesteve/gists{/gist_id}",
"starred_url": "https://api.github.com/users/lesteve/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lesteve/subscriptions",
"organizations_url": "https://api.github.com/users/lesteve/orgs",
"repos_url": "https://api.github.com/users/lesteve/repos",
"events_url": "https://api.github.com/users/lesteve/events{/privacy}",
"received_events_url": "https://api.github.com/users/lesteve/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33320/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33320/timeline | null | null | null | false | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/pulls/33320",
"html_url": "https://github.com/scikit-learn/scikit-learn/pull/33320",
"diff_url": "https://github.com/scikit-learn/scikit-learn/pull/33320.diff",
"patch_url": "https://github.com/scikit-learn/scikit-learn/pull/33320.patch",
"merged_at": "2026-02-20T13:57:28"
} | true |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33319 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33319/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33319/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33319/events | https://github.com/scikit-learn/scikit-learn/pull/33319 | 3,960,341,599 | PR_kwDOAAzd1s7EvyUX | 33,319 | ENH: More efficient calculation of sum of squared elements for univariate_selection | {
"login": "ThibaultDECO",
"id": 80053070,
"node_id": "MDQ6VXNlcjgwMDUzMDcw",
"avatar_url": "https://avatars.githubusercontent.com/u/80053070?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ThibaultDECO",
"html_url": "https://github.com/ThibaultDECO",
"followers_url": "https://api.github.com/users/ThibaultDECO/followers",
"following_url": "https://api.github.com/users/ThibaultDECO/following{/other_user}",
"gists_url": "https://api.github.com/users/ThibaultDECO/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ThibaultDECO/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ThibaultDECO/subscriptions",
"organizations_url": "https://api.github.com/users/ThibaultDECO/orgs",
"repos_url": "https://api.github.com/users/ThibaultDECO/repos",
"events_url": "https://api.github.com/users/ThibaultDECO/events{/privacy}",
"received_events_url": "https://api.github.com/users/ThibaultDECO/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 1815442108,
"node_id": "MDU6TGFiZWwxODE1NDQyMTA4",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/module:feature_selection",
"name": "module:feature_selection",
"color": "151e91",
"default": false,
"description": ""
},
{
"id": 1815453311,
"node_... | closed | false | [] | null | 4 | 2026-02-19T00:10:27 | 2026-03-06T03:04:46 | 2026-03-06T03:04:45 | null | CONTRIBUTOR | null | null | null | null | #### What does this implement/fix? Explain your changes.
In univariate selection, this new version does not require a copy of X, making it more efficient memory-wise.
The previous version required to calculate `X ** 2` (see `safe_sqr` in `sklearn.utils.extmath`), which made a copy of X | {
"login": "github-actions[bot]",
"id": 41898282,
"node_id": "MDM6Qm90NDE4OTgyODI=",
"avatar_url": "https://avatars.githubusercontent.com/in/15368?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/github-actions%5Bbot%5D",
"html_url": "https://github.com/apps/github-actions",
"followers_url": "https://api.github.com/users/github-actions%5Bbot%5D/followers",
"following_url": "https://api.github.com/users/github-actions%5Bbot%5D/following{/other_user}",
"gists_url": "https://api.github.com/users/github-actions%5Bbot%5D/gists{/gist_id}",
"starred_url": "https://api.github.com/users/github-actions%5Bbot%5D/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/github-actions%5Bbot%5D/subscriptions",
"organizations_url": "https://api.github.com/users/github-actions%5Bbot%5D/orgs",
"repos_url": "https://api.github.com/users/github-actions%5Bbot%5D/repos",
"events_url": "https://api.github.com/users/github-actions%5Bbot%5D/events{/privacy}",
"received_events_url": "https://api.github.com/users/github-actions%5Bbot%5D/received_events",
"type": "Bot",
"user_view_type": "public",
"site_admin": false
} | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33319/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33319/timeline | null | null | null | false | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/pulls/33319",
"html_url": "https://github.com/scikit-learn/scikit-learn/pull/33319",
"diff_url": "https://github.com/scikit-learn/scikit-learn/pull/33319.diff",
"patch_url": "https://github.com/scikit-learn/scikit-learn/pull/33319.patch",
"merged_at": null
} | true |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33318 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33318/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33318/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33318/events | https://github.com/scikit-learn/scikit-learn/pull/33318 | 3,959,550,031 | PR_kwDOAAzd1s7EtN_8 | 33,318 | Fix MDS returning wrong number of components when using ClassicalMDS initialization | {
"login": "bdpedigo",
"id": 25714207,
"node_id": "MDQ6VXNlcjI1NzE0MjA3",
"avatar_url": "https://avatars.githubusercontent.com/u/25714207?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/bdpedigo",
"html_url": "https://github.com/bdpedigo",
"followers_url": "https://api.github.com/users/bdpedigo/followers",
"following_url": "https://api.github.com/users/bdpedigo/following{/other_user}",
"gists_url": "https://api.github.com/users/bdpedigo/gists{/gist_id}",
"starred_url": "https://api.github.com/users/bdpedigo/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bdpedigo/subscriptions",
"organizations_url": "https://api.github.com/users/bdpedigo/orgs",
"repos_url": "https://api.github.com/users/bdpedigo/repos",
"events_url": "https://api.github.com/users/bdpedigo/events{/privacy}",
"received_events_url": "https://api.github.com/users/bdpedigo/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 1815444974,
"node_id": "MDU6TGFiZWwxODE1NDQ0OTc0",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/module:manifold",
"name": "module:manifold",
"color": "151e91",
"default": false,
"description": ""
},
{
"id": 4691539216,
"node_id": "LA_kwDOAAzd1... | closed | false | [] | null | 3 | 2026-02-18T20:00:34 | 2026-02-19T17:10:29 | 2026-02-19T09:44:35 | null | CONTRIBUTOR | null | null | null | null | <!--
π Thanks for contributing a pull request!
π Please ensure you have taken a look at the contribution guidelines:
https://github.com/scikit-learn/scikit-learn/blob/main/CONTRIBUTING.md
β
In particular following the pull request checklist will increase the likelihood
of having maintainers review your PR:
https://scikit-learn.org/dev/developers/contributing.html#pull-request-checklist
π If your PR is likely to affect users, you will need to add a changelog entry
describing your PR changes, see:
https://github.com/scikit-learn/scikit-learn/blob/main/doc/whats_new/upcoming_changes/README.md
-->
#### Reference Issues/PRs
Fixes #33305
#### What does this implement/fix? Explain your changes.
Ensures MDS outputs specified number of components when using ClassicalMDS initialization
#### AI usage disclosure
I used AI assistance for:
- [ ] Code generation (e.g., when writing an implementation or fixing a bug)
- [ ] Test/benchmark generation
- [ ] Documentation (including examples)
- [ ] Research and understanding | {
"login": "lesteve",
"id": 1680079,
"node_id": "MDQ6VXNlcjE2ODAwNzk=",
"avatar_url": "https://avatars.githubusercontent.com/u/1680079?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/lesteve",
"html_url": "https://github.com/lesteve",
"followers_url": "https://api.github.com/users/lesteve/followers",
"following_url": "https://api.github.com/users/lesteve/following{/other_user}",
"gists_url": "https://api.github.com/users/lesteve/gists{/gist_id}",
"starred_url": "https://api.github.com/users/lesteve/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lesteve/subscriptions",
"organizations_url": "https://api.github.com/users/lesteve/orgs",
"repos_url": "https://api.github.com/users/lesteve/repos",
"events_url": "https://api.github.com/users/lesteve/events{/privacy}",
"received_events_url": "https://api.github.com/users/lesteve/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33318/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33318/timeline | null | null | null | false | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/pulls/33318",
"html_url": "https://github.com/scikit-learn/scikit-learn/pull/33318",
"diff_url": "https://github.com/scikit-learn/scikit-learn/pull/33318.diff",
"patch_url": "https://github.com/scikit-learn/scikit-learn/pull/33318.patch",
"merged_at": "2026-02-19T09:44:35"
} | true |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33317 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33317/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33317/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33317/events | https://github.com/scikit-learn/scikit-learn/pull/33317 | 3,959,544,103 | PR_kwDOAAzd1s7EtMvS | 33,317 | ENH: add cardinality to make_column_selector | {
"login": "nandanadileep",
"id": 110280757,
"node_id": "U_kgDOBpLANQ",
"avatar_url": "https://avatars.githubusercontent.com/u/110280757?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/nandanadileep",
"html_url": "https://github.com/nandanadileep",
"followers_url": "https://api.github.com/users/nandanadileep/followers",
"following_url": "https://api.github.com/users/nandanadileep/following{/other_user}",
"gists_url": "https://api.github.com/users/nandanadileep/gists{/gist_id}",
"starred_url": "https://api.github.com/users/nandanadileep/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nandanadileep/subscriptions",
"organizations_url": "https://api.github.com/users/nandanadileep/orgs",
"repos_url": "https://api.github.com/users/nandanadileep/repos",
"events_url": "https://api.github.com/users/nandanadileep/events{/privacy}",
"received_events_url": "https://api.github.com/users/nandanadileep/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 1815436184,
"node_id": "MDU6TGFiZWwxODE1NDM2MTg0",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/module:compose",
"name": "module:compose",
"color": "151e91",
"default": false,
"description": ""
},
{
"id": 2399338178,
"node_id": "MDU6TGFiZWwyMz... | closed | false | [] | null | 1 | 2026-02-18T19:58:53 | 2026-02-19T05:32:37 | 2026-02-19T05:32:30 | null | NONE | null | null | null | null | #### Reference Issues/PRs
Fixes #15873.
#### What does this implement/fix? Explain your changes.
Adds cardinality-based selection to `make_column_selector` via the new
`cardinality` and `cardinality_threshold` parameters, with tests and a
changelog fragment.
#### AI usage disclosure
I used AI assistance for:
- [x] Code generation (e.g., when writing an implementation or fixing a bug)
- [x] Test/benchmark generation
- [x] Documentation (including examples)
- [x] Research and understanding
#### Any other comments?
Tests not run (scikit-learn not built: `sklearn.__check_build._check_build`).
| {
"login": "virchan",
"id": 25701849,
"node_id": "MDQ6VXNlcjI1NzAxODQ5",
"avatar_url": "https://avatars.githubusercontent.com/u/25701849?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/virchan",
"html_url": "https://github.com/virchan",
"followers_url": "https://api.github.com/users/virchan/followers",
"following_url": "https://api.github.com/users/virchan/following{/other_user}",
"gists_url": "https://api.github.com/users/virchan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/virchan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/virchan/subscriptions",
"organizations_url": "https://api.github.com/users/virchan/orgs",
"repos_url": "https://api.github.com/users/virchan/repos",
"events_url": "https://api.github.com/users/virchan/events{/privacy}",
"received_events_url": "https://api.github.com/users/virchan/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33317/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33317/timeline | null | null | null | false | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/pulls/33317",
"html_url": "https://github.com/scikit-learn/scikit-learn/pull/33317",
"diff_url": "https://github.com/scikit-learn/scikit-learn/pull/33317.diff",
"patch_url": "https://github.com/scikit-learn/scikit-learn/pull/33317.patch",
"merged_at": null
} | true |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33316 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33316/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33316/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33316/events | https://github.com/scikit-learn/scikit-learn/pull/33316 | 3,959,422,457 | PR_kwDOAAzd1s7EszAw | 33,316 | DOC: add preprocessing feature name example | {
"login": "nandanadileep",
"id": 110280757,
"node_id": "U_kgDOBpLANQ",
"avatar_url": "https://avatars.githubusercontent.com/u/110280757?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/nandanadileep",
"html_url": "https://github.com/nandanadileep",
"followers_url": "https://api.github.com/users/nandanadileep/followers",
"following_url": "https://api.github.com/users/nandanadileep/following{/other_user}",
"gists_url": "https://api.github.com/users/nandanadileep/gists{/gist_id}",
"starred_url": "https://api.github.com/users/nandanadileep/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nandanadileep/subscriptions",
"organizations_url": "https://api.github.com/users/nandanadileep/orgs",
"repos_url": "https://api.github.com/users/nandanadileep/repos",
"events_url": "https://api.github.com/users/nandanadileep/events{/privacy}",
"received_events_url": "https://api.github.com/users/nandanadileep/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 12995770,
"node_id": "MDU6TGFiZWwxMjk5NTc3MA==",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/Documentation",
"name": "Documentation",
"color": "0b02e1",
"default": false,
"description": null
},
{
"id": 2399338178,
"node_id": "MDU6TGFiZWwyMzk5... | closed | false | [] | null | 1 | 2026-02-18T19:26:32 | 2026-02-19T05:32:15 | 2026-02-19T05:32:07 | null | NONE | null | null | null | null | #### Reference Issues/PRs
Fixes #33012.
#### What does this implement/fix? Explain your changes.
Adds a small preprocessing example showing `get_feature_names_out` and
`set_output` preserving feature names. Adds a changelog fragment.
#### AI usage disclosure
I used AI assistance for:
- [ ] Code generation (e.g., when writing an implementation or fixing a bug)
- [ ] Test/benchmark generation
- [x] Documentation (including examples)
- [x] Research and understanding
#### Any other comments?
Docs-only change; tests not run.
| {
"login": "virchan",
"id": 25701849,
"node_id": "MDQ6VXNlcjI1NzAxODQ5",
"avatar_url": "https://avatars.githubusercontent.com/u/25701849?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/virchan",
"html_url": "https://github.com/virchan",
"followers_url": "https://api.github.com/users/virchan/followers",
"following_url": "https://api.github.com/users/virchan/following{/other_user}",
"gists_url": "https://api.github.com/users/virchan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/virchan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/virchan/subscriptions",
"organizations_url": "https://api.github.com/users/virchan/orgs",
"repos_url": "https://api.github.com/users/virchan/repos",
"events_url": "https://api.github.com/users/virchan/events{/privacy}",
"received_events_url": "https://api.github.com/users/virchan/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33316/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33316/timeline | null | null | null | false | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/pulls/33316",
"html_url": "https://github.com/scikit-learn/scikit-learn/pull/33316",
"diff_url": "https://github.com/scikit-learn/scikit-learn/pull/33316.diff",
"patch_url": "https://github.com/scikit-learn/scikit-learn/pull/33316.patch",
"merged_at": null
} | true |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33315 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33315/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33315/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33315/events | https://github.com/scikit-learn/scikit-learn/pull/33315 | 3,959,421,469 | PR_kwDOAAzd1s7Esyzi | 33,315 | DOC: clarify partial_fit glossary entry | {
"login": "nandanadileep",
"id": 110280757,
"node_id": "U_kgDOBpLANQ",
"avatar_url": "https://avatars.githubusercontent.com/u/110280757?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/nandanadileep",
"html_url": "https://github.com/nandanadileep",
"followers_url": "https://api.github.com/users/nandanadileep/followers",
"following_url": "https://api.github.com/users/nandanadileep/following{/other_user}",
"gists_url": "https://api.github.com/users/nandanadileep/gists{/gist_id}",
"starred_url": "https://api.github.com/users/nandanadileep/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nandanadileep/subscriptions",
"organizations_url": "https://api.github.com/users/nandanadileep/orgs",
"repos_url": "https://api.github.com/users/nandanadileep/repos",
"events_url": "https://api.github.com/users/nandanadileep/events{/privacy}",
"received_events_url": "https://api.github.com/users/nandanadileep/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 12995770,
"node_id": "MDU6TGFiZWwxMjk5NTc3MA==",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/Documentation",
"name": "Documentation",
"color": "0b02e1",
"default": false,
"description": null
},
{
"id": 2399338178,
"node_id": "MDU6TGFiZWwyMzk5... | closed | false | [] | null | 1 | 2026-02-18T19:26:15 | 2026-02-19T05:31:59 | 2026-02-19T05:31:51 | null | NONE | null | null | null | null | #### Reference Issues/PRs
Fixes #32821.
#### What does this implement/fix? Explain your changes.
Clarifies that `partial_fit` can be called without a prior `fit` and notes
the `classes` requirement for classifiers on the first call. Adds a changelog
fragment.
#### AI usage disclosure
I used AI assistance for:
- [ ] Code generation (e.g., when writing an implementation or fixing a bug)
- [ ] Test/benchmark generation
- [x] Documentation (including examples)
- [x] Research and understanding
#### Any other comments?
Docs-only change; tests not run.
| {
"login": "virchan",
"id": 25701849,
"node_id": "MDQ6VXNlcjI1NzAxODQ5",
"avatar_url": "https://avatars.githubusercontent.com/u/25701849?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/virchan",
"html_url": "https://github.com/virchan",
"followers_url": "https://api.github.com/users/virchan/followers",
"following_url": "https://api.github.com/users/virchan/following{/other_user}",
"gists_url": "https://api.github.com/users/virchan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/virchan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/virchan/subscriptions",
"organizations_url": "https://api.github.com/users/virchan/orgs",
"repos_url": "https://api.github.com/users/virchan/repos",
"events_url": "https://api.github.com/users/virchan/events{/privacy}",
"received_events_url": "https://api.github.com/users/virchan/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33315/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33315/timeline | null | null | null | false | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/pulls/33315",
"html_url": "https://github.com/scikit-learn/scikit-learn/pull/33315",
"diff_url": "https://github.com/scikit-learn/scikit-learn/pull/33315.diff",
"patch_url": "https://github.com/scikit-learn/scikit-learn/pull/33315.patch",
"merged_at": null
} | true |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33314 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33314/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33314/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33314/events | https://github.com/scikit-learn/scikit-learn/pull/33314 | 3,959,420,408 | PR_kwDOAAzd1s7EsylN | 33,314 | DOC: expand set_output guidance | {
"login": "nandanadileep",
"id": 110280757,
"node_id": "U_kgDOBpLANQ",
"avatar_url": "https://avatars.githubusercontent.com/u/110280757?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/nandanadileep",
"html_url": "https://github.com/nandanadileep",
"followers_url": "https://api.github.com/users/nandanadileep/followers",
"following_url": "https://api.github.com/users/nandanadileep/following{/other_user}",
"gists_url": "https://api.github.com/users/nandanadileep/gists{/gist_id}",
"starred_url": "https://api.github.com/users/nandanadileep/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nandanadileep/subscriptions",
"organizations_url": "https://api.github.com/users/nandanadileep/orgs",
"repos_url": "https://api.github.com/users/nandanadileep/repos",
"events_url": "https://api.github.com/users/nandanadileep/events{/privacy}",
"received_events_url": "https://api.github.com/users/nandanadileep/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 12995770,
"node_id": "MDU6TGFiZWwxMjk5NTc3MA==",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/Documentation",
"name": "Documentation",
"color": "0b02e1",
"default": false,
"description": null
},
{
"id": 2399338178,
"node_id": "MDU6TGFiZWwyMzk5... | closed | false | [] | null | 1 | 2026-02-18T19:25:57 | 2026-02-19T05:31:16 | 2026-02-19T05:31:08 | null | NONE | null | null | null | null | #### Reference Issues/PRs
Fixes #33075.
#### What does this implement/fix? Explain your changes.
Adds a short `set_output` section with an example in the pipelines/composition
docs. Adds a changelog fragment.
#### AI usage disclosure
I used AI assistance for:
- [ ] Code generation (e.g., when writing an implementation or fixing a bug)
- [ ] Test/benchmark generation
- [x] Documentation (including examples)
- [x] Research and understanding
#### Any other comments?
Docs-only change; tests not run.
| {
"login": "virchan",
"id": 25701849,
"node_id": "MDQ6VXNlcjI1NzAxODQ5",
"avatar_url": "https://avatars.githubusercontent.com/u/25701849?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/virchan",
"html_url": "https://github.com/virchan",
"followers_url": "https://api.github.com/users/virchan/followers",
"following_url": "https://api.github.com/users/virchan/following{/other_user}",
"gists_url": "https://api.github.com/users/virchan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/virchan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/virchan/subscriptions",
"organizations_url": "https://api.github.com/users/virchan/orgs",
"repos_url": "https://api.github.com/users/virchan/repos",
"events_url": "https://api.github.com/users/virchan/events{/privacy}",
"received_events_url": "https://api.github.com/users/virchan/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33314/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33314/timeline | null | null | null | false | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/pulls/33314",
"html_url": "https://github.com/scikit-learn/scikit-learn/pull/33314",
"diff_url": "https://github.com/scikit-learn/scikit-learn/pull/33314.diff",
"patch_url": "https://github.com/scikit-learn/scikit-learn/pull/33314.patch",
"merged_at": null
} | true |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33313 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33313/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33313/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33313/events | https://github.com/scikit-learn/scikit-learn/pull/33313 | 3,959,419,576 | PR_kwDOAAzd1s7EsyZh | 33,313 | DOC: add beginner resources to getting started | {
"login": "nandanadileep",
"id": 110280757,
"node_id": "U_kgDOBpLANQ",
"avatar_url": "https://avatars.githubusercontent.com/u/110280757?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/nandanadileep",
"html_url": "https://github.com/nandanadileep",
"followers_url": "https://api.github.com/users/nandanadileep/followers",
"following_url": "https://api.github.com/users/nandanadileep/following{/other_user}",
"gists_url": "https://api.github.com/users/nandanadileep/gists{/gist_id}",
"starred_url": "https://api.github.com/users/nandanadileep/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nandanadileep/subscriptions",
"organizations_url": "https://api.github.com/users/nandanadileep/orgs",
"repos_url": "https://api.github.com/users/nandanadileep/repos",
"events_url": "https://api.github.com/users/nandanadileep/events{/privacy}",
"received_events_url": "https://api.github.com/users/nandanadileep/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 12995770,
"node_id": "MDU6TGFiZWwxMjk5NTc3MA==",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/Documentation",
"name": "Documentation",
"color": "0b02e1",
"default": false,
"description": null
},
{
"id": 2399338178,
"node_id": "MDU6TGFiZWwyMzk5... | closed | false | [] | null | 1 | 2026-02-18T19:25:42 | 2026-02-19T05:30:50 | 2026-02-19T05:30:42 | null | NONE | null | null | null | null | #### Reference Issues/PRs
Fixes #29167.
#### What does this implement/fix? Explain your changes.
Adds a βBeginner resourcesβ section to the Getting Started guide with links
to the MOOC, ML map, and user guide. Adds a changelog fragment.
#### AI usage disclosure
I used AI assistance for:
- [ ] Code generation (e.g., when writing an implementation or fixing a bug)
- [ ] Test/benchmark generation
- [x] Documentation (including examples)
- [x] Research and understanding
#### Any other comments?
Docs-only change; tests not run.
| {
"login": "virchan",
"id": 25701849,
"node_id": "MDQ6VXNlcjI1NzAxODQ5",
"avatar_url": "https://avatars.githubusercontent.com/u/25701849?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/virchan",
"html_url": "https://github.com/virchan",
"followers_url": "https://api.github.com/users/virchan/followers",
"following_url": "https://api.github.com/users/virchan/following{/other_user}",
"gists_url": "https://api.github.com/users/virchan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/virchan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/virchan/subscriptions",
"organizations_url": "https://api.github.com/users/virchan/orgs",
"repos_url": "https://api.github.com/users/virchan/repos",
"events_url": "https://api.github.com/users/virchan/events{/privacy}",
"received_events_url": "https://api.github.com/users/virchan/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33313/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33313/timeline | null | null | null | false | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/pulls/33313",
"html_url": "https://github.com/scikit-learn/scikit-learn/pull/33313",
"diff_url": "https://github.com/scikit-learn/scikit-learn/pull/33313.diff",
"patch_url": "https://github.com/scikit-learn/scikit-learn/pull/33313.patch",
"merged_at": null
} | true |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33312 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33312/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33312/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33312/events | https://github.com/scikit-learn/scikit-learn/pull/33312 | 3,959,417,080 | PR_kwDOAAzd1s7Esx3p | 33,312 | API: add public feature/name checks | {
"login": "nandanadileep",
"id": 110280757,
"node_id": "U_kgDOBpLANQ",
"avatar_url": "https://avatars.githubusercontent.com/u/110280757?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/nandanadileep",
"html_url": "https://github.com/nandanadileep",
"followers_url": "https://api.github.com/users/nandanadileep/followers",
"following_url": "https://api.github.com/users/nandanadileep/following{/other_user}",
"gists_url": "https://api.github.com/users/nandanadileep/gists{/gist_id}",
"starred_url": "https://api.github.com/users/nandanadileep/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/nandanadileep/subscriptions",
"organizations_url": "https://api.github.com/users/nandanadileep/orgs",
"repos_url": "https://api.github.com/users/nandanadileep/repos",
"events_url": "https://api.github.com/users/nandanadileep/events{/privacy}",
"received_events_url": "https://api.github.com/users/nandanadileep/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 1815453311,
"node_id": "MDU6TGFiZWwxODE1NDUzMzEx",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/module:utils",
"name": "module:utils",
"color": "151e91",
"default": false,
"description": ""
},
{
"id": 2399338178,
"node_id": "MDU6TGFiZWwyMzk5Mz... | closed | false | [] | null | 2 | 2026-02-18T19:24:58 | 2026-02-19T07:56:35 | 2026-02-19T05:29:30 | null | NONE | null | null | null | null | #### Reference Issues/PRs
Fixes #30389.
#### What does this implement/fix? Explain your changes.
Adds public `check_feature_names` and `check_n_features` wrappers in
`sklearn.utils.validation`, updates the API reference, adds tests, and
includes a changelog fragment.
#### AI usage disclosure
I used AI assistance for:
- [x] Code generation (e.g., when writing an implementation or fixing a bug)
- [x] Test/benchmark generation
- [x] Documentation (including examples)
- [x] Research and understanding
#### Any other comments?
Tests not run (scikit-learn not built: `sklearn.__check_build._check_build`).
| {
"login": "virchan",
"id": 25701849,
"node_id": "MDQ6VXNlcjI1NzAxODQ5",
"avatar_url": "https://avatars.githubusercontent.com/u/25701849?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/virchan",
"html_url": "https://github.com/virchan",
"followers_url": "https://api.github.com/users/virchan/followers",
"following_url": "https://api.github.com/users/virchan/following{/other_user}",
"gists_url": "https://api.github.com/users/virchan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/virchan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/virchan/subscriptions",
"organizations_url": "https://api.github.com/users/virchan/orgs",
"repos_url": "https://api.github.com/users/virchan/repos",
"events_url": "https://api.github.com/users/virchan/events{/privacy}",
"received_events_url": "https://api.github.com/users/virchan/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33312/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33312/timeline | null | null | null | false | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/pulls/33312",
"html_url": "https://github.com/scikit-learn/scikit-learn/pull/33312",
"diff_url": "https://github.com/scikit-learn/scikit-learn/pull/33312.diff",
"patch_url": "https://github.com/scikit-learn/scikit-learn/pull/33312.patch",
"merged_at": null
} | true |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33311 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33311/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33311/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33311/events | https://github.com/scikit-learn/scikit-learn/pull/33311 | 3,959,044,376 | PR_kwDOAAzd1s7Erk5_ | 33,311 | DOC remove sklearn-evaluation from related projects | {
"login": "lorentzenchr",
"id": 15324633,
"node_id": "MDQ6VXNlcjE1MzI0NjMz",
"avatar_url": "https://avatars.githubusercontent.com/u/15324633?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/lorentzenchr",
"html_url": "https://github.com/lorentzenchr",
"followers_url": "https://api.github.com/users/lorentzenchr/followers",
"following_url": "https://api.github.com/users/lorentzenchr/following{/other_user}",
"gists_url": "https://api.github.com/users/lorentzenchr/gists{/gist_id}",
"starred_url": "https://api.github.com/users/lorentzenchr/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lorentzenchr/subscriptions",
"organizations_url": "https://api.github.com/users/lorentzenchr/orgs",
"repos_url": "https://api.github.com/users/lorentzenchr/repos",
"events_url": "https://api.github.com/users/lorentzenchr/events{/privacy}",
"received_events_url": "https://api.github.com/users/lorentzenchr/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 12995770,
"node_id": "MDU6TGFiZWwxMjk5NTc3MA==",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/Documentation",
"name": "Documentation",
"color": "0b02e1",
"default": false,
"description": null
},
{
"id": 3730476391,
"node_id": "LA_kwDOAAzd1s7eW... | closed | false | [] | null | 1 | 2026-02-18T17:46:37 | 2026-02-19T12:06:59 | 2026-02-19T10:07:40 | null | MEMBER | null | null | null | null | #### Reference Issues/PRs
None
#### What does this implement/fix? Explain your changes.
This removes https://github.com/ploomber/sklearn-evaluation from the related projects site. It is archives as of 28 Febr 2025.
#### AI usage disclosure
None
#### Any other comments?
| {
"login": "lesteve",
"id": 1680079,
"node_id": "MDQ6VXNlcjE2ODAwNzk=",
"avatar_url": "https://avatars.githubusercontent.com/u/1680079?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/lesteve",
"html_url": "https://github.com/lesteve",
"followers_url": "https://api.github.com/users/lesteve/followers",
"following_url": "https://api.github.com/users/lesteve/following{/other_user}",
"gists_url": "https://api.github.com/users/lesteve/gists{/gist_id}",
"starred_url": "https://api.github.com/users/lesteve/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lesteve/subscriptions",
"organizations_url": "https://api.github.com/users/lesteve/orgs",
"repos_url": "https://api.github.com/users/lesteve/repos",
"events_url": "https://api.github.com/users/lesteve/events{/privacy}",
"received_events_url": "https://api.github.com/users/lesteve/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33311/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33311/timeline | null | null | null | false | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/pulls/33311",
"html_url": "https://github.com/scikit-learn/scikit-learn/pull/33311",
"diff_url": "https://github.com/scikit-learn/scikit-learn/pull/33311.diff",
"patch_url": "https://github.com/scikit-learn/scikit-learn/pull/33311.patch",
"merged_at": "2026-02-19T10:07:40"
} | true |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33310 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33310/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33310/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33310/events | https://github.com/scikit-learn/scikit-learn/pull/33310 | 3,958,060,853 | PR_kwDOAAzd1s7EoXv4 | 33,310 | CI Test only 20 random seeds in nightly scheduled run | {
"login": "lesteve",
"id": 1680079,
"node_id": "MDQ6VXNlcjE2ODAwNzk=",
"avatar_url": "https://avatars.githubusercontent.com/u/1680079?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/lesteve",
"html_url": "https://github.com/lesteve",
"followers_url": "https://api.github.com/users/lesteve/followers",
"following_url": "https://api.github.com/users/lesteve/following{/other_user}",
"gists_url": "https://api.github.com/users/lesteve/gists{/gist_id}",
"starred_url": "https://api.github.com/users/lesteve/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lesteve/subscriptions",
"organizations_url": "https://api.github.com/users/lesteve/orgs",
"repos_url": "https://api.github.com/users/lesteve/repos",
"events_url": "https://api.github.com/users/lesteve/events{/privacy}",
"received_events_url": "https://api.github.com/users/lesteve/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 55523804,
"node_id": "MDU6TGFiZWw1NTUyMzgwNA==",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/Build%20/%20CI",
"name": "Build / CI",
"color": "eb6420",
"default": false,
"description": null
}
] | closed | false | [] | null | 4 | 2026-02-18T14:11:24 | 2026-02-18T16:44:48 | 2026-02-18T15:43:21 | null | MEMBER | null | null | null | null | Follow-up of https://github.com/scikit-learn/scikit-learn/issues/33033. Close #33033.
After the Azure -> GHA migration (or a dependency update hard to know for sure) there seems to be at least 2 tests that fail for a single random seed see https://github.com/scikit-learn/scikit-learn/issues/33274#issuecomment-3907658843 and https://github.com/scikit-learn/scikit-learn/issues/33244#issuecomment-3907806973.
This implements a middle-ground approach of only testing 20 global random seeds in the daily schedule run as mentioned in https://github.com/scikit-learn/scikit-learn/issues/33033#issuecomment-3750070779.
- this still detects somewhat flaky tests in the nightly run except with a higher detection threshold. This will reduce the time spent in chasing and "fixing" this kind of issues (raising the tolerance most of the time :shrug:).
- you can still use `SKLEARN_GLOBAL_RANDOM_SEED=all` to locally test global random seeds `0-99`. The `[all random seeds]` commit message also does test all random seeds (i.e. `0-99)`. We could also decide that "all" is 0-19 if we want to do this, no strong opinion to be honest. I guess using 0-99 for `all` makes you write a more robust/conservative test and is less likely to trigger a random failure in the CI where we tests for less seeds?
cc @jeremiedbb @ogrisel.
| {
"login": "ogrisel",
"id": 89061,
"node_id": "MDQ6VXNlcjg5MDYx",
"avatar_url": "https://avatars.githubusercontent.com/u/89061?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ogrisel",
"html_url": "https://github.com/ogrisel",
"followers_url": "https://api.github.com/users/ogrisel/followers",
"following_url": "https://api.github.com/users/ogrisel/following{/other_user}",
"gists_url": "https://api.github.com/users/ogrisel/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ogrisel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ogrisel/subscriptions",
"organizations_url": "https://api.github.com/users/ogrisel/orgs",
"repos_url": "https://api.github.com/users/ogrisel/repos",
"events_url": "https://api.github.com/users/ogrisel/events{/privacy}",
"received_events_url": "https://api.github.com/users/ogrisel/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33310/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33310/timeline | null | null | null | false | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/pulls/33310",
"html_url": "https://github.com/scikit-learn/scikit-learn/pull/33310",
"diff_url": "https://github.com/scikit-learn/scikit-learn/pull/33310.diff",
"patch_url": "https://github.com/scikit-learn/scikit-learn/pull/33310.patch",
"merged_at": "2026-02-18T15:43:21"
} | true |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33309 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33309/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33309/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33309/events | https://github.com/scikit-learn/scikit-learn/pull/33309 | 3,957,870,146 | PR_kwDOAAzd1s7EnvXL | 33,309 | chore: remove redundant . | {
"login": "cuiweixie",
"id": 1579517,
"node_id": "MDQ6VXNlcjE1Nzk1MTc=",
"avatar_url": "https://avatars.githubusercontent.com/u/1579517?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/cuiweixie",
"html_url": "https://github.com/cuiweixie",
"followers_url": "https://api.github.com/users/cuiweixie/followers",
"following_url": "https://api.github.com/users/cuiweixie/following{/other_user}",
"gists_url": "https://api.github.com/users/cuiweixie/gists{/gist_id}",
"starred_url": "https://api.github.com/users/cuiweixie/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/cuiweixie/subscriptions",
"organizations_url": "https://api.github.com/users/cuiweixie/orgs",
"repos_url": "https://api.github.com/users/cuiweixie/repos",
"events_url": "https://api.github.com/users/cuiweixie/events{/privacy}",
"received_events_url": "https://api.github.com/users/cuiweixie/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 1815453311,
"node_id": "MDU6TGFiZWwxODE1NDUzMzEx",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/module:utils",
"name": "module:utils",
"color": "151e91",
"default": false,
"description": ""
}
] | closed | false | [] | null | 1 | 2026-02-18T13:27:19 | 2026-02-18T13:51:09 | 2026-02-18T13:51:09 | null | CONTRIBUTOR | null | null | null | null | null | {
"login": "StefanieSenger",
"id": 91849487,
"node_id": "U_kgDOBXmDDw",
"avatar_url": "https://avatars.githubusercontent.com/u/91849487?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/StefanieSenger",
"html_url": "https://github.com/StefanieSenger",
"followers_url": "https://api.github.com/users/StefanieSenger/followers",
"following_url": "https://api.github.com/users/StefanieSenger/following{/other_user}",
"gists_url": "https://api.github.com/users/StefanieSenger/gists{/gist_id}",
"starred_url": "https://api.github.com/users/StefanieSenger/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/StefanieSenger/subscriptions",
"organizations_url": "https://api.github.com/users/StefanieSenger/orgs",
"repos_url": "https://api.github.com/users/StefanieSenger/repos",
"events_url": "https://api.github.com/users/StefanieSenger/events{/privacy}",
"received_events_url": "https://api.github.com/users/StefanieSenger/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33309/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33309/timeline | null | null | null | false | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/pulls/33309",
"html_url": "https://github.com/scikit-learn/scikit-learn/pull/33309",
"diff_url": "https://github.com/scikit-learn/scikit-learn/pull/33309.diff",
"patch_url": "https://github.com/scikit-learn/scikit-learn/pull/33309.patch",
"merged_at": "2026-02-18T13:51:09"
} | true |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33308 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33308/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33308/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33308/events | https://github.com/scikit-learn/scikit-learn/issues/33308 | 3,957,056,246 | I_kwDOAAzd1s7r2-L2 | 33,308 | Logic for dtype of `.predict()` from classifiers is inconsistent | {
"login": "david-cortes-intel",
"id": 180380222,
"node_id": "U_kgDOCsBiPg",
"avatar_url": "https://avatars.githubusercontent.com/u/180380222?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/david-cortes-intel",
"html_url": "https://github.com/david-cortes-intel",
"followers_url": "https://api.github.com/users/david-cortes-intel/followers",
"following_url": "https://api.github.com/users/david-cortes-intel/following{/other_user}",
"gists_url": "https://api.github.com/users/david-cortes-intel/gists{/gist_id}",
"starred_url": "https://api.github.com/users/david-cortes-intel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/david-cortes-intel/subscriptions",
"organizations_url": "https://api.github.com/users/david-cortes-intel/orgs",
"repos_url": "https://api.github.com/users/david-cortes-intel/repos",
"events_url": "https://api.github.com/users/david-cortes-intel/events{/privacy}",
"received_events_url": "https://api.github.com/users/david-cortes-intel/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 12995755,
"node_id": "MDU6TGFiZWwxMjk5NTc1NQ==",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/Bug",
"name": "Bug",
"color": "e10c02",
"default": false,
"description": null
},
{
"id": 3631152487,
"node_id": "LA_kwDOAAzd1s7Ybv1n",
"url": "ht... | closed | false | [] | null | 2 | 2026-02-18T10:14:47 | 2026-02-18T15:09:00 | 2026-02-18T15:08:59 | null | NONE | null | null | {
"total": 0,
"completed": 0,
"percent_completed": 0
} | {
"blocked_by": 0,
"total_blocked_by": 0,
"blocking": 0,
"total_blocking": 0
} | ### Describe the bug and give evidence about its user-facing impact
Calling `.predict()` from a classifier may output different dtypes depending on what the input class and dtypes are, in a way that doesn't look consistent.
For example, the [docs for array API support](https://scikit-learn.org/stable/modules/array_api.html) state:
> For estimators, the rule is βeverything follows X β - mixed array inputs are converted so that they all match the array library and device of X.
But that does not appear to be the case with `RidgeClassifier.predict` (currently the only classifier with array API support).
For example, calling `.predict()` with NumPy arrays that are float64 will return int64 under array API dispatch:
```python
import os
os.environ["SCIPY_ARRAY_API"] = "1"
import numpy as np
import array_api_strict
rng = np.random.default_rng(seed=123)
X = rng.standard_normal(size=(1000, 20))
y = rng.integers(2, size=X.shape[0])
from sklearn import config_context
from sklearn.linear_model import RidgeClassifier
with config_context(array_api_dispatch=True):
pred = RidgeClassifier(solver="svd").fit(X, y).predict(X)
pred.dtype
```
```
dtype('int64')
```
But with float32 arrays it returns float32, whether it is under array API dispatch or not:
```python
pred = RidgeClassifier(solver="svd").fit(X.astype(np.float32), y.astype(np.float32)).predict(X.astype(np.float32))
pred.dtype
```
```
dtype('float32')
```
Likewise, for pandas it returns the same dtype as input:
```python
import pandas as pd
pred = RidgeClassifier(solver="svd").fit(
pd.DataFrame(X).astype(np.int16),
pd.Series(y).astype(np.int16)
).predict(
pd.DataFrame(X).astype(np.int16)
)
pred.dtype
```
```
dtype('int16')
```
.. unless the input is float64 or mixed types, in which case it returns int64.
But for inputs that are not NumPy, Pandas or Polars, passing float64 will return float64:
```python
import array_api_strict
X64 = array_api_strict.asarray(X, dtype=array_api_strict.float64)
y64 = array_api_strict.asarray(y, dtype=array_api_strict.float64)
with config_context(array_api_dispatch=True):
pred = RidgeClassifier(solver="svd").fit(X64, y64).predict(X64)
pred.dtype
```
```
array_api_strict.float64
```
### Steps/Code to Reproduce
```python
import os
os.environ["SCIPY_ARRAY_API"] = "1"
import numpy as np
import array_api_strict
rng = np.random.default_rng(seed=123)
X = rng.standard_normal(size=(1000, 20))
y = rng.integers(2, size=X.shape[0])
from sklearn import config_context
from sklearn.linear_model import RidgeClassifier
with config_context(array_api_dispatch=True):
pred = RidgeClassifier(solver="svd").fit(X, y).predict(X)
pred.dtype
```
### Expected Results
```
dtype('float64')
```
### Actual Results
```
dtype('int64')
```
### Versions
```shell
System:
python: 3.12.12 | packaged by conda-forge | (main, Oct 22 2025, 23:25:55) [GCC 14.3.0]
executable: <local path>/miniforge3/envs/icxconda/bin/python
machine: Linux-6.8.0-49-generic-x86_64-with-glibc2.39
Python dependencies:
sklearn: 1.8.0
pip: 25.3
setuptools: 80.9.0
numpy: 2.4.1
scipy: 1.17.0
Cython: 3.2.4
pandas: 2.3.3
matplotlib: 3.10.8
joblib: 1.5.3
threadpoolctl: 3.6.0
Built with OpenMP: True
threadpoolctl info:
user_api: blas
internal_api: openblas
num_threads: 128
prefix: libopenblas
filepath: <local path>/miniforge3/envs/icxconda/lib/libopenblasp-r0.3.30.so
version: 0.3.30
threading_layer: pthreads
architecture: SapphireRapids
user_api: openmp
internal_api: openmp
num_threads: 224
prefix: libomp
filepath: <local path>/miniforge3/envs/icxconda/lib/libomp.so
version: None
```
### Interest in fixing the bug
No. | {
"login": "david-cortes-intel",
"id": 180380222,
"node_id": "U_kgDOCsBiPg",
"avatar_url": "https://avatars.githubusercontent.com/u/180380222?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/david-cortes-intel",
"html_url": "https://github.com/david-cortes-intel",
"followers_url": "https://api.github.com/users/david-cortes-intel/followers",
"following_url": "https://api.github.com/users/david-cortes-intel/following{/other_user}",
"gists_url": "https://api.github.com/users/david-cortes-intel/gists{/gist_id}",
"starred_url": "https://api.github.com/users/david-cortes-intel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/david-cortes-intel/subscriptions",
"organizations_url": "https://api.github.com/users/david-cortes-intel/orgs",
"repos_url": "https://api.github.com/users/david-cortes-intel/repos",
"events_url": "https://api.github.com/users/david-cortes-intel/events{/privacy}",
"received_events_url": "https://api.github.com/users/david-cortes-intel/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33308/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33308/timeline | null | completed | null | null | null | false |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33307 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33307/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33307/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33307/events | https://github.com/scikit-learn/scikit-learn/pull/33307 | 3,956,230,216 | PR_kwDOAAzd1s7EiRp1 | 33,307 | Rename _data.py to _data.py | {
"login": "quanghuynh10111-png",
"id": 252091911,
"node_id": "U_kgDODwaeBw",
"avatar_url": "https://avatars.githubusercontent.com/u/252091911?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/quanghuynh10111-png",
"html_url": "https://github.com/quanghuynh10111-png",
"followers_url": "https://api.github.com/users/quanghuynh10111-png/followers",
"following_url": "https://api.github.com/users/quanghuynh10111-png/following{/other_user}",
"gists_url": "https://api.github.com/users/quanghuynh10111-png/gists{/gist_id}",
"starred_url": "https://api.github.com/users/quanghuynh10111-png/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/quanghuynh10111-png/subscriptions",
"organizations_url": "https://api.github.com/users/quanghuynh10111-png/orgs",
"repos_url": "https://api.github.com/users/quanghuynh10111-png/repos",
"events_url": "https://api.github.com/users/quanghuynh10111-png/events{/privacy}",
"received_events_url": "https://api.github.com/users/quanghuynh10111-png/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 2399338178,
"node_id": "MDU6TGFiZWwyMzk5MzM4MTc4",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/spam",
"name": "spam",
"color": "b60205",
"default": false,
"description": "spam PR and issues"
}
] | closed | false | [] | null | 1 | 2026-02-18T06:34:11 | 2026-02-18T07:30:37 | 2026-02-18T07:30:27 | null | NONE | null | null | null | null | <!--
π Thanks for contributing a pull request!
π Please ensure you have taken a look at the contribution guidelines:
https://github.com/scikit-learn/scikit-learn/blob/main/CONTRIBUTING.md
β
In particular following the pull request checklist will increase the likelihood
of having maintainers review your PR:
https://scikit-learn.org/dev/developers/contributing.html#pull-request-checklist
π If your PR is likely to affect users, you will need to add a changelog entry
describing your PR changes, see:
https://github.com/scikit-learn/scikit-learn/blob/main/doc/whats_new/upcoming_changes/README.md
-->
#### Reference Issues/PRs
<!--
Example: Fixes #1234. See also #3456.
Please use keywords (e.g., Fixes) to create link to the issues or pull requests
you resolved, so that they will automatically be closed when your pull request
is merged. See https://github.com/blog/1506-closing-issues-via-pull-requests
-->
#### What does this implement/fix? Explain your changes.
#### AI usage disclosure
<!--
If AI tools were involved in creating this PR, please check all boxes that apply
below and make sure that you adhere to our Automated Contributions Policy:
https://scikit-learn.org/dev/developers/contributing.html#automated-contributions-policy
-->
I used AI assistance for:
- [ ] Code generation (e.g., when writing an implementation or fixing a bug)
- [x] Test/benchmark generation
- [x] Documentation (including examples)
- [x] Research and understanding
#### Any other comments?
<!--
Thank you for your patience. Changes to scikit-learn require careful
attention, but with limited maintainer time, not every contribution can be reviewed
quickly.
For more information and tips on improving your pull request, see:
https://scikit-learn.org/dev/faq.html#why-is-my-pull-request-not-getting-any-attention.
Thanks for contributing!
-->
| {
"login": "virchan",
"id": 25701849,
"node_id": "MDQ6VXNlcjI1NzAxODQ5",
"avatar_url": "https://avatars.githubusercontent.com/u/25701849?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/virchan",
"html_url": "https://github.com/virchan",
"followers_url": "https://api.github.com/users/virchan/followers",
"following_url": "https://api.github.com/users/virchan/following{/other_user}",
"gists_url": "https://api.github.com/users/virchan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/virchan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/virchan/subscriptions",
"organizations_url": "https://api.github.com/users/virchan/orgs",
"repos_url": "https://api.github.com/users/virchan/repos",
"events_url": "https://api.github.com/users/virchan/events{/privacy}",
"received_events_url": "https://api.github.com/users/virchan/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33307/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33307/timeline | null | null | null | false | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/pulls/33307",
"html_url": "https://github.com/scikit-learn/scikit-learn/pull/33307",
"diff_url": "https://github.com/scikit-learn/scikit-learn/pull/33307.diff",
"patch_url": "https://github.com/scikit-learn/scikit-learn/pull/33307.patch",
"merged_at": null
} | true |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33306 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33306/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33306/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33306/events | https://github.com/scikit-learn/scikit-learn/pull/33306 | 3,955,279,615 | PR_kwDOAAzd1s7EfR8T | 33,306 | MNT Clean up dead code related to deprecated classes | {
"login": "jeremiedbb",
"id": 34657725,
"node_id": "MDQ6VXNlcjM0NjU3NzI1",
"avatar_url": "https://avatars.githubusercontent.com/u/34657725?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jeremiedbb",
"html_url": "https://github.com/jeremiedbb",
"followers_url": "https://api.github.com/users/jeremiedbb/followers",
"following_url": "https://api.github.com/users/jeremiedbb/following{/other_user}",
"gists_url": "https://api.github.com/users/jeremiedbb/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jeremiedbb/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jeremiedbb/subscriptions",
"organizations_url": "https://api.github.com/users/jeremiedbb/orgs",
"repos_url": "https://api.github.com/users/jeremiedbb/repos",
"events_url": "https://api.github.com/users/jeremiedbb/events{/privacy}",
"received_events_url": "https://api.github.com/users/jeremiedbb/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 1815443556,
"node_id": "MDU6TGFiZWwxODE1NDQzNTU2",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/module:gaussian_process",
"name": "module:gaussian_process",
"color": "151e91",
"default": false,
"description": ""
},
{
"id": 1815446740,
"node_id... | closed | false | [] | null | 1 | 2026-02-18T00:35:19 | 2026-02-18T08:04:06 | 2026-02-18T08:04:05 | null | MEMBER | null | null | null | null | We no longer modify the ``__init__`` when we deprecate classes but ``__new__`` instead. That was changed ~4 releases ago, but we left some legacy code which purpose was to retreive the original ``__init__``, and not the wrapped one, in different places. It can safely be removed. We always get the original __init__ since we don't modify it.
The ``deprecated_original`` attribute that was set on the wrapped init was defined to be able to retreive that original init and is thus not used anymore after this clean up so can be safely removed as well. | {
"login": "lesteve",
"id": 1680079,
"node_id": "MDQ6VXNlcjE2ODAwNzk=",
"avatar_url": "https://avatars.githubusercontent.com/u/1680079?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/lesteve",
"html_url": "https://github.com/lesteve",
"followers_url": "https://api.github.com/users/lesteve/followers",
"following_url": "https://api.github.com/users/lesteve/following{/other_user}",
"gists_url": "https://api.github.com/users/lesteve/gists{/gist_id}",
"starred_url": "https://api.github.com/users/lesteve/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lesteve/subscriptions",
"organizations_url": "https://api.github.com/users/lesteve/orgs",
"repos_url": "https://api.github.com/users/lesteve/repos",
"events_url": "https://api.github.com/users/lesteve/events{/privacy}",
"received_events_url": "https://api.github.com/users/lesteve/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33306/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33306/timeline | null | null | null | false | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/pulls/33306",
"html_url": "https://github.com/scikit-learn/scikit-learn/pull/33306",
"diff_url": "https://github.com/scikit-learn/scikit-learn/pull/33306.diff",
"patch_url": "https://github.com/scikit-learn/scikit-learn/pull/33306.patch",
"merged_at": "2026-02-18T08:04:05"
} | true |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33305 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33305/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33305/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33305/events | https://github.com/scikit-learn/scikit-learn/issues/33305 | 3,955,052,807 | I_kwDOAAzd1s7rvVEH | 33,305 | MDS can return wrong number of components when using ClassicalMDS initialization | {
"login": "bdpedigo",
"id": 25714207,
"node_id": "MDQ6VXNlcjI1NzE0MjA3",
"avatar_url": "https://avatars.githubusercontent.com/u/25714207?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/bdpedigo",
"html_url": "https://github.com/bdpedigo",
"followers_url": "https://api.github.com/users/bdpedigo/followers",
"following_url": "https://api.github.com/users/bdpedigo/following{/other_user}",
"gists_url": "https://api.github.com/users/bdpedigo/gists{/gist_id}",
"starred_url": "https://api.github.com/users/bdpedigo/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/bdpedigo/subscriptions",
"organizations_url": "https://api.github.com/users/bdpedigo/orgs",
"repos_url": "https://api.github.com/users/bdpedigo/repos",
"events_url": "https://api.github.com/users/bdpedigo/events{/privacy}",
"received_events_url": "https://api.github.com/users/bdpedigo/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 12995755,
"node_id": "MDU6TGFiZWwxMjk5NTc1NQ==",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/Bug",
"name": "Bug",
"color": "e10c02",
"default": false,
"description": null
},
{
"id": 3631152487,
"node_id": "LA_kwDOAAzd1s7Ybv1n",
"url": "ht... | closed | false | [] | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/milestones/70",
"html_url": "https://github.com/scikit-learn/scikit-learn/milestone/70",
"labels_url": "https://api.github.com/repos/scikit-learn/scikit-learn/milestones/70/labels",
"id": 14414033,
"node_id": "MI_kwDOAAzd1s4A2_DR",
"number": 70,
"title": "1.8.1",
"description": "",
"creator": {
"login": "lesteve",
"id": 1680079,
"node_id": "MDQ6VXNlcjE2ODAwNzk=",
"avatar_url": "https://avatars.githubusercontent.com/u/1680079?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/lesteve",
"html_url": "https://github.com/lesteve",
"followers_url": "https://api.github.com/users/lesteve/followers",
"following_url": "https://api.github.com/users/lesteve/following{/other_user}",
"gists_url": "https://api.github.com/users/lesteve/gists{/gist_id}",
"starred_url": "https://api.github.com/users/lesteve/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lesteve/subscriptions",
"organizations_url": "https://api.github.com/users/lesteve/orgs",
"repos_url": "https://api.github.com/users/lesteve/repos",
"events_url": "https://api.github.com/users/lesteve/events{/privacy}",
"received_events_url": "https://api.github.com/users/lesteve/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
},
"open_issues": 4,
"closed_issues": 5,
"state": "open",
"created_at": "2025-12-23T17:07:24",
"updated_at": "2026-03-03T04:28:26",
"due_on": "2026-03-03T00:00:00",
"closed_at": null
} | 5 | 2026-02-17T23:08:02 | 2026-02-19T09:44:36 | 2026-02-19T09:44:36 | null | CONTRIBUTOR | null | null | {
"total": 0,
"completed": 0,
"percent_completed": 0
} | {
"blocked_by": 0,
"total_blocked_by": 0,
"blocking": 0,
"total_blocking": 0
} | ### Describe the bug and give evidence about its user-facing impact
When using the new `init="classical_mds"` option in `MDS`, the number of components returned is always 2.
### Steps/Code to Reproduce
```python
import numpy as np
from sklearn.manifold import MDS
data = np.random.uniform(size=(20, 10))
model = MDS(init="classical_mds", n_components=3, n_init=1)
transformed_data = model.fit_transform(data)
print("Output n_components:", transformed_data.shape[1])
```
### Expected Results
Output n_components: 3
### Actual Results
Output n_components: 2
### Versions
```shell
System:
python: 3.12.5 (main, Aug 14 2024, 04:32:18) [Clang 18.1.8 ]
executable: /Users/ben.pedigo/code/meshrep/meshrep/.venv/bin/python
machine: macOS-13.6.1-arm64-arm-64bit
Python dependencies:
sklearn: 1.8.0
pip: None
setuptools: 69.5.1
numpy: 2.2.6
scipy: 1.15.0
Cython: None
pandas: 2.3.2
matplotlib: 3.10.8
joblib: 1.5.1
threadpoolctl: 3.6.0
Built with OpenMP: True
threadpoolctl info:
user_api: blas
internal_api: openblas
num_threads: 12
prefix: libscipy_openblas
filepath: /Users/ben.pedigo/code/meshrep/meshrep/.venv/lib/python3.12/site-packages/numpy/.dylibs/libscipy_openblas64_.dylib
version: 0.3.29
threading_layer: pthreads
architecture: neoversen1
user_api: blas
internal_api: openblas
num_threads: 12
prefix: libscipy_openblas
filepath: /Users/ben.pedigo/code/meshrep/meshrep/.venv/lib/python3.12/site-packages/scipy/.dylibs/libscipy_openblas.dylib
version: 0.3.28
threading_layer: pthreads
architecture: neoversen1
user_api: openmp
internal_api: openmp
num_threads: 12
prefix: libomp
filepath: /opt/homebrew/Cellar/libomp/19.1.2/lib/libomp.dylib
version: None
user_api: openmp
internal_api: openmp
num_threads: 12
prefix: libomp
filepath: /Users/ben.pedigo/code/meshrep/meshrep/.venv/lib/python3.12/site-packages/sklearn/.dylibs/libomp.dylib
version: None
user_api: openmp
internal_api: openmp
num_threads: 12
prefix: libomp
filepath: /Users/ben.pedigo/code/meshrep/meshrep/.venv/lib/python3.12/site-packages/skimage/.dylibs/libomp.dylib
version: None
```
### Interest in fixing the bug
I am happy to open a PR to fix - I believe `n_components` just needs to be passed down during the initialization here: https://github.com/scikit-learn/scikit-learn/blob/3c8d10e670e72e3a96c753a1c943ec090b06dbd8/sklearn/manifold/_mds.py#L816 | {
"login": "lesteve",
"id": 1680079,
"node_id": "MDQ6VXNlcjE2ODAwNzk=",
"avatar_url": "https://avatars.githubusercontent.com/u/1680079?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/lesteve",
"html_url": "https://github.com/lesteve",
"followers_url": "https://api.github.com/users/lesteve/followers",
"following_url": "https://api.github.com/users/lesteve/following{/other_user}",
"gists_url": "https://api.github.com/users/lesteve/gists{/gist_id}",
"starred_url": "https://api.github.com/users/lesteve/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lesteve/subscriptions",
"organizations_url": "https://api.github.com/users/lesteve/orgs",
"repos_url": "https://api.github.com/users/lesteve/repos",
"events_url": "https://api.github.com/users/lesteve/events{/privacy}",
"received_events_url": "https://api.github.com/users/lesteve/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33305/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33305/timeline | null | completed | null | null | null | false |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33304 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33304/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33304/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33304/events | https://github.com/scikit-learn/scikit-learn/pull/33304 | 3,955,007,936 | PR_kwDOAAzd1s7EeZ3j | 33,304 | FIX deprecated decorator for classes | {
"login": "jeremiedbb",
"id": 34657725,
"node_id": "MDQ6VXNlcjM0NjU3NzI1",
"avatar_url": "https://avatars.githubusercontent.com/u/34657725?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jeremiedbb",
"html_url": "https://github.com/jeremiedbb",
"followers_url": "https://api.github.com/users/jeremiedbb/followers",
"following_url": "https://api.github.com/users/jeremiedbb/following{/other_user}",
"gists_url": "https://api.github.com/users/jeremiedbb/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jeremiedbb/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jeremiedbb/subscriptions",
"organizations_url": "https://api.github.com/users/jeremiedbb/orgs",
"repos_url": "https://api.github.com/users/jeremiedbb/repos",
"events_url": "https://api.github.com/users/jeremiedbb/events{/privacy}",
"received_events_url": "https://api.github.com/users/jeremiedbb/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 1815443556,
"node_id": "MDU6TGFiZWwxODE1NDQzNTU2",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/module:gaussian_process",
"name": "module:gaussian_process",
"color": "151e91",
"default": false,
"description": ""
},
{
"id": 1815446740,
"node_id... | closed | false | [] | null | 2 | 2026-02-17T22:51:50 | 2026-02-18T00:38:50 | 2026-02-18T00:38:43 | null | MEMBER | null | null | null | null | In https://github.com/scikit-learn/scikit-learn/pull/30145, the decorator was fixed to correctly work with ``signature``. However ``signature`` is still broken for subclasses of a deprecated class because the added ``__signature__`` attribute is then inherited by the subclass (and ``signature`` relies on that primarily). The test amended in ``test_deprecation.py`` illustrates that and fails on ``main``.
On the way, I removed all legacy code where we used to try to retreive the original ``__init__``. We no longer wrap ``__init__`` since ~4 releases, but ``__new__`` instead. This code is now just dead code that can safely be removed.
| {
"login": "jeremiedbb",
"id": 34657725,
"node_id": "MDQ6VXNlcjM0NjU3NzI1",
"avatar_url": "https://avatars.githubusercontent.com/u/34657725?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jeremiedbb",
"html_url": "https://github.com/jeremiedbb",
"followers_url": "https://api.github.com/users/jeremiedbb/followers",
"following_url": "https://api.github.com/users/jeremiedbb/following{/other_user}",
"gists_url": "https://api.github.com/users/jeremiedbb/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jeremiedbb/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jeremiedbb/subscriptions",
"organizations_url": "https://api.github.com/users/jeremiedbb/orgs",
"repos_url": "https://api.github.com/users/jeremiedbb/repos",
"events_url": "https://api.github.com/users/jeremiedbb/events{/privacy}",
"received_events_url": "https://api.github.com/users/jeremiedbb/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33304/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33304/timeline | null | null | null | false | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/pulls/33304",
"html_url": "https://github.com/scikit-learn/scikit-learn/pull/33304",
"diff_url": "https://github.com/scikit-learn/scikit-learn/pull/33304.diff",
"patch_url": "https://github.com/scikit-learn/scikit-learn/pull/33304.patch",
"merged_at": null
} | true |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33303 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33303/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33303/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33303/events | https://github.com/scikit-learn/scikit-learn/pull/33303 | 3,953,984,683 | PR_kwDOAAzd1s7EbAoF | 33,303 | MAINT: Fix C warnings in Cython modules `_kd_tree.pyx.tp`, `_binary_tree.pxi.tp` and `_ball_tree.pyx.tp` | {
"login": "ChVeen",
"id": 124370897,
"node_id": "U_kgDOB2m_0Q",
"avatar_url": "https://avatars.githubusercontent.com/u/124370897?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ChVeen",
"html_url": "https://github.com/ChVeen",
"followers_url": "https://api.github.com/users/ChVeen/followers",
"following_url": "https://api.github.com/users/ChVeen/following{/other_user}",
"gists_url": "https://api.github.com/users/ChVeen/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ChVeen/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ChVeen/subscriptions",
"organizations_url": "https://api.github.com/users/ChVeen/orgs",
"repos_url": "https://api.github.com/users/ChVeen/repos",
"events_url": "https://api.github.com/users/ChVeen/events{/privacy}",
"received_events_url": "https://api.github.com/users/ChVeen/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 1815447666,
"node_id": "MDU6TGFiZWwxODE1NDQ3NjY2",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/module:neighbors",
"name": "module:neighbors",
"color": "151e91",
"default": false,
"description": ""
},
{
"id": 2911057044,
"node_id": "MDU6TGFiZW... | open | false | [] | null | 3 | 2026-02-17T17:55:03 | 2026-02-20T10:09:36 | null | null | CONTRIBUTOR | null | null | null | null | #### Reference Issues/PRs
No issue involved.
#### What does this implement/fix? Explain your changes.
While compiling sk-learn, we get the following warnings for modules `_binary_tree.pyx.tp` and `_kd_tree.pxi.tp`:
```
[1/4] Generating sklearn/neighbors/_kd_tree_pyx with a custom command
[2/4] Generating 'sklearn/neighbors/_kd_tree.cpython-312-x86_64-linux-musl.so.p/_kd_tree.c'
warning: sklearn/neighbors/_binary_tree.pxi:1091:8: Assigning to 'intp_t *' from 'const intp_t *' discards const qualifier
warning: sklearn/neighbors/_binary_tree.pxi:1957:8: Assigning to 'intp_t *' from 'const intp_t *' discards const qualifier
warning: sklearn/neighbors/_binary_tree.pxi:2052:8: Assigning to 'intp_t *' from 'const intp_t *' discards const qualifier
warning: sklearn/neighbors/_binary_tree.pxi:2221:8: Assigning to 'intp_t *' from 'const intp_t *' discards const qualifier
warning: sklearn/neighbors/_binary_tree.pxi:2344:8: Assigning to 'intp_t *' from 'const intp_t *' discards const qualifier
warning: sklearn/neighbors/_binary_tree.pxi:2401:8: Assigning to 'intp_t *' from 'const intp_t *' discards const qualifier
warning: sklearn/neighbors/_binary_tree.pxi:2402:8: Assigning to 'intp_t *' from 'const intp_t *' discards const qualifier
warning: sklearn/neighbors/_binary_tree.pxi:2726:8: Assigning to 'intp_t *' from 'const intp_t *' discards const qualifier
warning: sklearn/neighbors/_binary_tree.pxi:3592:8: Assigning to 'intp_t *' from 'const intp_t *' discards const qualifier
warning: sklearn/neighbors/_binary_tree.pxi:3687:8: Assigning to 'intp_t *' from 'const intp_t *' discards const qualifier
warning: sklearn/neighbors/_binary_tree.pxi:3856:8: Assigning to 'intp_t *' from 'const intp_t *' discards const qualifier
warning: sklearn/neighbors/_binary_tree.pxi:3979:8: Assigning to 'intp_t *' from 'const intp_t *' discards const qualifier
warning: sklearn/neighbors/_binary_tree.pxi:4036:8: Assigning to 'intp_t *' from 'const intp_t *' discards const qualifier
warning: sklearn/neighbors/_binary_tree.pxi:4037:8: Assigning to 'intp_t *' from 'const intp_t *' discards const qualifier
warning: sklearn/neighbors/_kd_tree.pyx:75:4: Assigning to 'float64_t *' from 'const float64_t *' discards const qualifier
warning: sklearn/neighbors/_kd_tree.pyx:76:4: Assigning to 'float64_t *' from 'const float64_t *' discards const qualifier
warning: sklearn/neighbors/_kd_tree.pyx:344:4: Assigning to 'float32_t *' from 'const float32_t *' discards const qualifier
warning: sklearn/neighbors/_kd_tree.pyx:345:4: Assigning to 'float32_t *' from 'const float32_t *' discards const qualifier
[3/4] Compiling C object sklearn/neighbors/_kd_tree.cpython-312-x86_64-linux-musl.so.p/meson-generated__kd_tree.c.o
```
This PR fixes the
- `Assigning to 'intp_t *' from 'const intp_t *' discards const qualifier`
- `Assigning to 'float64_t *' from 'const float64_t *' discards const qualifier`
warnings which leads to:
```
[1/9] Generating sklearn/neighbors/_binary_tree_pxi with a custom command
[2/9] Generating sklearn/neighbors/_ball_tree_pyx with a custom command
[3/9] Generating sklearn/neighbors/_kd_tree_pyx with a custom command
[4/9] Generating 'sklearn/neighbors/_ball_tree.cpython-312-x86_64-linux-musl.so.p/_ball_tree.c'
[5/9] Generating 'sklearn/neighbors/_kd_tree.cpython-312-x86_64-linux-musl.so.p/_kd_tree.c'
[6/9] Compiling C object sklearn/neighbors/_ball_tree.cpython-312-x86_64-linux-musl.so.p/meson-generated__ball_tree.c.o
``` | null | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33303/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33303/timeline | null | null | null | false | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/pulls/33303",
"html_url": "https://github.com/scikit-learn/scikit-learn/pull/33303",
"diff_url": "https://github.com/scikit-learn/scikit-learn/pull/33303.diff",
"patch_url": "https://github.com/scikit-learn/scikit-learn/pull/33303.patch",
"merged_at": null
} | true |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33301 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33301/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33301/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33301/events | https://github.com/scikit-learn/scikit-learn/pull/33301 | 3,953,469,478 | PR_kwDOAAzd1s7EZUR0 | 33,301 | MAINT Small refactor of common functions used by HTML displays | {
"login": "DeaMariaLeon",
"id": 11835246,
"node_id": "MDQ6VXNlcjExODM1MjQ2",
"avatar_url": "https://avatars.githubusercontent.com/u/11835246?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/DeaMariaLeon",
"html_url": "https://github.com/DeaMariaLeon",
"followers_url": "https://api.github.com/users/DeaMariaLeon/followers",
"following_url": "https://api.github.com/users/DeaMariaLeon/following{/other_user}",
"gists_url": "https://api.github.com/users/DeaMariaLeon/gists{/gist_id}",
"starred_url": "https://api.github.com/users/DeaMariaLeon/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/DeaMariaLeon/subscriptions",
"organizations_url": "https://api.github.com/users/DeaMariaLeon/orgs",
"repos_url": "https://api.github.com/users/DeaMariaLeon/repos",
"events_url": "https://api.github.com/users/DeaMariaLeon/events{/privacy}",
"received_events_url": "https://api.github.com/users/DeaMariaLeon/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 1815453311,
"node_id": "MDU6TGFiZWwxODE1NDUzMzEx",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/module:utils",
"name": "module:utils",
"color": "151e91",
"default": false,
"description": ""
},
{
"id": 2659863795,
"node_id": "MDU6TGFiZWwyNjU5OD... | closed | false | [] | null | 3 | 2026-02-17T15:55:20 | 2026-02-18T14:29:21 | 2026-02-18T14:22:30 | null | MEMBER | null | null | null | null | <!--
π Thanks for contributing a pull request!
π Please ensure you have taken a look at the contribution guidelines:
https://github.com/scikit-learn/scikit-learn/blob/main/CONTRIBUTING.md
β
In particular following the pull request checklist will increase the likelihood
of having maintainers review your PR:
https://scikit-learn.org/dev/developers/contributing.html#pull-request-checklist
π If your PR is likely to affect users, you will need to add a changelog entry
describing your PR changes, see:
https://github.com/scikit-learn/scikit-learn/blob/main/doc/whats_new/upcoming_changes/README.md
-->
#### Reference Issues/PRs
<!--
Example: Fixes #1234. See also #3456.
Please use keywords (e.g., Fixes) to create link to the issues or pull requests
you resolved, so that they will automatically be closed when your pull request
is merged. See https://github.com/blog/1506-closing-issues-via-pull-requests
-->
This refactoring was implemented on #31442, but I was asked to do it separately.
See [comment](https://github.com/scikit-learn/scikit-learn/pull/31442/changes#r2789352286)
#### What does this implement/fix? Explain your changes.
The functions in `sklearn/utils/_repr_html/_common.py` will be used by [future PRs that modify HTML displays](#31442) and #31937 for example.
#### AI usage disclosure
<!--
If AI tools were involved in creating this PR, please check all boxes that apply
below and make sure that you adhere to our Automated Contributions Policy:
https://scikit-learn.org/dev/developers/contributing.html#automated-contributions-policy
-->
I used AI assistance for:
- [ ] Code generation (e.g., when writing an implementation or fixing a bug)
- [ ] Test/benchmark generation
- [ ] Documentation (including examples)
- [ ] Research and understanding
#### Any other comments?
<!--
Thank you for your patience. Changes to scikit-learn require careful
attention, but with limited maintainer time, not every contribution can be reviewed
quickly.
For more information and tips on improving your pull request, see:
https://scikit-learn.org/dev/faq.html#why-is-my-pull-request-not-getting-any-attention.
Thanks for contributing!
-->
| {
"login": "jeremiedbb",
"id": 34657725,
"node_id": "MDQ6VXNlcjM0NjU3NzI1",
"avatar_url": "https://avatars.githubusercontent.com/u/34657725?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jeremiedbb",
"html_url": "https://github.com/jeremiedbb",
"followers_url": "https://api.github.com/users/jeremiedbb/followers",
"following_url": "https://api.github.com/users/jeremiedbb/following{/other_user}",
"gists_url": "https://api.github.com/users/jeremiedbb/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jeremiedbb/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jeremiedbb/subscriptions",
"organizations_url": "https://api.github.com/users/jeremiedbb/orgs",
"repos_url": "https://api.github.com/users/jeremiedbb/repos",
"events_url": "https://api.github.com/users/jeremiedbb/events{/privacy}",
"received_events_url": "https://api.github.com/users/jeremiedbb/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33301/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33301/timeline | null | null | null | false | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/pulls/33301",
"html_url": "https://github.com/scikit-learn/scikit-learn/pull/33301",
"diff_url": "https://github.com/scikit-learn/scikit-learn/pull/33301.diff",
"patch_url": "https://github.com/scikit-learn/scikit-learn/pull/33301.patch",
"merged_at": "2026-02-18T14:22:30"
} | true |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33300 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33300/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33300/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33300/events | https://github.com/scikit-learn/scikit-learn/pull/33300 | 3,952,891,437 | PR_kwDOAAzd1s7EXZSL | 33,300 | FIX: Set `levels` explicitly to plot all classes in distinct colors in `DecisionBoundaryDisplay` | {
"login": "AnneBeyer",
"id": 12881170,
"node_id": "MDQ6VXNlcjEyODgxMTcw",
"avatar_url": "https://avatars.githubusercontent.com/u/12881170?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/AnneBeyer",
"html_url": "https://github.com/AnneBeyer",
"followers_url": "https://api.github.com/users/AnneBeyer/followers",
"following_url": "https://api.github.com/users/AnneBeyer/following{/other_user}",
"gists_url": "https://api.github.com/users/AnneBeyer/gists{/gist_id}",
"starred_url": "https://api.github.com/users/AnneBeyer/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/AnneBeyer/subscriptions",
"organizations_url": "https://api.github.com/users/AnneBeyer/orgs",
"repos_url": "https://api.github.com/users/AnneBeyer/repos",
"events_url": "https://api.github.com/users/AnneBeyer/events{/privacy}",
"received_events_url": "https://api.github.com/users/AnneBeyer/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 1815444240,
"node_id": "MDU6TGFiZWwxODE1NDQ0MjQw",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/module:inspection",
"name": "module:inspection",
"color": "151e91",
"default": false,
"description": ""
},
{
"id": 4691539216,
"node_id": "LA_kwDOA... | closed | false | [] | null | 3 | 2026-02-17T13:54:58 | 2026-03-03T17:19:43 | 2026-02-25T14:42:13 | null | CONTRIBUTOR | null | null | null | null | <!--
π Thanks for contributing a pull request!
π Please ensure you have taken a look at the contribution guidelines:
https://github.com/scikit-learn/scikit-learn/blob/main/CONTRIBUTING.md
β
In particular following the pull request checklist will increase the likelihood
of having maintainers review your PR:
https://scikit-learn.org/dev/developers/contributing.html#pull-request-checklist
π If your PR is likely to affect users, you will need to add a changelog entry
describing your PR changes, see:
https://github.com/scikit-learn/scikit-learn/blob/main/doc/whats_new/upcoming_changes/README.md
-->
#### Reference Issues/PRs
<!--
Example: Fixes #1234. See also #3456.
Please use keywords (e.g., Fixes) to create link to the issues or pull requests
you resolved, so that they will automatically be closed when your pull request
is merged. See https://github.com/blog/1506-closing-issues-via-pull-requests
-->
Fixes #32866 (supersedes #32867)
#### What does this implement/fix? Explain your changes.
Continuing the proposed fix from #32867, this sets the `levels` parameter explicitly to the unique target values for `contour` and extends them for `contourf` with `response_method=predict` (the other `contourf` cases are handles differently by plotting every class on a different surface, so they're not affected by this bug). This ensures, that all classes (and class boundaries, respectively) are displayed in different colors.
Note that in #33015 we noticed that this can also occur when `n_classes < 7`. This happens because the default values for the levels don't necessarily correspond to the target classes. I used the data from the example in #33015 for the non-regression test here.
@ogrisel @lucyleeow @ThexXTURBOXx @leweex95
#### AI usage disclosure
<!--
If AI tools were involved in creating this PR, please check all boxes that apply
below and make sure that you adhere to our Automated Contributions Policy:
https://scikit-learn.org/dev/developers/contributing.html#automated-contributions-policy
-->
I used AI assistance for:
- [ ] Code generation (e.g., when writing an implementation or fixing a bug)
- [ ] Test/benchmark generation
- [ ] Documentation (including examples)
- [ ] Research and understanding
#### Any other comments?
<!--
Thank you for your patience. Changes to scikit-learn require careful
attention, but with limited maintainer time, not every contribution can be reviewed
quickly.
For more information and tips on improving your pull request, see:
https://scikit-learn.org/dev/faq.html#why-is-my-pull-request-not-getting-any-attention.
Thanks for contributing!
-->
| {
"login": "ogrisel",
"id": 89061,
"node_id": "MDQ6VXNlcjg5MDYx",
"avatar_url": "https://avatars.githubusercontent.com/u/89061?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ogrisel",
"html_url": "https://github.com/ogrisel",
"followers_url": "https://api.github.com/users/ogrisel/followers",
"following_url": "https://api.github.com/users/ogrisel/following{/other_user}",
"gists_url": "https://api.github.com/users/ogrisel/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ogrisel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ogrisel/subscriptions",
"organizations_url": "https://api.github.com/users/ogrisel/orgs",
"repos_url": "https://api.github.com/users/ogrisel/repos",
"events_url": "https://api.github.com/users/ogrisel/events{/privacy}",
"received_events_url": "https://api.github.com/users/ogrisel/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33300/reactions",
"total_count": 1,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 1,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33300/timeline | null | null | null | false | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/pulls/33300",
"html_url": "https://github.com/scikit-learn/scikit-learn/pull/33300",
"diff_url": "https://github.com/scikit-learn/scikit-learn/pull/33300.diff",
"patch_url": "https://github.com/scikit-learn/scikit-learn/pull/33300.patch",
"merged_at": "2026-02-25T14:42:13"
} | true |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33299 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33299/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33299/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33299/events | https://github.com/scikit-learn/scikit-learn/pull/33299 | 3,951,970,390 | PR_kwDOAAzd1s7EUTqA | 33,299 | DOC Remove deprecated SVC(probability=True) from examples | {
"login": "jeremiedbb",
"id": 34657725,
"node_id": "MDQ6VXNlcjM0NjU3NzI1",
"avatar_url": "https://avatars.githubusercontent.com/u/34657725?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jeremiedbb",
"html_url": "https://github.com/jeremiedbb",
"followers_url": "https://api.github.com/users/jeremiedbb/followers",
"following_url": "https://api.github.com/users/jeremiedbb/following{/other_user}",
"gists_url": "https://api.github.com/users/jeremiedbb/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jeremiedbb/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jeremiedbb/subscriptions",
"organizations_url": "https://api.github.com/users/jeremiedbb/orgs",
"repos_url": "https://api.github.com/users/jeremiedbb/repos",
"events_url": "https://api.github.com/users/jeremiedbb/events{/privacy}",
"received_events_url": "https://api.github.com/users/jeremiedbb/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 12995770,
"node_id": "MDU6TGFiZWwxMjk5NTc3MA==",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/Documentation",
"name": "Documentation",
"color": "0b02e1",
"default": false,
"description": null
}
] | closed | false | [] | null | 1 | 2026-02-17T10:14:39 | 2026-02-17T13:41:44 | 2026-02-17T13:41:44 | null | MEMBER | null | null | null | null | Forgot to do that before merging https://github.com/scikit-learn/scikit-learn/pull/32050.
@lesteve | {
"login": "lesteve",
"id": 1680079,
"node_id": "MDQ6VXNlcjE2ODAwNzk=",
"avatar_url": "https://avatars.githubusercontent.com/u/1680079?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/lesteve",
"html_url": "https://github.com/lesteve",
"followers_url": "https://api.github.com/users/lesteve/followers",
"following_url": "https://api.github.com/users/lesteve/following{/other_user}",
"gists_url": "https://api.github.com/users/lesteve/gists{/gist_id}",
"starred_url": "https://api.github.com/users/lesteve/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lesteve/subscriptions",
"organizations_url": "https://api.github.com/users/lesteve/orgs",
"repos_url": "https://api.github.com/users/lesteve/repos",
"events_url": "https://api.github.com/users/lesteve/events{/privacy}",
"received_events_url": "https://api.github.com/users/lesteve/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33299/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33299/timeline | null | null | null | false | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/pulls/33299",
"html_url": "https://github.com/scikit-learn/scikit-learn/pull/33299",
"diff_url": "https://github.com/scikit-learn/scikit-learn/pull/33299.diff",
"patch_url": "https://github.com/scikit-learn/scikit-learn/pull/33299.patch",
"merged_at": "2026-02-17T13:41:44"
} | true |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33298 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33298/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33298/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33298/events | https://github.com/scikit-learn/scikit-learn/pull/33298 | 3,951,027,518 | PR_kwDOAAzd1s7ERMvo | 33,298 | ENH: Add minimal type hints to Bunch class (__init__ and __setattr__) | {
"login": "Coredev-artisan",
"id": 132137242,
"node_id": "U_kgDOB-BBGg",
"avatar_url": "https://avatars.githubusercontent.com/u/132137242?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Coredev-artisan",
"html_url": "https://github.com/Coredev-artisan",
"followers_url": "https://api.github.com/users/Coredev-artisan/followers",
"following_url": "https://api.github.com/users/Coredev-artisan/following{/other_user}",
"gists_url": "https://api.github.com/users/Coredev-artisan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Coredev-artisan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Coredev-artisan/subscriptions",
"organizations_url": "https://api.github.com/users/Coredev-artisan/orgs",
"repos_url": "https://api.github.com/users/Coredev-artisan/repos",
"events_url": "https://api.github.com/users/Coredev-artisan/events{/privacy}",
"received_events_url": "https://api.github.com/users/Coredev-artisan/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 1815453311,
"node_id": "MDU6TGFiZWwxODE1NDUzMzEx",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/module:utils",
"name": "module:utils",
"color": "151e91",
"default": false,
"description": ""
}
] | closed | false | [] | null | 2 | 2026-02-17T06:14:41 | 2026-03-05T08:08:29 | 2026-02-17T09:02:35 | null | NONE | null | null | null | null | This PR adds minimal type hints to the Bunch class in sklearn/utils/_bunch.py.
- __init__(self, **kwargs: Any) -> None
- __setattr__(self, key: Any, value: Any) -> None
No runtime logic was changed. Inherited dict behavior is preserved.
All existing tests pass.
| {
"login": "jeremiedbb",
"id": 34657725,
"node_id": "MDQ6VXNlcjM0NjU3NzI1",
"avatar_url": "https://avatars.githubusercontent.com/u/34657725?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jeremiedbb",
"html_url": "https://github.com/jeremiedbb",
"followers_url": "https://api.github.com/users/jeremiedbb/followers",
"following_url": "https://api.github.com/users/jeremiedbb/following{/other_user}",
"gists_url": "https://api.github.com/users/jeremiedbb/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jeremiedbb/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jeremiedbb/subscriptions",
"organizations_url": "https://api.github.com/users/jeremiedbb/orgs",
"repos_url": "https://api.github.com/users/jeremiedbb/repos",
"events_url": "https://api.github.com/users/jeremiedbb/events{/privacy}",
"received_events_url": "https://api.github.com/users/jeremiedbb/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33298/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33298/timeline | null | null | null | false | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/pulls/33298",
"html_url": "https://github.com/scikit-learn/scikit-learn/pull/33298",
"diff_url": "https://github.com/scikit-learn/scikit-learn/pull/33298.diff",
"patch_url": "https://github.com/scikit-learn/scikit-learn/pull/33298.patch",
"merged_at": null
} | true |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33297 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33297/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33297/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33297/events | https://github.com/scikit-learn/scikit-learn/pull/33297 | 3,950,809,670 | PR_kwDOAAzd1s7EQe1P | 33,297 | DOC: Fix 'the the' typos in loss.py | {
"login": "DhyeyTeraiya",
"id": 190333801,
"node_id": "U_kgDOC1hDaQ",
"avatar_url": "https://avatars.githubusercontent.com/u/190333801?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/DhyeyTeraiya",
"html_url": "https://github.com/DhyeyTeraiya",
"followers_url": "https://api.github.com/users/DhyeyTeraiya/followers",
"following_url": "https://api.github.com/users/DhyeyTeraiya/following{/other_user}",
"gists_url": "https://api.github.com/users/DhyeyTeraiya/gists{/gist_id}",
"starred_url": "https://api.github.com/users/DhyeyTeraiya/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/DhyeyTeraiya/subscriptions",
"organizations_url": "https://api.github.com/users/DhyeyTeraiya/orgs",
"repos_url": "https://api.github.com/users/DhyeyTeraiya/repos",
"events_url": "https://api.github.com/users/DhyeyTeraiya/events{/privacy}",
"received_events_url": "https://api.github.com/users/DhyeyTeraiya/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 12995770,
"node_id": "MDU6TGFiZWwxMjk5NTc3MA==",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/Documentation",
"name": "Documentation",
"color": "0b02e1",
"default": false,
"description": null
},
{
"id": 1815445423,
"node_id": "MDU6TGFiZWwxODE1... | closed | false | [] | null | 0 | 2026-02-17T05:00:03 | 2026-02-17T10:22:23 | 2026-02-17T10:22:23 | null | CONTRIBUTOR | null | null | null | null | This PR fixes multiple 'the the' typos in docstrings and comments in sklearn/_loss/loss.py. | {
"login": "jeremiedbb",
"id": 34657725,
"node_id": "MDQ6VXNlcjM0NjU3NzI1",
"avatar_url": "https://avatars.githubusercontent.com/u/34657725?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jeremiedbb",
"html_url": "https://github.com/jeremiedbb",
"followers_url": "https://api.github.com/users/jeremiedbb/followers",
"following_url": "https://api.github.com/users/jeremiedbb/following{/other_user}",
"gists_url": "https://api.github.com/users/jeremiedbb/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jeremiedbb/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jeremiedbb/subscriptions",
"organizations_url": "https://api.github.com/users/jeremiedbb/orgs",
"repos_url": "https://api.github.com/users/jeremiedbb/repos",
"events_url": "https://api.github.com/users/jeremiedbb/events{/privacy}",
"received_events_url": "https://api.github.com/users/jeremiedbb/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33297/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33297/timeline | null | null | null | false | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/pulls/33297",
"html_url": "https://github.com/scikit-learn/scikit-learn/pull/33297",
"diff_url": "https://github.com/scikit-learn/scikit-learn/pull/33297.diff",
"patch_url": "https://github.com/scikit-learn/scikit-learn/pull/33297.patch",
"merged_at": "2026-02-17T10:22:23"
} | true |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33296 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33296/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33296/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33296/events | https://github.com/scikit-learn/scikit-learn/pull/33296 | 3,949,913,176 | PR_kwDOAAzd1s7ENhs5 | 33,296 | DOC Update california housing dataset URL | {
"login": "virchan",
"id": 25701849,
"node_id": "MDQ6VXNlcjI1NzAxODQ5",
"avatar_url": "https://avatars.githubusercontent.com/u/25701849?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/virchan",
"html_url": "https://github.com/virchan",
"followers_url": "https://api.github.com/users/virchan/followers",
"following_url": "https://api.github.com/users/virchan/following{/other_user}",
"gists_url": "https://api.github.com/users/virchan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/virchan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/virchan/subscriptions",
"organizations_url": "https://api.github.com/users/virchan/orgs",
"repos_url": "https://api.github.com/users/virchan/repos",
"events_url": "https://api.github.com/users/virchan/events{/privacy}",
"received_events_url": "https://api.github.com/users/virchan/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 12995770,
"node_id": "MDU6TGFiZWwxMjk5NTc3MA==",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/Documentation",
"name": "Documentation",
"color": "0b02e1",
"default": false,
"description": null
},
{
"id": 1815438229,
"node_id": "MDU6TGFiZWwxODE1... | closed | false | [] | null | 0 | 2026-02-16T23:02:48 | 2026-02-17T00:38:10 | 2026-02-17T00:38:10 | null | MEMBER | null | null | null | null | <!--
π Thanks for contributing a pull request!
π Please ensure you have taken a look at the contribution guidelines:
https://github.com/scikit-learn/scikit-learn/blob/main/CONTRIBUTING.md
β
In particular following the pull request checklist will increase the likelihood
of having maintainers review your PR:
https://scikit-learn.org/dev/developers/contributing.html#pull-request-checklist
π If your PR is likely to affect users, you will need to add a changelog entry
describing your PR changes, see:
https://github.com/scikit-learn/scikit-learn/blob/main/doc/whats_new/upcoming_changes/README.md
-->
#### Reference Issues/PRs
<!--
Example: Fixes #1234. See also #3456.
Please use keywords (e.g., Fixes) to create link to the issues or pull requests
you resolved, so that they will automatically be closed when your pull request
is merged. See https://github.com/blog/1506-closing-issues-via-pull-requests
-->
Fixes #33231.
#### What does this implement/fix? Explain your changes.
This PR updates the URL for the [California housing dataset](https://scikit-learn.org/stable/datasets/real_world.html#california-housing-dataset) to point to [StatLib](https://lib.stat.cmu.edu/), since the original University of Porto link returns a 504 error.
As alternatives, we could either:
1. Link to the Internet Archive.
2. Keep the original URL for reference and mention that it is now dead.
#### AI usage disclosure
<!--
If AI tools were involved in creating this PR, please check all boxes that apply
below and make sure that you adhere to our Automated Contributions Policy:
https://scikit-learn.org/dev/developers/contributing.html#automated-contributions-policy
-->
I used AI assistance for:
- [ ] Code generation (e.g., when writing an implementation or fixing a bug)
- [ ] Test/benchmark generation
- [ ] Documentation (including examples)
- [ ] Research and understanding
#### Any other comments?
I also noticed that the StatLib version has the columns in reverse order compared to the original version.
```python
updated = original[:, ::-1]
```
<!--
Thank you for your patience. Changes to scikit-learn require careful
attention, but with limited maintainer time, not every contribution can be reviewed
quickly.
For more information and tips on improving your pull request, see:
https://scikit-learn.org/dev/faq.html#why-is-my-pull-request-not-getting-any-attention.
Thanks for contributing!
-->
| {
"login": "lucyleeow",
"id": 23182829,
"node_id": "MDQ6VXNlcjIzMTgyODI5",
"avatar_url": "https://avatars.githubusercontent.com/u/23182829?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/lucyleeow",
"html_url": "https://github.com/lucyleeow",
"followers_url": "https://api.github.com/users/lucyleeow/followers",
"following_url": "https://api.github.com/users/lucyleeow/following{/other_user}",
"gists_url": "https://api.github.com/users/lucyleeow/gists{/gist_id}",
"starred_url": "https://api.github.com/users/lucyleeow/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lucyleeow/subscriptions",
"organizations_url": "https://api.github.com/users/lucyleeow/orgs",
"repos_url": "https://api.github.com/users/lucyleeow/repos",
"events_url": "https://api.github.com/users/lucyleeow/events{/privacy}",
"received_events_url": "https://api.github.com/users/lucyleeow/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33296/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33296/timeline | null | null | null | false | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/pulls/33296",
"html_url": "https://github.com/scikit-learn/scikit-learn/pull/33296",
"diff_url": "https://github.com/scikit-learn/scikit-learn/pull/33296.diff",
"patch_url": "https://github.com/scikit-learn/scikit-learn/pull/33296.patch",
"merged_at": "2026-02-17T00:38:10"
} | true |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33295 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33295/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33295/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33295/events | https://github.com/scikit-learn/scikit-learn/issues/33295 | 3,948,595,483 | I_kwDOAAzd1s7rWskb | 33,295 | BUG FeatureUnion's HTML Display incorrect when ColumnTransformer's remainder is a preprocessor | {
"login": "DeaMariaLeon",
"id": 11835246,
"node_id": "MDQ6VXNlcjExODM1MjQ2",
"avatar_url": "https://avatars.githubusercontent.com/u/11835246?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/DeaMariaLeon",
"html_url": "https://github.com/DeaMariaLeon",
"followers_url": "https://api.github.com/users/DeaMariaLeon/followers",
"following_url": "https://api.github.com/users/DeaMariaLeon/following{/other_user}",
"gists_url": "https://api.github.com/users/DeaMariaLeon/gists{/gist_id}",
"starred_url": "https://api.github.com/users/DeaMariaLeon/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/DeaMariaLeon/subscriptions",
"organizations_url": "https://api.github.com/users/DeaMariaLeon/orgs",
"repos_url": "https://api.github.com/users/DeaMariaLeon/repos",
"events_url": "https://api.github.com/users/DeaMariaLeon/events{/privacy}",
"received_events_url": "https://api.github.com/users/DeaMariaLeon/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 12995755,
"node_id": "MDU6TGFiZWwxMjk5NTc1NQ==",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/Bug",
"name": "Bug",
"color": "e10c02",
"default": false,
"description": null
},
{
"id": 2713617670,
"node_id": "MDU6TGFiZWwyNzEzNjE3Njcw",
"url"... | open | false | [] | null | 7 | 2026-02-16T16:36:10 | 2026-02-25T10:26:44 | null | null | MEMBER | null | null | {
"total": 0,
"completed": 0,
"percent_completed": 0
} | {
"blocked_by": 0,
"total_blocked_by": 0,
"blocking": 0,
"total_blocking": 0
} | ### Describe the bug and give evidence about its user-facing impact
The lines that should be the output of the FeatureUnion are incorrect in the HTML display.
See https://github.com/scikit-learn/scikit-learn/pull/31937#issuecomment-3908561441
### Steps/Code to Reproduce
```py
from sklearn.preprocessing import Normalizer
from sklearn.compose import ColumnTransformer
from sklearn.pipeline import FeatureUnion
from sklearn.preprocessing import MinMaxScaler, OneHotEncoder
ct = ColumnTransformer(transformers=[("norm1", Normalizer(), [0, 1])],
verbose_feature_names_out=True,
#remainder="drop",
remainder=MinMaxScaler(),
)
transformer_f = FeatureUnion(
[
("transformer1", ct),
("transformer2", ct),
],
)
transformer_f
```
### Expected Results
Similar to this, but showing the remainder (when I uncomment `remainder="drop"`, and comment `remainder=MinMaxScaler()` it shows the output lines correctly).
<img width="471" height="167" alt="Image" src="https://github.com/user-attachments/assets/99bfc2e3-9006-4b4a-8ba7-300d0bead304" />
### Actual Results
The lines of the bottom transformer are incorrect, plus they should be in parallel.
I think that also `ColumnTrasformer` should be shown besides the name of the transformer - but I need to check that.
<img width="476" height="286" alt="Image" src="https://github.com/user-attachments/assets/7dac87fb-dd0e-48a6-910e-d28dd32a4e7f" />
### Versions
```shell
System:
python: 3.13.9 | packaged by conda-forge | (main, Oct 22 2025, 23:38:18) [Clang 19.1.7 ]
executable: /Users/dealeon/mambaforge/envs/sklearn-dev/bin/python
machine: macOS-26.2-arm64-arm-64bit-Mach-O
Python dependencies:
sklearn: 1.9.dev0
pip: 25.3
setuptools: 80.9.0
numpy: 2.3.4
scipy: 1.16.3
Cython: 3.2.0
pandas: 2.3.3
matplotlib: 3.10.7
joblib: 1.5.2
threadpoolctl: 3.6.0
Built with OpenMP: True
threadpoolctl info:
user_api: blas
internal_api: openblas
num_threads: 8
prefix: libopenblas
filepath: /Users/dealeon/mambaforge/envs/sklearn-dev/lib/libopenblas.0.dylib
version: 0.3.30
threading_layer: openmp
architecture: VORTEX
user_api: openmp
internal_api: openmp
num_threads: 8
prefix: libomp
filepath: /Users/dealeon/mambaforge/envs/sklearn-dev/lib/libomp.dylib
version: None
```
### Interest in fixing the bug
Yes, I'm interested in taking a look at this. | null | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33295/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33295/timeline | null | null | null | null | null | false |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33294 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33294/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33294/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33294/events | https://github.com/scikit-learn/scikit-learn/issues/33294 | 3,948,220,606 | I_kwDOAAzd1s7rVRC- | 33,294 | `check_X_y` with list of dtypes converts polars 'X' incorrectly | {
"login": "david-cortes-intel",
"id": 180380222,
"node_id": "U_kgDOCsBiPg",
"avatar_url": "https://avatars.githubusercontent.com/u/180380222?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/david-cortes-intel",
"html_url": "https://github.com/david-cortes-intel",
"followers_url": "https://api.github.com/users/david-cortes-intel/followers",
"following_url": "https://api.github.com/users/david-cortes-intel/following{/other_user}",
"gists_url": "https://api.github.com/users/david-cortes-intel/gists{/gist_id}",
"starred_url": "https://api.github.com/users/david-cortes-intel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/david-cortes-intel/subscriptions",
"organizations_url": "https://api.github.com/users/david-cortes-intel/orgs",
"repos_url": "https://api.github.com/users/david-cortes-intel/repos",
"events_url": "https://api.github.com/users/david-cortes-intel/events{/privacy}",
"received_events_url": "https://api.github.com/users/david-cortes-intel/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 12995755,
"node_id": "MDU6TGFiZWwxMjk5NTc1NQ==",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/Bug",
"name": "Bug",
"color": "e10c02",
"default": false,
"description": null
},
{
"id": 3631152487,
"node_id": "LA_kwDOAAzd1s7Ybv1n",
"url": "ht... | open | false | [] | null | 3 | 2026-02-16T15:06:56 | 2026-02-18T22:49:43 | null | null | NONE | null | null | {
"total": 0,
"completed": 0,
"percent_completed": 0
} | {
"blocked_by": 0,
"total_blocked_by": 0,
"blocking": 0,
"total_blocking": 0
} | ### Describe the bug and give evidence about its user-facing impact
When passing polars inputs for `check_X_y` that have float32 types in columns, under the default argument `dtype="numeric"`, inputs are processed as expected (returns float32 arrays), but if passing instead a list as dtype argument where float64 comes first (e.g. `dtype=[np.float64, np.float32])`), then the 'X' argument will be converted to float64, while the 'y' argument is still processed correctly:
```python
import numpy as np
import polars as pl
from sklearn.utils.validation import check_X_y
X = (
pl.DataFrame({"col1": [1,2], "col2": [3,4]})
.with_columns(pl.all().cast(pl.Float32))
)
y = pl.Series([1,2], dtype=pl.Float32)
check_X_y(X, y, dtype=[np.float64, np.float32])[0].dtype
```
```
dtype('float64')
```
The issue doesn't seem to affect pandas objects though:
```python
check_X_y(X.to_pandas(), y.to_pandas(), dtype=[np.float64, np.float32])[0].dtype
```
```
dtype('float32')
```
### Steps/Code to Reproduce
```python
import numpy as np
import polars as pl
from sklearn.utils.validation import check_X_y
X = (
pl.DataFrame({"col1": [1,2], "col2": [3,4]})
.with_columns(pl.all().cast(pl.Float32))
)
y = pl.Series([1,2], dtype=pl.Float32)
check_X_y(X, y, dtype=[np.float64, np.float32])[0].dtype
```
### Expected Results
```
dtype('float32')
```
### Actual Results
```
dtype('float64')
```
### Versions
```shell
System:
python: 3.13.9 | packaged by conda-forge | (main, Oct 22 2025, 23:33:35) [GCC 14.3.0]
executable: <local path>/miniforge3/envs/dpnp18/bin/python
machine: Linux-6.8.0-49-generic-x86_64-with-glibc2.39
Python dependencies:
sklearn: 1.9.dev0
pip: 25.3
setuptools: 80.9.0
numpy: 2.3.5
scipy: 1.16.3
Cython: 3.2.2
pandas: 2.3.3
matplotlib: 3.10.7
joblib: 1.5.2
threadpoolctl: 3.6.0
Built with OpenMP: True
threadpoolctl info:
user_api: blas
internal_api: openblas
num_threads: 64
prefix: libscipy_openblas
filepath: <local path>/miniforge3/envs/dpnp18/lib/python3.13/site-packages/numpy.libs/libscipy_openblas64_-fdde5778.so
version: 0.3.30
threading_layer: pthreads
architecture: SkylakeX
user_api: blas
internal_api: openblas
num_threads: 64
prefix: libscipy_openblas
filepath: <local path>/miniforge3/envs/dpnp18/lib/python3.13/site-packages/scipy.libs/libscipy_openblas-b75cc656.so
version: 0.3.29.dev
threading_layer: pthreads
architecture: SkylakeX
user_api: openmp
internal_api: openmp
num_threads: 224
prefix: libomp
filepath: <local path>/miniforge3/envs/dpnp18/lib/libomp.so
version: None
```
### Interest in fixing the bug
No. | null | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33294/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33294/timeline | null | null | null | null | null | false |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33293 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33293/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33293/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33293/events | https://github.com/scikit-learn/scikit-learn/pull/33293 | 3,946,956,996 | PR_kwDOAAzd1s7EDogc | 33,293 | TST Work around free-threaded warnings race condition | {
"login": "lesteve",
"id": 1680079,
"node_id": "MDQ6VXNlcjE2ODAwNzk=",
"avatar_url": "https://avatars.githubusercontent.com/u/1680079?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/lesteve",
"html_url": "https://github.com/lesteve",
"followers_url": "https://api.github.com/users/lesteve/followers",
"following_url": "https://api.github.com/users/lesteve/following{/other_user}",
"gists_url": "https://api.github.com/users/lesteve/gists{/gist_id}",
"starred_url": "https://api.github.com/users/lesteve/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lesteve/subscriptions",
"organizations_url": "https://api.github.com/users/lesteve/orgs",
"repos_url": "https://api.github.com/users/lesteve/repos",
"events_url": "https://api.github.com/users/lesteve/events{/privacy}",
"received_events_url": "https://api.github.com/users/lesteve/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 1815448196,
"node_id": "MDU6TGFiZWwxODE1NDQ4MTk2",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/module:preprocessing",
"name": "module:preprocessing",
"color": "151e91",
"default": false,
"description": ""
},
{
"id": 2659863795,
"node_id": "MD... | closed | false | [] | null | 1 | 2026-02-16T10:09:15 | 2026-02-16T15:43:33 | 2026-02-16T15:43:33 | null | MEMBER | null | null | null | null | This happens because the warning is emitted twice, once outside a `pytest.warns` context and once inside. There is some kind of race condition with the per-module `__warningregistry__` which is used to issue a warning only once (default behaviour).
The work-around is to make sure the first warnings also happens withing a `pytest.warns`.
See https://github.com/Quansight-Labs/pytest-run-parallel/issues/169 for more details.
With this work-around the test passes on my machine:
```
pytest sklearn/preprocessing/tests/test_encoders.py -k test_onehotencoder_handle_unknown_warn_maps_to_infrequent --parallel-threads 4 --iterations 500
```
This was seen in https://github.com/scikit-learn/scikit-learn/pull/33245. | {
"login": "lesteve",
"id": 1680079,
"node_id": "MDQ6VXNlcjE2ODAwNzk=",
"avatar_url": "https://avatars.githubusercontent.com/u/1680079?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/lesteve",
"html_url": "https://github.com/lesteve",
"followers_url": "https://api.github.com/users/lesteve/followers",
"following_url": "https://api.github.com/users/lesteve/following{/other_user}",
"gists_url": "https://api.github.com/users/lesteve/gists{/gist_id}",
"starred_url": "https://api.github.com/users/lesteve/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lesteve/subscriptions",
"organizations_url": "https://api.github.com/users/lesteve/orgs",
"repos_url": "https://api.github.com/users/lesteve/repos",
"events_url": "https://api.github.com/users/lesteve/events{/privacy}",
"received_events_url": "https://api.github.com/users/lesteve/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33293/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33293/timeline | null | null | null | false | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/pulls/33293",
"html_url": "https://github.com/scikit-learn/scikit-learn/pull/33293",
"diff_url": "https://github.com/scikit-learn/scikit-learn/pull/33293.diff",
"patch_url": "https://github.com/scikit-learn/scikit-learn/pull/33293.patch",
"merged_at": "2026-02-16T15:43:33"
} | true |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33292 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33292/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33292/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33292/events | https://github.com/scikit-learn/scikit-learn/issues/33292 | 3,946,944,987 | I_kwDOAAzd1s7rQZnb | 33,292 | Variational Gaussian Process | {
"login": "UnixJunkie",
"id": 737920,
"node_id": "MDQ6VXNlcjczNzkyMA==",
"avatar_url": "https://avatars.githubusercontent.com/u/737920?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/UnixJunkie",
"html_url": "https://github.com/UnixJunkie",
"followers_url": "https://api.github.com/users/UnixJunkie/followers",
"following_url": "https://api.github.com/users/UnixJunkie/following{/other_user}",
"gists_url": "https://api.github.com/users/UnixJunkie/gists{/gist_id}",
"starred_url": "https://api.github.com/users/UnixJunkie/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/UnixJunkie/subscriptions",
"organizations_url": "https://api.github.com/users/UnixJunkie/orgs",
"repos_url": "https://api.github.com/users/UnixJunkie/repos",
"events_url": "https://api.github.com/users/UnixJunkie/events{/privacy}",
"received_events_url": "https://api.github.com/users/UnixJunkie/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 12995756,
"node_id": "MDU6TGFiZWwxMjk5NTc1Ng==",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/New%20Feature",
"name": "New Feature",
"color": "02e10c",
"default": false,
"description": null
},
{
"id": 1314220606,
"node_id": "MDU6TGFiZWwxMzE0Mj... | open | false | [] | null | 2 | 2026-02-16T10:06:13 | 2026-02-16T10:55:57 | null | null | CONTRIBUTOR | null | null | {
"total": 0,
"completed": 0,
"percent_completed": 0
} | {
"blocked_by": 0,
"total_blocked_by": 0,
"blocking": 0,
"total_blocking": 0
} | ### Describe the workflow you want to enable
Hello,
sklearn.gaussian_process.GaussianProcessRegressor
does not scale to large datasets.
Apparently, VGP would:
https://arxiv.org/pdf/1511.06499
Regards,
Francois.
### Describe your proposed solution
Implement VGP.
### Describe alternatives you've considered, if relevant
No open-source Python implementation, to the best of my knowledge.
### Additional context
_No response_ | null | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33292/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33292/timeline | null | null | null | null | null | false |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33291 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33291/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33291/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33291/events | https://github.com/scikit-learn/scikit-learn/pull/33291 | 3,945,971,660 | PR_kwDOAAzd1s7EAaHc | 33,291 | :lock: :robot: CI Update lock files for main CI build(s) :lock: :robot: | {
"login": "scikit-learn-bot",
"id": 8699527,
"node_id": "MDQ6VXNlcjg2OTk1Mjc=",
"avatar_url": "https://avatars.githubusercontent.com/u/8699527?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/scikit-learn-bot",
"html_url": "https://github.com/scikit-learn-bot",
"followers_url": "https://api.github.com/users/scikit-learn-bot/followers",
"following_url": "https://api.github.com/users/scikit-learn-bot/following{/other_user}",
"gists_url": "https://api.github.com/users/scikit-learn-bot/gists{/gist_id}",
"starred_url": "https://api.github.com/users/scikit-learn-bot/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/scikit-learn-bot/subscriptions",
"organizations_url": "https://api.github.com/users/scikit-learn-bot/orgs",
"repos_url": "https://api.github.com/users/scikit-learn-bot/repos",
"events_url": "https://api.github.com/users/scikit-learn-bot/events{/privacy}",
"received_events_url": "https://api.github.com/users/scikit-learn-bot/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 55523804,
"node_id": "MDU6TGFiZWw1NTUyMzgwNA==",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/Build%20/%20CI",
"name": "Build / CI",
"color": "eb6420",
"default": false,
"description": null
}
] | closed | false | [] | null | 0 | 2026-02-16T05:34:01 | 2026-02-16T09:20:27 | 2026-02-16T09:20:27 | null | CONTRIBUTOR | null | null | null | null | Update lock files.
### Note
If the CI tasks fail, create a new branch based on this PR and add the required fixes to that branch. | {
"login": "ogrisel",
"id": 89061,
"node_id": "MDQ6VXNlcjg5MDYx",
"avatar_url": "https://avatars.githubusercontent.com/u/89061?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ogrisel",
"html_url": "https://github.com/ogrisel",
"followers_url": "https://api.github.com/users/ogrisel/followers",
"following_url": "https://api.github.com/users/ogrisel/following{/other_user}",
"gists_url": "https://api.github.com/users/ogrisel/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ogrisel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ogrisel/subscriptions",
"organizations_url": "https://api.github.com/users/ogrisel/orgs",
"repos_url": "https://api.github.com/users/ogrisel/repos",
"events_url": "https://api.github.com/users/ogrisel/events{/privacy}",
"received_events_url": "https://api.github.com/users/ogrisel/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33291/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33291/timeline | null | null | null | false | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/pulls/33291",
"html_url": "https://github.com/scikit-learn/scikit-learn/pull/33291",
"diff_url": "https://github.com/scikit-learn/scikit-learn/pull/33291.diff",
"patch_url": "https://github.com/scikit-learn/scikit-learn/pull/33291.patch",
"merged_at": "2026-02-16T09:20:27"
} | true |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33290 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33290/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33290/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33290/events | https://github.com/scikit-learn/scikit-learn/pull/33290 | 3,945,963,155 | PR_kwDOAAzd1s7EAYXz | 33,290 | :lock: :robot: CI Update lock files for array-api CI build(s) :lock: :robot: | {
"login": "scikit-learn-bot",
"id": 8699527,
"node_id": "MDQ6VXNlcjg2OTk1Mjc=",
"avatar_url": "https://avatars.githubusercontent.com/u/8699527?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/scikit-learn-bot",
"html_url": "https://github.com/scikit-learn-bot",
"followers_url": "https://api.github.com/users/scikit-learn-bot/followers",
"following_url": "https://api.github.com/users/scikit-learn-bot/following{/other_user}",
"gists_url": "https://api.github.com/users/scikit-learn-bot/gists{/gist_id}",
"starred_url": "https://api.github.com/users/scikit-learn-bot/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/scikit-learn-bot/subscriptions",
"organizations_url": "https://api.github.com/users/scikit-learn-bot/orgs",
"repos_url": "https://api.github.com/users/scikit-learn-bot/repos",
"events_url": "https://api.github.com/users/scikit-learn-bot/events{/privacy}",
"received_events_url": "https://api.github.com/users/scikit-learn-bot/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 55523804,
"node_id": "MDU6TGFiZWw1NTUyMzgwNA==",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/Build%20/%20CI",
"name": "Build / CI",
"color": "eb6420",
"default": false,
"description": null
}
] | closed | false | [] | null | 0 | 2026-02-16T05:30:54 | 2026-02-16T09:19:10 | 2026-02-16T09:19:10 | null | CONTRIBUTOR | null | null | null | null | Update lock files.
### Note
If the CI tasks fail, create a new branch based on this PR and add the required fixes to that branch. | {
"login": "ogrisel",
"id": 89061,
"node_id": "MDQ6VXNlcjg5MDYx",
"avatar_url": "https://avatars.githubusercontent.com/u/89061?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ogrisel",
"html_url": "https://github.com/ogrisel",
"followers_url": "https://api.github.com/users/ogrisel/followers",
"following_url": "https://api.github.com/users/ogrisel/following{/other_user}",
"gists_url": "https://api.github.com/users/ogrisel/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ogrisel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ogrisel/subscriptions",
"organizations_url": "https://api.github.com/users/ogrisel/orgs",
"repos_url": "https://api.github.com/users/ogrisel/repos",
"events_url": "https://api.github.com/users/ogrisel/events{/privacy}",
"received_events_url": "https://api.github.com/users/ogrisel/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33290/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33290/timeline | null | null | null | false | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/pulls/33290",
"html_url": "https://github.com/scikit-learn/scikit-learn/pull/33290",
"diff_url": "https://github.com/scikit-learn/scikit-learn/pull/33290.diff",
"patch_url": "https://github.com/scikit-learn/scikit-learn/pull/33290.patch",
"merged_at": "2026-02-16T09:19:10"
} | true |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33289 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33289/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33289/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33289/events | https://github.com/scikit-learn/scikit-learn/pull/33289 | 3,945,962,199 | PR_kwDOAAzd1s7EAYLF | 33,289 | :lock: :robot: CI Update lock files for scipy-dev CI build(s) :lock: :robot: | {
"login": "scikit-learn-bot",
"id": 8699527,
"node_id": "MDQ6VXNlcjg2OTk1Mjc=",
"avatar_url": "https://avatars.githubusercontent.com/u/8699527?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/scikit-learn-bot",
"html_url": "https://github.com/scikit-learn-bot",
"followers_url": "https://api.github.com/users/scikit-learn-bot/followers",
"following_url": "https://api.github.com/users/scikit-learn-bot/following{/other_user}",
"gists_url": "https://api.github.com/users/scikit-learn-bot/gists{/gist_id}",
"starred_url": "https://api.github.com/users/scikit-learn-bot/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/scikit-learn-bot/subscriptions",
"organizations_url": "https://api.github.com/users/scikit-learn-bot/orgs",
"repos_url": "https://api.github.com/users/scikit-learn-bot/repos",
"events_url": "https://api.github.com/users/scikit-learn-bot/events{/privacy}",
"received_events_url": "https://api.github.com/users/scikit-learn-bot/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 55523804,
"node_id": "MDU6TGFiZWw1NTUyMzgwNA==",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/Build%20/%20CI",
"name": "Build / CI",
"color": "eb6420",
"default": false,
"description": null
}
] | closed | false | [] | null | 0 | 2026-02-16T05:30:28 | 2026-02-16T09:14:54 | 2026-02-16T09:14:54 | null | CONTRIBUTOR | null | null | null | null | Update lock files.
### Note
If the CI tasks fail, create a new branch based on this PR and add the required fixes to that branch. | {
"login": "ogrisel",
"id": 89061,
"node_id": "MDQ6VXNlcjg5MDYx",
"avatar_url": "https://avatars.githubusercontent.com/u/89061?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ogrisel",
"html_url": "https://github.com/ogrisel",
"followers_url": "https://api.github.com/users/ogrisel/followers",
"following_url": "https://api.github.com/users/ogrisel/following{/other_user}",
"gists_url": "https://api.github.com/users/ogrisel/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ogrisel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ogrisel/subscriptions",
"organizations_url": "https://api.github.com/users/ogrisel/orgs",
"repos_url": "https://api.github.com/users/ogrisel/repos",
"events_url": "https://api.github.com/users/ogrisel/events{/privacy}",
"received_events_url": "https://api.github.com/users/ogrisel/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33289/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33289/timeline | null | null | null | false | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/pulls/33289",
"html_url": "https://github.com/scikit-learn/scikit-learn/pull/33289",
"diff_url": "https://github.com/scikit-learn/scikit-learn/pull/33289.diff",
"patch_url": "https://github.com/scikit-learn/scikit-learn/pull/33289.patch",
"merged_at": "2026-02-16T09:14:54"
} | true |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33288 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33288/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33288/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33288/events | https://github.com/scikit-learn/scikit-learn/issues/33288 | 3,945,717,305 | I_kwDOAAzd1s7rLt45 | 33,288 | β οΈ CI failed on Unit tests Linux i386 debian_32bit (last failure: Feb 16, 2026) β οΈ | {
"login": "scikit-learn-bot",
"id": 8699527,
"node_id": "MDQ6VXNlcjg2OTk1Mjc=",
"avatar_url": "https://avatars.githubusercontent.com/u/8699527?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/scikit-learn-bot",
"html_url": "https://github.com/scikit-learn-bot",
"followers_url": "https://api.github.com/users/scikit-learn-bot/followers",
"following_url": "https://api.github.com/users/scikit-learn-bot/following{/other_user}",
"gists_url": "https://api.github.com/users/scikit-learn-bot/gists{/gist_id}",
"starred_url": "https://api.github.com/users/scikit-learn-bot/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/scikit-learn-bot/subscriptions",
"organizations_url": "https://api.github.com/users/scikit-learn-bot/orgs",
"repos_url": "https://api.github.com/users/scikit-learn-bot/repos",
"events_url": "https://api.github.com/users/scikit-learn-bot/events{/privacy}",
"received_events_url": "https://api.github.com/users/scikit-learn-bot/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [] | closed | false | [] | null | 4 | 2026-02-16T03:42:49 | 2026-02-19T09:09:08 | 2026-02-19T09:09:08 | null | CONTRIBUTOR | null | null | {
"total": 0,
"completed": 0,
"percent_completed": 0
} | {
"blocked_by": 0,
"total_blocked_by": 0,
"blocking": 0,
"total_blocking": 0
} | **CI failed on [Unit tests Linux i386 debian_32bit](https://github.com/scikit-learn/scikit-learn/actions/runs/22049138570/job/63703557728)** (Feb 16, 2026)
- test_spectral_biclustering[97-csr_matrix]
- test_spectral_biclustering[97-csr_array] | {
"login": "lesteve",
"id": 1680079,
"node_id": "MDQ6VXNlcjE2ODAwNzk=",
"avatar_url": "https://avatars.githubusercontent.com/u/1680079?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/lesteve",
"html_url": "https://github.com/lesteve",
"followers_url": "https://api.github.com/users/lesteve/followers",
"following_url": "https://api.github.com/users/lesteve/following{/other_user}",
"gists_url": "https://api.github.com/users/lesteve/gists{/gist_id}",
"starred_url": "https://api.github.com/users/lesteve/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lesteve/subscriptions",
"organizations_url": "https://api.github.com/users/lesteve/orgs",
"repos_url": "https://api.github.com/users/lesteve/repos",
"events_url": "https://api.github.com/users/lesteve/events{/privacy}",
"received_events_url": "https://api.github.com/users/lesteve/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33288/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33288/timeline | null | completed | null | null | null | false |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33287 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33287/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33287/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33287/events | https://github.com/scikit-learn/scikit-learn/pull/33287 | 3,945,024,471 | PR_kwDOAAzd1s7D9XgG | 33,287 | ENH Add Huber loss for HistGradientBoostingRegressor | {
"login": "ManasVardhan",
"id": 52193379,
"node_id": "MDQ6VXNlcjUyMTkzMzc5",
"avatar_url": "https://avatars.githubusercontent.com/u/52193379?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ManasVardhan",
"html_url": "https://github.com/ManasVardhan",
"followers_url": "https://api.github.com/users/ManasVardhan/followers",
"following_url": "https://api.github.com/users/ManasVardhan/following{/other_user}",
"gists_url": "https://api.github.com/users/ManasVardhan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ManasVardhan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ManasVardhan/subscriptions",
"organizations_url": "https://api.github.com/users/ManasVardhan/orgs",
"repos_url": "https://api.github.com/users/ManasVardhan/repos",
"events_url": "https://api.github.com/users/ManasVardhan/events{/privacy}",
"received_events_url": "https://api.github.com/users/ManasVardhan/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 1815440243,
"node_id": "MDU6TGFiZWwxODE1NDQwMjQz",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/module:ensemble",
"name": "module:ensemble",
"color": "151e91",
"default": false,
"description": ""
}
] | open | false | [] | null | 0 | 2026-02-15T22:03:11 | 2026-02-15T22:34:26 | null | null | NONE | null | null | null | null | ## What does this implement/fix?
Adds support for , bringing it to feature parity with which already supports Huber loss.
Closes #31542
## How does it work?
The Huber loss is a robust loss that is quadratic for small residuals and linear for large ones, controlled by a threshold parameter `delta`. Following Friedman (2001) *"Greedy Function Approximation: A Gradient Boosting Machine"*, `delta` is re-estimated at each boosting iteration as the `quantile`-th percentile of the absolute residuals (default 0.9).
### Implementation details:
- **Leverages existing `HuberLoss` class** from `sklearn._loss.loss` which already has Cython-optimized gradient/hessian computation (`CyHuberLoss`), `need_update_leaves_values = True` (line search via `fit_intercept_only`), and `differentiable = False` (triggers `_update_leaves_values` in the training loop).
- **Per-iteration delta estimation** is done in the HGBT training loop (before gradient computation), updating `self._loss.closs.delta` to the quantile of absolute residuals. This follows the same approach as `GradientBoostingRegressor`'s `HuberLossFunction.negative_gradient()`.
- **Reuses the `quantile` parameter** already present on `HistGradientBoostingRegressor` (used for PinballLoss). For Huber loss, it controls the percentile used for delta estimation (default 0.9 if not specified).
- **Supports sample weights** β delta estimation uses `_weighted_percentile` when sample weights are provided.
### Key design decision:
Per @lorentzenchr's guidance in the issue discussion, this implements **true Huber loss** (not pseudo-Huber), consistent with `GradientBoostingRegressor` and `HuberRegressor`. The loss is not smooth at the transition point, so it uses line search (like `absolute_error` and `quantile` losses already do).
## Tests
Added 4 new tests:
- `test_huber`: Verifies Huber loss is more robust to outliers than squared error
- `test_huber_sample_weight`: Tests with sample weights
- `test_huber_quantile_parameter`: Tests that quantile parameter affects behavior
- `test_huber_early_stopping`: Tests early stopping integration
All existing tests pass (153 passed, 16 skipped).
| null | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33287/reactions",
"total_count": 1,
"+1": 1,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33287/timeline | null | null | null | false | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/pulls/33287",
"html_url": "https://github.com/scikit-learn/scikit-learn/pull/33287",
"diff_url": "https://github.com/scikit-learn/scikit-learn/pull/33287.diff",
"patch_url": "https://github.com/scikit-learn/scikit-learn/pull/33287.patch",
"merged_at": null
} | true |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33286 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33286/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33286/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33286/events | https://github.com/scikit-learn/scikit-learn/pull/33286 | 3,943,344,133 | PR_kwDOAAzd1s7D4Cq2 | 33,286 | DOC update California housing source link | {
"login": "pdwi2020",
"id": 73585231,
"node_id": "MDQ6VXNlcjczNTg1MjMx",
"avatar_url": "https://avatars.githubusercontent.com/u/73585231?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/pdwi2020",
"html_url": "https://github.com/pdwi2020",
"followers_url": "https://api.github.com/users/pdwi2020/followers",
"following_url": "https://api.github.com/users/pdwi2020/following{/other_user}",
"gists_url": "https://api.github.com/users/pdwi2020/gists{/gist_id}",
"starred_url": "https://api.github.com/users/pdwi2020/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/pdwi2020/subscriptions",
"organizations_url": "https://api.github.com/users/pdwi2020/orgs",
"repos_url": "https://api.github.com/users/pdwi2020/repos",
"events_url": "https://api.github.com/users/pdwi2020/events{/privacy}",
"received_events_url": "https://api.github.com/users/pdwi2020/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 12995770,
"node_id": "MDU6TGFiZWwxMjk5NTc3MA==",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/Documentation",
"name": "Documentation",
"color": "0b02e1",
"default": false,
"description": null
},
{
"id": 1815438229,
"node_id": "MDU6TGFiZWwxODE1... | closed | false | [] | null | 0 | 2026-02-15T07:10:29 | 2026-02-15T07:58:32 | 2026-02-15T07:58:32 | null | NONE | null | null | null | null | ## Summary
- replace the broken California housing source URL in the dataset description with the StatLib repository URL
- update the source comment in `sklearn/datasets/_california_housing.py` accordingly
## Why
Issue #33231 reports that the old URL times out and is no longer reliably reachable.
Closes #33231
| {
"login": "virchan",
"id": 25701849,
"node_id": "MDQ6VXNlcjI1NzAxODQ5",
"avatar_url": "https://avatars.githubusercontent.com/u/25701849?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/virchan",
"html_url": "https://github.com/virchan",
"followers_url": "https://api.github.com/users/virchan/followers",
"following_url": "https://api.github.com/users/virchan/following{/other_user}",
"gists_url": "https://api.github.com/users/virchan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/virchan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/virchan/subscriptions",
"organizations_url": "https://api.github.com/users/virchan/orgs",
"repos_url": "https://api.github.com/users/virchan/repos",
"events_url": "https://api.github.com/users/virchan/events{/privacy}",
"received_events_url": "https://api.github.com/users/virchan/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33286/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33286/timeline | null | null | null | false | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/pulls/33286",
"html_url": "https://github.com/scikit-learn/scikit-learn/pull/33286",
"diff_url": "https://github.com/scikit-learn/scikit-learn/pull/33286.diff",
"patch_url": "https://github.com/scikit-learn/scikit-learn/pull/33286.patch",
"merged_at": null
} | true |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33285 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33285/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33285/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33285/events | https://github.com/scikit-learn/scikit-learn/pull/33285 | 3,942,659,811 | PR_kwDOAAzd1s7D10mI | 33,285 | FIX Metadata routing in `learning_curve` and module tests | {
"login": "StefanieSenger",
"id": 91849487,
"node_id": "U_kgDOBXmDDw",
"avatar_url": "https://avatars.githubusercontent.com/u/91849487?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/StefanieSenger",
"html_url": "https://github.com/StefanieSenger",
"followers_url": "https://api.github.com/users/StefanieSenger/followers",
"following_url": "https://api.github.com/users/StefanieSenger/following{/other_user}",
"gists_url": "https://api.github.com/users/StefanieSenger/gists{/gist_id}",
"starred_url": "https://api.github.com/users/StefanieSenger/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/StefanieSenger/subscriptions",
"organizations_url": "https://api.github.com/users/StefanieSenger/orgs",
"repos_url": "https://api.github.com/users/StefanieSenger/repos",
"events_url": "https://api.github.com/users/StefanieSenger/events{/privacy}",
"received_events_url": "https://api.github.com/users/StefanieSenger/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 1815446740,
"node_id": "MDU6TGFiZWwxODE1NDQ2NzQw",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/module:model_selection",
"name": "module:model_selection",
"color": "151e91",
"default": false,
"description": ""
},
{
"id": 5434156251,
"node_id":... | open | false | [] | null | 1 | 2026-02-15T00:20:48 | 2026-02-18T11:10:08 | null | null | MEMBER | null | null | null | null | #### Reference Issues/PRs
closes #33283
also related to #28975
#### What does this implement/fix? Explain your changes.
This fixes metadata routing in `learning_curve` and the metadata routing tests in `sklearn/model_selection/tests/test_validation.py`.
1. bug
With `exploit_incremental_learning=True` we call the estimator's `partial_fit` method via `_incremental_fit_estimator`. In this process, `sample_weight` in both `fit_params` and `score_params` need to get split following the same rules as `X` and `y`. Both was not done correctly before.
2. bug
The metadata routing tests for the validation module were broken. For instance, for `learning_curve`, `record_metadata` records `_fit_and_score` instead of `fit`, `_score` instead of `score` and `_incremental_fit_estimator` instead of `partial_fit` and thus `check_recorded_metadata` compared empty with empty. I have now passed the correct function names to `check_recorded_metadata`.
#### AI usage disclosure
<!--
If AI tools were involved in creating this PR, please check all boxes that apply
below and make sure that you adhere to our Automated Contributions Policy:
https://scikit-learn.org/dev/developers/contributing.html#automated-contributions-policy
-->
I used AI assistance for:
- [ ] Code generation (e.g., when writing an implementation or fixing a bug)
- [ ] Test/benchmark generation
- [ ] Documentation (including examples)
- [x] Research and understanding
| null | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33285/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33285/timeline | null | null | null | false | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/pulls/33285",
"html_url": "https://github.com/scikit-learn/scikit-learn/pull/33285",
"diff_url": "https://github.com/scikit-learn/scikit-learn/pull/33285.diff",
"patch_url": "https://github.com/scikit-learn/scikit-learn/pull/33285.patch",
"merged_at": null
} | true |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33284 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33284/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33284/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33284/events | https://github.com/scikit-learn/scikit-learn/pull/33284 | 3,942,600,594 | PR_kwDOAAzd1s7D1oPH | 33,284 | FIX score_params subset mismatch in learning_curve with incremental learning | {
"login": "juanf-0gravity",
"id": 93880186,
"node_id": "U_kgDOBZh_eg",
"avatar_url": "https://avatars.githubusercontent.com/u/93880186?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/juanf-0gravity",
"html_url": "https://github.com/juanf-0gravity",
"followers_url": "https://api.github.com/users/juanf-0gravity/followers",
"following_url": "https://api.github.com/users/juanf-0gravity/following{/other_user}",
"gists_url": "https://api.github.com/users/juanf-0gravity/gists{/gist_id}",
"starred_url": "https://api.github.com/users/juanf-0gravity/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/juanf-0gravity/subscriptions",
"organizations_url": "https://api.github.com/users/juanf-0gravity/orgs",
"repos_url": "https://api.github.com/users/juanf-0gravity/repos",
"events_url": "https://api.github.com/users/juanf-0gravity/events{/privacy}",
"received_events_url": "https://api.github.com/users/juanf-0gravity/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 1815446740,
"node_id": "MDU6TGFiZWwxODE1NDQ2NzQw",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/module:model_selection",
"name": "module:model_selection",
"color": "151e91",
"default": false,
"description": ""
},
{
"id": 5434156251,
"node_id":... | closed | false | [] | null | 0 | 2026-02-14T23:44:48 | 2026-02-16T12:30:06 | 2026-02-16T12:30:06 | null | NONE | null | null | null | null | #### Reference Issues/PRs
Fixes #33283.
#### What does this implement/fix? Explain your changes.
When using `learning_curve` with `exploit_incremental_learning=True` and passing scorer metadata (e.g. `sample_weight`) via the routing API, all training scores except the last come back as NaN.
The problem is in `_incremental_fit_estimator` β `score_params_train` gets sliced once outside the loop with the full `train` indices, but `X_train` inside the loop uses `train_subset = train[:n_train_samples]` which grows each iteration. So you end up passing 100-element weights to a scorer that only has 30 samples, it throws, `_score` catches it and returns NaN.
The fix just moves that one `_check_method_params` call inside the loop so it slices with `train_subset` instead of `train`. `score_params_test` stays outside since the test set doesn't change.
Also added a regression test that reproduces the exact scenario from the issue β confirmed it fails on main and passes with the fix.
#### AI usage disclosure
- [ ] Code generation (e.g., when writing an implementation or fixing a bug)
- [ ] Test/benchmark generation
- [ ] Documentation (including examples)
- [ ] Research and understanding
#### Any other comments?
Noticed this was introduced in 77fc72c39 when metadata routing was added to `learning_curve` β the pattern was likely copied from `_fit_and_score` where it works fine because `train` indices aren't further subsetted in a loop. | {
"login": "adrinjalali",
"id": 1663864,
"node_id": "MDQ6VXNlcjE2NjM4NjQ=",
"avatar_url": "https://avatars.githubusercontent.com/u/1663864?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/adrinjalali",
"html_url": "https://github.com/adrinjalali",
"followers_url": "https://api.github.com/users/adrinjalali/followers",
"following_url": "https://api.github.com/users/adrinjalali/following{/other_user}",
"gists_url": "https://api.github.com/users/adrinjalali/gists{/gist_id}",
"starred_url": "https://api.github.com/users/adrinjalali/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/adrinjalali/subscriptions",
"organizations_url": "https://api.github.com/users/adrinjalali/orgs",
"repos_url": "https://api.github.com/users/adrinjalali/repos",
"events_url": "https://api.github.com/users/adrinjalali/events{/privacy}",
"received_events_url": "https://api.github.com/users/adrinjalali/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33284/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33284/timeline | null | null | null | false | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/pulls/33284",
"html_url": "https://github.com/scikit-learn/scikit-learn/pull/33284",
"diff_url": "https://github.com/scikit-learn/scikit-learn/pull/33284.diff",
"patch_url": "https://github.com/scikit-learn/scikit-learn/pull/33284.patch",
"merged_at": null
} | true |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33283 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33283/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33283/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33283/events | https://github.com/scikit-learn/scikit-learn/issues/33283 | 3,941,565,943 | I_kwDOAAzd1s7q74X3 | 33,283 | learning_curve with exploit_incremental_learning=True fails to compute training scores when sample_weight is provided | {
"login": "atheendre130505",
"id": 144999593,
"node_id": "U_kgDOCKSEqQ",
"avatar_url": "https://avatars.githubusercontent.com/u/144999593?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/atheendre130505",
"html_url": "https://github.com/atheendre130505",
"followers_url": "https://api.github.com/users/atheendre130505/followers",
"following_url": "https://api.github.com/users/atheendre130505/following{/other_user}",
"gists_url": "https://api.github.com/users/atheendre130505/gists{/gist_id}",
"starred_url": "https://api.github.com/users/atheendre130505/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/atheendre130505/subscriptions",
"organizations_url": "https://api.github.com/users/atheendre130505/orgs",
"repos_url": "https://api.github.com/users/atheendre130505/repos",
"events_url": "https://api.github.com/users/atheendre130505/events{/privacy}",
"received_events_url": "https://api.github.com/users/atheendre130505/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 12995755,
"node_id": "MDU6TGFiZWwxMjk5NTc1NQ==",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/Bug",
"name": "Bug",
"color": "e10c02",
"default": false,
"description": null
}
] | closed | false | [] | null | 7 | 2026-02-14T14:45:52 | 2026-02-16T17:39:13 | 2026-02-16T17:39:13 | null | NONE | null | null | {
"total": 0,
"completed": 0,
"percent_completed": 0
} | {
"blocked_by": 0,
"total_blocked_by": 0,
"blocking": 0,
"total_blocking": 0
} | ### Describe the bug and give evidence about its user-facing impact
When using learning_curve with exploit_incremental_learning=True and passing sample_weight
(or other parameters) to the scorer, the training scores for all training sizes except the final one are returned as NaN.
This happens because _incremental_fit_estimator pre-computes the training scores' parameters once for the full training set, but then attempts to use them for subsets of the training data. This causes a ValueError (consistent length mismatch) inside the scorer, which is silently caught and replaced with NaN.
This affects any user trying to evaluate learning curves incrementally while using weighted metrics or metadata-aware scorers.
### Steps/Code to Reproduce
```py
import numpy as np
from sklearn.datasets import make_classification
from sklearn.linear_model import SGDClassifier
from sklearn.model_selection import learning_curve
from sklearn.metrics import make_scorer, accuracy_score
import sklearn
# Enable metadata routing to pass sample_weight to scorer
sklearn.set_config(enable_metadata_routing=True)
X, y = make_classification(n_samples=100, n_features=5, random_state=42)
weights = np.ones(100)
scorer = make_scorer(accuracy_score).set_score_request(sample_weight=True)
train_sizes, train_scores, _ = learning_curve(
SGDClassifier(), X, y,
train_sizes=[0.3, 0.6, 0.9],
cv=3,
exploit_incremental_learning=True,
scoring=scorer,
params={'sample_weight': weights}
)
print("Training scores (expecting no NaNs):")
print(train_scores)
```
### Expected Results
The training scores should be successfully computed for all training sizes. Example: [[0.96 0.96 0.96], [0.94 0.94 0.94], [0.92 0.92 0.92]] (no NaN values).
### Actual Results
```
[[ nan nan nan]
[ nan nan nan]
[0.93 0.95 0.92]]
```
### Versions
```shell
System:
python: 3.14.2
machine: Windows-10
Python dependencies:
sklearn: 1.8.0.dev0
numpy: 2.4.1
scipy: 1.17.0
```
### Interest in fixing the bug
Yes, I am interested in fixing this. | {
"login": "atheendre130505",
"id": 144999593,
"node_id": "U_kgDOCKSEqQ",
"avatar_url": "https://avatars.githubusercontent.com/u/144999593?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/atheendre130505",
"html_url": "https://github.com/atheendre130505",
"followers_url": "https://api.github.com/users/atheendre130505/followers",
"following_url": "https://api.github.com/users/atheendre130505/following{/other_user}",
"gists_url": "https://api.github.com/users/atheendre130505/gists{/gist_id}",
"starred_url": "https://api.github.com/users/atheendre130505/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/atheendre130505/subscriptions",
"organizations_url": "https://api.github.com/users/atheendre130505/orgs",
"repos_url": "https://api.github.com/users/atheendre130505/repos",
"events_url": "https://api.github.com/users/atheendre130505/events{/privacy}",
"received_events_url": "https://api.github.com/users/atheendre130505/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33283/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33283/timeline | null | completed | null | null | null | false |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33282 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33282/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33282/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33282/events | https://github.com/scikit-learn/scikit-learn/pull/33282 | 3,941,096,773 | PR_kwDOAAzd1s7DwwXK | 33,282 | FIX BisectingKMeans callable init validation uses n_centroids instead of n_clusters | {
"login": "veeceey",
"id": 34209028,
"node_id": "MDQ6VXNlcjM0MjA5MDI4",
"avatar_url": "https://avatars.githubusercontent.com/u/34209028?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/veeceey",
"html_url": "https://github.com/veeceey",
"followers_url": "https://api.github.com/users/veeceey/followers",
"following_url": "https://api.github.com/users/veeceey/following{/other_user}",
"gists_url": "https://api.github.com/users/veeceey/gists{/gist_id}",
"starred_url": "https://api.github.com/users/veeceey/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/veeceey/subscriptions",
"organizations_url": "https://api.github.com/users/veeceey/orgs",
"repos_url": "https://api.github.com/users/veeceey/repos",
"events_url": "https://api.github.com/users/veeceey/events{/privacy}",
"received_events_url": "https://api.github.com/users/veeceey/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 1815435821,
"node_id": "MDU6TGFiZWwxODE1NDM1ODIx",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/module:cluster",
"name": "module:cluster",
"color": "151e91",
"default": false,
"description": ""
},
{
"id": 9691732262,
"node_id": "LA_kwDOAAzd1s8... | closed | false | [] | null | 3 | 2026-02-14T10:47:28 | 2026-02-15T02:58:20 | 2026-02-14T17:52:16 | null | NONE | null | null | null | null | Fixes #33146
## Problem
When using `BisectingKMeans` with a callable `init`, `_validate_center_shape` always checked the shape of the returned centers against `self.n_clusters` (the total number of clusters). But for bisecting k-means, each bisection step passes `n_centroids=2` to `_init_centroids`, so the callable correctly receives and returns 2 centers. The validation then fails because it expects `self.n_clusters` (e.g., 6) centers instead of 2.
## Fix
Added an optional `n_clusters` parameter to `_validate_center_shape` so `_init_centroids` can pass the actual number of centroids being requested. When not provided, it defaults to `self.n_clusters` which preserves existing behavior for `KMeans` and `MiniBatchKMeans`.
Also updated the `BisectingKMeans.init` docstring to clarify that the callable is always invoked with `n_clusters=2` at each bisection step.
## Tests
Added two non-regression tests:
- `test_callable_init_with_bisecting_kmeans`: verifies a callable init works with `BisectingKMeans` and always receives `n_clusters=2`
- `test_callable_init_wrong_shape_raises`: verifies that a callable returning the wrong number of centers still raises `ValueError` | {
"login": "jeremiedbb",
"id": 34657725,
"node_id": "MDQ6VXNlcjM0NjU3NzI1",
"avatar_url": "https://avatars.githubusercontent.com/u/34657725?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jeremiedbb",
"html_url": "https://github.com/jeremiedbb",
"followers_url": "https://api.github.com/users/jeremiedbb/followers",
"following_url": "https://api.github.com/users/jeremiedbb/following{/other_user}",
"gists_url": "https://api.github.com/users/jeremiedbb/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jeremiedbb/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jeremiedbb/subscriptions",
"organizations_url": "https://api.github.com/users/jeremiedbb/orgs",
"repos_url": "https://api.github.com/users/jeremiedbb/repos",
"events_url": "https://api.github.com/users/jeremiedbb/events{/privacy}",
"received_events_url": "https://api.github.com/users/jeremiedbb/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33282/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33282/timeline | null | null | null | false | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/pulls/33282",
"html_url": "https://github.com/scikit-learn/scikit-learn/pull/33282",
"diff_url": "https://github.com/scikit-learn/scikit-learn/pull/33282.diff",
"patch_url": "https://github.com/scikit-learn/scikit-learn/pull/33282.patch",
"merged_at": null
} | true |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33281 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33281/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33281/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33281/events | https://github.com/scikit-learn/scikit-learn/issues/33281 | 3,938,281,524 | I_kwDOAAzd1s7qvWg0 | 33,281 | Clarify example usage in README.md for beginners | {
"login": "JeremiahyHenry3",
"id": 166060440,
"node_id": "U_kgDOCeXhmA",
"avatar_url": "https://avatars.githubusercontent.com/u/166060440?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/JeremiahyHenry3",
"html_url": "https://github.com/JeremiahyHenry3",
"followers_url": "https://api.github.com/users/JeremiahyHenry3/followers",
"following_url": "https://api.github.com/users/JeremiahyHenry3/following{/other_user}",
"gists_url": "https://api.github.com/users/JeremiahyHenry3/gists{/gist_id}",
"starred_url": "https://api.github.com/users/JeremiahyHenry3/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/JeremiahyHenry3/subscriptions",
"organizations_url": "https://api.github.com/users/JeremiahyHenry3/orgs",
"repos_url": "https://api.github.com/users/JeremiahyHenry3/repos",
"events_url": "https://api.github.com/users/JeremiahyHenry3/events{/privacy}",
"received_events_url": "https://api.github.com/users/JeremiahyHenry3/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 12995770,
"node_id": "MDU6TGFiZWwxMjk5NTc3MA==",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/Documentation",
"name": "Documentation",
"color": "0b02e1",
"default": false,
"description": null
},
{
"id": 2399338178,
"node_id": "MDU6TGFiZWwyMzk5... | closed | false | [] | null | 2 | 2026-02-13T17:40:52 | 2026-02-14T11:06:48 | 2026-02-14T11:06:15 | null | NONE | null | null | {
"total": 0,
"completed": 0,
"percent_completed": 0
} | {
"blocked_by": 0,
"total_blocked_by": 0,
"blocking": 0,
"total_blocking": 0
} | ### Describe the issue linked to the documentation
Hello! π
Thank you for maintaining this project β itβs really helpful!
While reading the README.md, I noticed that one of the code examples could be a bit unclear for beginners.
X β training features as a 2D array
y β target labels as a 1D array
Example:
model.fit(X_train, y_train)
### Suggest a potential alternative/fix
_No response_ | {
"login": "StefanieSenger",
"id": 91849487,
"node_id": "U_kgDOBXmDDw",
"avatar_url": "https://avatars.githubusercontent.com/u/91849487?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/StefanieSenger",
"html_url": "https://github.com/StefanieSenger",
"followers_url": "https://api.github.com/users/StefanieSenger/followers",
"following_url": "https://api.github.com/users/StefanieSenger/following{/other_user}",
"gists_url": "https://api.github.com/users/StefanieSenger/gists{/gist_id}",
"starred_url": "https://api.github.com/users/StefanieSenger/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/StefanieSenger/subscriptions",
"organizations_url": "https://api.github.com/users/StefanieSenger/orgs",
"repos_url": "https://api.github.com/users/StefanieSenger/repos",
"events_url": "https://api.github.com/users/StefanieSenger/events{/privacy}",
"received_events_url": "https://api.github.com/users/StefanieSenger/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33281/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33281/timeline | null | not_planned | null | null | null | false |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33280 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33280/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33280/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33280/events | https://github.com/scikit-learn/scikit-learn/pull/33280 | 3,938,267,651 | PR_kwDOAAzd1s7DnQpV | 33,280 | DOC: Fix some typos in Lasso | {
"login": "fbourgey",
"id": 10298716,
"node_id": "MDQ6VXNlcjEwMjk4NzE2",
"avatar_url": "https://avatars.githubusercontent.com/u/10298716?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/fbourgey",
"html_url": "https://github.com/fbourgey",
"followers_url": "https://api.github.com/users/fbourgey/followers",
"following_url": "https://api.github.com/users/fbourgey/following{/other_user}",
"gists_url": "https://api.github.com/users/fbourgey/gists{/gist_id}",
"starred_url": "https://api.github.com/users/fbourgey/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/fbourgey/subscriptions",
"organizations_url": "https://api.github.com/users/fbourgey/orgs",
"repos_url": "https://api.github.com/users/fbourgey/repos",
"events_url": "https://api.github.com/users/fbourgey/events{/privacy}",
"received_events_url": "https://api.github.com/users/fbourgey/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 12995770,
"node_id": "MDU6TGFiZWwxMjk5NTc3MA==",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/Documentation",
"name": "Documentation",
"color": "0b02e1",
"default": false,
"description": null
},
{
"id": 1815444632,
"node_id": "MDU6TGFiZWwxODE1... | closed | false | [] | null | 0 | 2026-02-13T17:37:36 | 2026-02-19T06:31:42 | 2026-02-18T19:49:42 | null | CONTRIBUTOR | null | null | null | null | Fixing some typos in the [Lasso documentation](https://scikit-learn.org/stable/modules/generated/sklearn.linear_model.Lasso.html) | {
"login": "lorentzenchr",
"id": 15324633,
"node_id": "MDQ6VXNlcjE1MzI0NjMz",
"avatar_url": "https://avatars.githubusercontent.com/u/15324633?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/lorentzenchr",
"html_url": "https://github.com/lorentzenchr",
"followers_url": "https://api.github.com/users/lorentzenchr/followers",
"following_url": "https://api.github.com/users/lorentzenchr/following{/other_user}",
"gists_url": "https://api.github.com/users/lorentzenchr/gists{/gist_id}",
"starred_url": "https://api.github.com/users/lorentzenchr/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lorentzenchr/subscriptions",
"organizations_url": "https://api.github.com/users/lorentzenchr/orgs",
"repos_url": "https://api.github.com/users/lorentzenchr/repos",
"events_url": "https://api.github.com/users/lorentzenchr/events{/privacy}",
"received_events_url": "https://api.github.com/users/lorentzenchr/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33280/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33280/timeline | null | null | null | false | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/pulls/33280",
"html_url": "https://github.com/scikit-learn/scikit-learn/pull/33280",
"diff_url": "https://github.com/scikit-learn/scikit-learn/pull/33280.diff",
"patch_url": "https://github.com/scikit-learn/scikit-learn/pull/33280.patch",
"merged_at": "2026-02-18T19:49:42"
} | true |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33279 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33279/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33279/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33279/events | https://github.com/scikit-learn/scikit-learn/pull/33279 | 3,937,994,615 | PR_kwDOAAzd1s7DmV1m | 33,279 | MNT Removed unused param in `_preprocess_data` | {
"login": "jeremiedbb",
"id": 34657725,
"node_id": "MDQ6VXNlcjM0NjU3NzI1",
"avatar_url": "https://avatars.githubusercontent.com/u/34657725?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jeremiedbb",
"html_url": "https://github.com/jeremiedbb",
"followers_url": "https://api.github.com/users/jeremiedbb/followers",
"following_url": "https://api.github.com/users/jeremiedbb/following{/other_user}",
"gists_url": "https://api.github.com/users/jeremiedbb/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jeremiedbb/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jeremiedbb/subscriptions",
"organizations_url": "https://api.github.com/users/jeremiedbb/orgs",
"repos_url": "https://api.github.com/users/jeremiedbb/repos",
"events_url": "https://api.github.com/users/jeremiedbb/events{/privacy}",
"received_events_url": "https://api.github.com/users/jeremiedbb/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 1815444632,
"node_id": "MDU6TGFiZWwxODE1NDQ0NjMy",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/module:linear_model",
"name": "module:linear_model",
"color": "151e91",
"default": false,
"description": ""
},
{
"id": 3730476391,
"node_id": "LA_k... | closed | false | [] | null | 0 | 2026-02-13T16:34:04 | 2026-02-16T23:51:54 | 2026-02-16T23:51:54 | null | MEMBER | null | null | null | null | This param was introduced 2 years ago but defaults to True and `_preprocess_data` is never called with a non-default value of `copy_y`. Let's remove it. | {
"login": "thomasjpfan",
"id": 5402633,
"node_id": "MDQ6VXNlcjU0MDI2MzM=",
"avatar_url": "https://avatars.githubusercontent.com/u/5402633?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/thomasjpfan",
"html_url": "https://github.com/thomasjpfan",
"followers_url": "https://api.github.com/users/thomasjpfan/followers",
"following_url": "https://api.github.com/users/thomasjpfan/following{/other_user}",
"gists_url": "https://api.github.com/users/thomasjpfan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/thomasjpfan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/thomasjpfan/subscriptions",
"organizations_url": "https://api.github.com/users/thomasjpfan/orgs",
"repos_url": "https://api.github.com/users/thomasjpfan/repos",
"events_url": "https://api.github.com/users/thomasjpfan/events{/privacy}",
"received_events_url": "https://api.github.com/users/thomasjpfan/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33279/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33279/timeline | null | null | null | false | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/pulls/33279",
"html_url": "https://github.com/scikit-learn/scikit-learn/pull/33279",
"diff_url": "https://github.com/scikit-learn/scikit-learn/pull/33279.diff",
"patch_url": "https://github.com/scikit-learn/scikit-learn/pull/33279.patch",
"merged_at": "2026-02-16T23:51:53"
} | true |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33278 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33278/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33278/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33278/events | https://github.com/scikit-learn/scikit-learn/pull/33278 | 3,936,744,396 | PR_kwDOAAzd1s7DiMYj | 33,278 | FEA: Support for `interaction_cst` in trees and downstream ensemble models | {
"login": "cakedev0",
"id": 25986961,
"node_id": "MDQ6VXNlcjI1OTg2OTYx",
"avatar_url": "https://avatars.githubusercontent.com/u/25986961?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/cakedev0",
"html_url": "https://github.com/cakedev0",
"followers_url": "https://api.github.com/users/cakedev0/followers",
"following_url": "https://api.github.com/users/cakedev0/following{/other_user}",
"gists_url": "https://api.github.com/users/cakedev0/gists{/gist_id}",
"starred_url": "https://api.github.com/users/cakedev0/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/cakedev0/subscriptions",
"organizations_url": "https://api.github.com/users/cakedev0/orgs",
"repos_url": "https://api.github.com/users/cakedev0/repos",
"events_url": "https://api.github.com/users/cakedev0/events{/privacy}",
"received_events_url": "https://api.github.com/users/cakedev0/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 1815440243,
"node_id": "MDU6TGFiZWwxODE1NDQwMjQz",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/module:ensemble",
"name": "module:ensemble",
"color": "151e91",
"default": false,
"description": ""
},
{
"id": 1815449280,
"node_id": "MDU6TGFiZWwx... | open | false | [] | null | 0 | 2026-02-13T11:37:53 | 2026-02-14T13:45:22 | null | null | CONTRIBUTOR | null | null | null | null | Add support for `interaction_cst` in decision trees and downstream ensemble models.
## Reference Issues/PRs
I did not find issues explicitly asking for this, but I was asked for it in a freelance project (and we agreed on making it open-source).
This helps with issue #27873 because HGB already supports `interaction_cst`, so this PR brings GB one step closer to HGB.
## What does this implement/fix? Explain your changes.
#### API changes:
Adds a new `interaction_cst` parameter to:
- `<Decision/Extra>Tree<Classifier/Regressor>`
- `<RandomForest/ExtraTrees/GradientBoosting><Classifier/Regressor>`
The `interaction_cst` parameter supports the same options as in HGB:
- explicit groups (list/tuple/set of feature indices),
- `"pairwise"` shorthand,
- `"no_interactions"` shorthand.
It's validated and normalized in `BaseDecisionTree`.
#### Logic of the implementation:
- Constraints are converted to sparse group<->feature mappings
- Allowed features are maintained as a prefix of `splitter.features`, forbidden features are moved to the suffix and excluded from future draws.
- Handles both builder strategies:
- depth-first: propagates constraint state incrementally via stack records (very efficient)
- best-first: reconstructs node state from ancestor splits using stored parent ids (a bit less efficient, but still has a very small impact even on worst case scenarios)
#### Implementation details
The interaction-constraint logic is encapsulated in a dedicated Cython class:
`InteractionConstraints` (in `sklearn/tree/_tree.pyx`).
It builds and stores group <-> feature mappings in both directions so updates after each split are efficient.
At fit time it also allocates:
- an array for active interaction groups (stored as a prefix to represent the current state),
- reusable working buffers: marking arrays and tokens for efficient set-like operations on groups/features.
The core method is `update_after_split(..., split_feature)`. It updates the active groups and moves newly forbidden features to the tail of `splitter.features`.
It then persists state by writing `n_active_interaction_groups` and `n_allowed_features` to the parent record.
Integration points in existing code paths are intentionally small:
- Splitters (`_splitter.pyx`): feature sampling is restricted to
`features[:n_allowed_features]`.
- Depth-first builder: updates constraints incrementally after each non-leaf split,
and children inherit the updated state.
- Best-first builder: because nodes are expanded out of DFS order, it reconstructs
node state by replaying ancestor split features through stored parent links.
#### Test coverage added/updated:
For trees:
- constraint parsing/validation and error cases,
- structural enforcement across classifier/regressor, `best`/`random` splitters, dense/sparse inputs,
- overlapping groups and array-like input,
- a numerical check that `"no_interactions"` removes mixed second-order effects.
\+ Ensemble smoke tests for Random Forest / Extra Trees / Gradient Boosting to verify parameter plumbing.
## AI usage disclosure
I used AI assistance for:
- Code generation: almost 100% AI written but I iterated a lot (see the commit history ^^), and I think the resulting code is at least as good as what I would have written myself.
- Test/benchmark generation: same
- Docstrings
The human part is: research, understanding, designing.
## Benchmarks
Except for pathological cases I don't expect to see in the real world, providing interactions constraints has no negative impact on fit time. In most cases, it will reduce fit time because it reduces the number candidate splits.
I can provide detailed benchmark results using the script below if needed (including some pathological/near-pathological cases):
<details>
```Python
from time import perf_counter
import numpy as np
from sklearn.tree import DecisionTreeRegressor
n_samples = int(3e5)
n_features = 300
rng = np.random.RandomState(0)
X = rng.normal(size=(n_samples, n_features)).astype(np.float32).round(1)
y = rng.normal(size=n_samples)
cases = {
"none": None,
"no_interactions": "no_interactions",
"disjoint_10": np.arange(n_features).reshape(-1, 10),
"pairwise": "pairwise",
"many_overlap_10": [range(i, i + 10) for i in range(n_features - 10)]
}
def time_fit(X, y, n_repeats: int = 7, **kwargs):
"""Measure fit times across repeats and return times + leaf counts."""
times = []
leave_counts = []
for repeat in range(n_repeats):
est = DecisionTreeRegressor(
random_state=repeat,
**kwargs
)
start = perf_counter()
est.fit(X, y)
times.append(perf_counter() - start)
leave_counts.append((est.tree_.node_count + 1) // 2)
return times, leave_counts
rows = []
for max_leaf_nodes in [None, n_samples]:
builder_name = "Depth-first" if max_leaf_nodes is None else "Best-first"
print(builder_name)
for case_name, interaction_cst in cases.items():
times, leave_counts = time_fit(
X, y, interaction_cst=interaction_cst,
max_features=1,
max_leaf_nodes=max_leaf_nodes,
)
mean_s = np.mean(times)
mean_leaves = round(np.mean(leave_counts))
print(
f"{case_name:<16} {mean_s:>7.3f} {mean_leaves:>10.1f}"
)
rows.append({
'builder': builder_name,
'case': case_name,
'avg time': mean_s,
'n_leaves': mean_leaves,
})
```
</details>
| null | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33278/reactions",
"total_count": 1,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 1
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33278/timeline | null | null | null | false | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/pulls/33278",
"html_url": "https://github.com/scikit-learn/scikit-learn/pull/33278",
"diff_url": "https://github.com/scikit-learn/scikit-learn/pull/33278.diff",
"patch_url": "https://github.com/scikit-learn/scikit-learn/pull/33278.patch",
"merged_at": null
} | true |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33277 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33277/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33277/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33277/events | https://github.com/scikit-learn/scikit-learn/pull/33277 | 3,936,510,507 | PR_kwDOAAzd1s7Dhai- | 33,277 | ENH/FIX Array API in LinearModelLoss and newton solver | {
"login": "lorentzenchr",
"id": 15324633,
"node_id": "MDQ6VXNlcjE1MzI0NjMz",
"avatar_url": "https://avatars.githubusercontent.com/u/15324633?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/lorentzenchr",
"html_url": "https://github.com/lorentzenchr",
"followers_url": "https://api.github.com/users/lorentzenchr/followers",
"following_url": "https://api.github.com/users/lorentzenchr/following{/other_user}",
"gists_url": "https://api.github.com/users/lorentzenchr/gists{/gist_id}",
"starred_url": "https://api.github.com/users/lorentzenchr/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lorentzenchr/subscriptions",
"organizations_url": "https://api.github.com/users/lorentzenchr/orgs",
"repos_url": "https://api.github.com/users/lorentzenchr/repos",
"events_url": "https://api.github.com/users/lorentzenchr/events{/privacy}",
"received_events_url": "https://api.github.com/users/lorentzenchr/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 1815444632,
"node_id": "MDU6TGFiZWwxODE1NDQ0NjMy",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/module:linear_model",
"name": "module:linear_model",
"color": "151e91",
"default": false,
"description": ""
},
{
"id": 3730476391,
"node_id": "LA_k... | closed | false | [] | null | 1 | 2026-02-13T10:37:03 | 2026-02-17T13:37:36 | 2026-02-17T13:37:32 | null | MEMBER | null | null | null | null | #### Reference Issues/PRs
Follow-up of #32644.
#### What does this implement/fix? Explain your changes.
Some fixes and extensions for Array API support in LogisticRegression and Newton solvers.
#### AI usage disclosure
None
#### Any other comments?
| {
"login": "ogrisel",
"id": 89061,
"node_id": "MDQ6VXNlcjg5MDYx",
"avatar_url": "https://avatars.githubusercontent.com/u/89061?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ogrisel",
"html_url": "https://github.com/ogrisel",
"followers_url": "https://api.github.com/users/ogrisel/followers",
"following_url": "https://api.github.com/users/ogrisel/following{/other_user}",
"gists_url": "https://api.github.com/users/ogrisel/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ogrisel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ogrisel/subscriptions",
"organizations_url": "https://api.github.com/users/ogrisel/orgs",
"repos_url": "https://api.github.com/users/ogrisel/repos",
"events_url": "https://api.github.com/users/ogrisel/events{/privacy}",
"received_events_url": "https://api.github.com/users/ogrisel/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33277/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33277/timeline | null | null | null | false | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/pulls/33277",
"html_url": "https://github.com/scikit-learn/scikit-learn/pull/33277",
"diff_url": "https://github.com/scikit-learn/scikit-learn/pull/33277.diff",
"patch_url": "https://github.com/scikit-learn/scikit-learn/pull/33277.patch",
"merged_at": "2026-02-17T13:37:32"
} | true |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33276 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33276/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33276/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33276/events | https://github.com/scikit-learn/scikit-learn/pull/33276 | 3,936,242,653 | PR_kwDOAAzd1s7DghgT | 33,276 | FIX HDBSCAN crash with cluster_selection_epsilon on tied distances | {
"login": "Mr-Neutr0n",
"id": 64578610,
"node_id": "MDQ6VXNlcjY0NTc4NjEw",
"avatar_url": "https://avatars.githubusercontent.com/u/64578610?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Mr-Neutr0n",
"html_url": "https://github.com/Mr-Neutr0n",
"followers_url": "https://api.github.com/users/Mr-Neutr0n/followers",
"following_url": "https://api.github.com/users/Mr-Neutr0n/following{/other_user}",
"gists_url": "https://api.github.com/users/Mr-Neutr0n/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Mr-Neutr0n/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Mr-Neutr0n/subscriptions",
"organizations_url": "https://api.github.com/users/Mr-Neutr0n/orgs",
"repos_url": "https://api.github.com/users/Mr-Neutr0n/repos",
"events_url": "https://api.github.com/users/Mr-Neutr0n/events{/privacy}",
"received_events_url": "https://api.github.com/users/Mr-Neutr0n/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 1815435821,
"node_id": "MDU6TGFiZWwxODE1NDM1ODIx",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/module:cluster",
"name": "module:cluster",
"color": "151e91",
"default": false,
"description": ""
},
{
"id": 2911057044,
"node_id": "MDU6TGFiZWwyOT... | closed | false | [] | null | 2 | 2026-02-13T09:34:32 | 2026-02-13T10:57:06 | 2026-02-13T10:57:06 | null | NONE | null | null | null | null | Fixes #33219
#### What does this implement/fix?
`HDBSCAN.fit_predict()` raises `TypeError: only 0-dimensional arrays can be converted to Python scalars` when `cluster_selection_epsilon` is set and the input data contains tied distances.
The root cause is in `traverse_upwards` in `_tree.pyx`. Tied distances produce duplicate entries in the condensed tree, so filtering by child id can return multiple rows instead of one. The code assumed a scalar result from these lookups, which blows up when it gets an array instead.
The fix indexes `[0]` on both the parent lookup and the `parent_eps` computation. All duplicate entries for a given child share the same parent and lambda value, so taking the first match is correct.
#### How has this been tested?
Added a non-regression test `test_hdbscan_cluster_selection_epsilon_tied_distances` using both:
- The exact precomputed distance matrix from the issue report
- The synthetic Euclidean reproducer from the issue | {
"login": "Mr-Neutr0n",
"id": 64578610,
"node_id": "MDQ6VXNlcjY0NTc4NjEw",
"avatar_url": "https://avatars.githubusercontent.com/u/64578610?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/Mr-Neutr0n",
"html_url": "https://github.com/Mr-Neutr0n",
"followers_url": "https://api.github.com/users/Mr-Neutr0n/followers",
"following_url": "https://api.github.com/users/Mr-Neutr0n/following{/other_user}",
"gists_url": "https://api.github.com/users/Mr-Neutr0n/gists{/gist_id}",
"starred_url": "https://api.github.com/users/Mr-Neutr0n/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/Mr-Neutr0n/subscriptions",
"organizations_url": "https://api.github.com/users/Mr-Neutr0n/orgs",
"repos_url": "https://api.github.com/users/Mr-Neutr0n/repos",
"events_url": "https://api.github.com/users/Mr-Neutr0n/events{/privacy}",
"received_events_url": "https://api.github.com/users/Mr-Neutr0n/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33276/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33276/timeline | null | null | null | false | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/pulls/33276",
"html_url": "https://github.com/scikit-learn/scikit-learn/pull/33276",
"diff_url": "https://github.com/scikit-learn/scikit-learn/pull/33276.diff",
"patch_url": "https://github.com/scikit-learn/scikit-learn/pull/33276.patch",
"merged_at": null
} | true |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33275 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33275/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33275/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33275/events | https://github.com/scikit-learn/scikit-learn/issues/33275 | 3,935,214,846 | I_kwDOAAzd1s7qjpz- | 33,275 | β οΈ CI failed on Unit tests Linux x86-64 pylatest_free_threaded (last failure: Feb 13, 2026) β οΈ | {
"login": "scikit-learn-bot",
"id": 8699527,
"node_id": "MDQ6VXNlcjg2OTk1Mjc=",
"avatar_url": "https://avatars.githubusercontent.com/u/8699527?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/scikit-learn-bot",
"html_url": "https://github.com/scikit-learn-bot",
"followers_url": "https://api.github.com/users/scikit-learn-bot/followers",
"following_url": "https://api.github.com/users/scikit-learn-bot/following{/other_user}",
"gists_url": "https://api.github.com/users/scikit-learn-bot/gists{/gist_id}",
"starred_url": "https://api.github.com/users/scikit-learn-bot/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/scikit-learn-bot/subscriptions",
"organizations_url": "https://api.github.com/users/scikit-learn-bot/orgs",
"repos_url": "https://api.github.com/users/scikit-learn-bot/repos",
"events_url": "https://api.github.com/users/scikit-learn-bot/events{/privacy}",
"received_events_url": "https://api.github.com/users/scikit-learn-bot/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [] | closed | false | [] | null | 4 | 2026-02-13T03:58:48 | 2026-02-19T09:08:44 | 2026-02-19T09:08:44 | null | CONTRIBUTOR | null | null | {
"total": 0,
"completed": 0,
"percent_completed": 0
} | {
"blocked_by": 0,
"total_blocked_by": 0,
"blocking": 0,
"total_blocking": 0
} | **CI failed on [Unit tests Linux x86-64 pylatest_free_threaded](https://github.com/scikit-learn/scikit-learn/actions/runs/21973551735/job/63480219991)** (Feb 13, 2026)
- test_regression_synthetic[68] | {
"login": "lesteve",
"id": 1680079,
"node_id": "MDQ6VXNlcjE2ODAwNzk=",
"avatar_url": "https://avatars.githubusercontent.com/u/1680079?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/lesteve",
"html_url": "https://github.com/lesteve",
"followers_url": "https://api.github.com/users/lesteve/followers",
"following_url": "https://api.github.com/users/lesteve/following{/other_user}",
"gists_url": "https://api.github.com/users/lesteve/gists{/gist_id}",
"starred_url": "https://api.github.com/users/lesteve/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lesteve/subscriptions",
"organizations_url": "https://api.github.com/users/lesteve/orgs",
"repos_url": "https://api.github.com/users/lesteve/repos",
"events_url": "https://api.github.com/users/lesteve/events{/privacy}",
"received_events_url": "https://api.github.com/users/lesteve/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33275/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33275/timeline | null | completed | null | null | null | false |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33274 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33274/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33274/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33274/events | https://github.com/scikit-learn/scikit-learn/issues/33274 | 3,935,188,459 | I_kwDOAAzd1s7qjjXr | 33,274 | β οΈ CI failed on Unit tests Linux x86-64 pylatest_conda_forge_mkl (last failure: Feb 13, 2026) β οΈ | {
"login": "scikit-learn-bot",
"id": 8699527,
"node_id": "MDQ6VXNlcjg2OTk1Mjc=",
"avatar_url": "https://avatars.githubusercontent.com/u/8699527?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/scikit-learn-bot",
"html_url": "https://github.com/scikit-learn-bot",
"followers_url": "https://api.github.com/users/scikit-learn-bot/followers",
"following_url": "https://api.github.com/users/scikit-learn-bot/following{/other_user}",
"gists_url": "https://api.github.com/users/scikit-learn-bot/gists{/gist_id}",
"starred_url": "https://api.github.com/users/scikit-learn-bot/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/scikit-learn-bot/subscriptions",
"organizations_url": "https://api.github.com/users/scikit-learn-bot/orgs",
"repos_url": "https://api.github.com/users/scikit-learn-bot/repos",
"events_url": "https://api.github.com/users/scikit-learn-bot/events{/privacy}",
"received_events_url": "https://api.github.com/users/scikit-learn-bot/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [] | closed | false | [] | null | 5 | 2026-02-13T03:46:49 | 2026-02-19T09:08:54 | 2026-02-19T09:08:54 | null | CONTRIBUTOR | null | null | {
"total": 0,
"completed": 0,
"percent_completed": 0
} | {
"blocked_by": 0,
"total_blocked_by": 0,
"blocking": 0,
"total_blocking": 0
} | **CI failed on [Unit tests Linux x86-64 pylatest_conda_forge_mkl](https://github.com/scikit-learn/scikit-learn/actions/runs/21973551735/job/63480220061)** (Feb 13, 2026)
- test_regression_synthetic[68] | {
"login": "lesteve",
"id": 1680079,
"node_id": "MDQ6VXNlcjE2ODAwNzk=",
"avatar_url": "https://avatars.githubusercontent.com/u/1680079?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/lesteve",
"html_url": "https://github.com/lesteve",
"followers_url": "https://api.github.com/users/lesteve/followers",
"following_url": "https://api.github.com/users/lesteve/following{/other_user}",
"gists_url": "https://api.github.com/users/lesteve/gists{/gist_id}",
"starred_url": "https://api.github.com/users/lesteve/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lesteve/subscriptions",
"organizations_url": "https://api.github.com/users/lesteve/orgs",
"repos_url": "https://api.github.com/users/lesteve/repos",
"events_url": "https://api.github.com/users/lesteve/events{/privacy}",
"received_events_url": "https://api.github.com/users/lesteve/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33274/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33274/timeline | null | completed | null | null | null | false |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33273 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33273/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33273/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33273/events | https://github.com/scikit-learn/scikit-learn/pull/33273 | 3,933,534,508 | PR_kwDOAAzd1s7DXlUJ | 33,273 | DOC Fix grammar in clustering.rst: replace 'allows to' with 'allows verb-ing' | {
"login": "TejasAnalyst",
"id": 254137677,
"node_id": "U_kgDODyXVTQ",
"avatar_url": "https://avatars.githubusercontent.com/u/254137677?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/TejasAnalyst",
"html_url": "https://github.com/TejasAnalyst",
"followers_url": "https://api.github.com/users/TejasAnalyst/followers",
"following_url": "https://api.github.com/users/TejasAnalyst/following{/other_user}",
"gists_url": "https://api.github.com/users/TejasAnalyst/gists{/gist_id}",
"starred_url": "https://api.github.com/users/TejasAnalyst/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/TejasAnalyst/subscriptions",
"organizations_url": "https://api.github.com/users/TejasAnalyst/orgs",
"repos_url": "https://api.github.com/users/TejasAnalyst/repos",
"events_url": "https://api.github.com/users/TejasAnalyst/events{/privacy}",
"received_events_url": "https://api.github.com/users/TejasAnalyst/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 12995770,
"node_id": "MDU6TGFiZWwxMjk5NTc3MA==",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/Documentation",
"name": "Documentation",
"color": "0b02e1",
"default": false,
"description": null
}
] | closed | false | [] | null | 0 | 2026-02-12T19:08:49 | 2026-02-13T20:01:27 | 2026-02-13T11:56:55 | null | CONTRIBUTOR | null | null | null | null | Fixes minor grammatical errors in `doc/modules/clustering.rst`.
Replaced incorrect usage of "allows to" with "allows assigning" and "allows examining" to improve readability.
No logical code changes, purely documentation fix. | {
"login": "jeremiedbb",
"id": 34657725,
"node_id": "MDQ6VXNlcjM0NjU3NzI1",
"avatar_url": "https://avatars.githubusercontent.com/u/34657725?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/jeremiedbb",
"html_url": "https://github.com/jeremiedbb",
"followers_url": "https://api.github.com/users/jeremiedbb/followers",
"following_url": "https://api.github.com/users/jeremiedbb/following{/other_user}",
"gists_url": "https://api.github.com/users/jeremiedbb/gists{/gist_id}",
"starred_url": "https://api.github.com/users/jeremiedbb/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/jeremiedbb/subscriptions",
"organizations_url": "https://api.github.com/users/jeremiedbb/orgs",
"repos_url": "https://api.github.com/users/jeremiedbb/repos",
"events_url": "https://api.github.com/users/jeremiedbb/events{/privacy}",
"received_events_url": "https://api.github.com/users/jeremiedbb/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33273/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33273/timeline | null | null | null | false | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/pulls/33273",
"html_url": "https://github.com/scikit-learn/scikit-learn/pull/33273",
"diff_url": "https://github.com/scikit-learn/scikit-learn/pull/33273.diff",
"patch_url": "https://github.com/scikit-learn/scikit-learn/pull/33273.patch",
"merged_at": "2026-02-13T11:56:55"
} | true |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33272 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33272/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33272/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33272/events | https://github.com/scikit-learn/scikit-learn/pull/33272 | 3,932,988,793 | PR_kwDOAAzd1s7DVsmI | 33,272 | MNT use scipy.stats.yeojohnson in PowerTransformer | {
"login": "lorentzenchr",
"id": 15324633,
"node_id": "MDQ6VXNlcjE1MzI0NjMz",
"avatar_url": "https://avatars.githubusercontent.com/u/15324633?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/lorentzenchr",
"html_url": "https://github.com/lorentzenchr",
"followers_url": "https://api.github.com/users/lorentzenchr/followers",
"following_url": "https://api.github.com/users/lorentzenchr/following{/other_user}",
"gists_url": "https://api.github.com/users/lorentzenchr/gists{/gist_id}",
"starred_url": "https://api.github.com/users/lorentzenchr/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lorentzenchr/subscriptions",
"organizations_url": "https://api.github.com/users/lorentzenchr/orgs",
"repos_url": "https://api.github.com/users/lorentzenchr/repos",
"events_url": "https://api.github.com/users/lorentzenchr/events{/privacy}",
"received_events_url": "https://api.github.com/users/lorentzenchr/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 1815448196,
"node_id": "MDU6TGFiZWwxODE1NDQ4MTk2",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/module:preprocessing",
"name": "module:preprocessing",
"color": "151e91",
"default": false,
"description": ""
},
{
"id": 3730476391,
"node_id": "LA... | closed | false | [] | null | 3 | 2026-02-12T17:14:03 | 2026-02-18T17:30:15 | 2026-02-14T17:48:31 | null | MEMBER | null | null | null | null | #### Reference Issues/PRs
See https://github.com/scipy/scipy/pull/24541.
#### What does this implement/fix? Explain your changes.
This PR removes our own implementation of the Yeo-Johnson transform, `_yeo_johnson_transform`, and replaces it with `scipy.stats.yeojohnson`.
#### AI usage disclosure
None
### Other comments
This even helps Array API support. | {
"login": "thomasjpfan",
"id": 5402633,
"node_id": "MDQ6VXNlcjU0MDI2MzM=",
"avatar_url": "https://avatars.githubusercontent.com/u/5402633?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/thomasjpfan",
"html_url": "https://github.com/thomasjpfan",
"followers_url": "https://api.github.com/users/thomasjpfan/followers",
"following_url": "https://api.github.com/users/thomasjpfan/following{/other_user}",
"gists_url": "https://api.github.com/users/thomasjpfan/gists{/gist_id}",
"starred_url": "https://api.github.com/users/thomasjpfan/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/thomasjpfan/subscriptions",
"organizations_url": "https://api.github.com/users/thomasjpfan/orgs",
"repos_url": "https://api.github.com/users/thomasjpfan/repos",
"events_url": "https://api.github.com/users/thomasjpfan/events{/privacy}",
"received_events_url": "https://api.github.com/users/thomasjpfan/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33272/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33272/timeline | null | null | null | false | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/pulls/33272",
"html_url": "https://github.com/scikit-learn/scikit-learn/pull/33272",
"diff_url": "https://github.com/scikit-learn/scikit-learn/pull/33272.diff",
"patch_url": "https://github.com/scikit-learn/scikit-learn/pull/33272.patch",
"merged_at": "2026-02-14T17:48:31"
} | true |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33271 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33271/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33271/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33271/events | https://github.com/scikit-learn/scikit-learn/pull/33271 | 3,931,274,586 | PR_kwDOAAzd1s7DP7fA | 33,271 | FIX Use xp.linalg.pinv instead of xp.linalg.inv in PCA for numerical stability | {
"login": "MAUK9086",
"id": 115063771,
"node_id": "U_kgDOBtu72w",
"avatar_url": "https://avatars.githubusercontent.com/u/115063771?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/MAUK9086",
"html_url": "https://github.com/MAUK9086",
"followers_url": "https://api.github.com/users/MAUK9086/followers",
"following_url": "https://api.github.com/users/MAUK9086/following{/other_user}",
"gists_url": "https://api.github.com/users/MAUK9086/gists{/gist_id}",
"starred_url": "https://api.github.com/users/MAUK9086/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/MAUK9086/subscriptions",
"organizations_url": "https://api.github.com/users/MAUK9086/orgs",
"repos_url": "https://api.github.com/users/MAUK9086/repos",
"events_url": "https://api.github.com/users/MAUK9086/events{/privacy}",
"received_events_url": "https://api.github.com/users/MAUK9086/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 1815438551,
"node_id": "MDU6TGFiZWwxODE1NDM4NTUx",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/module:decomposition",
"name": "module:decomposition",
"color": "151e91",
"default": false,
"description": ""
},
{
"id": 2399338178,
"node_id": "MD... | closed | false | [] | null | 1 | 2026-02-12T11:16:37 | 2026-02-13T01:58:21 | 2026-02-13T01:58:16 | null | CONTRIBUTOR | null | null | null | null | Reference Issues/PRs
Fixes #33205.
What does this implement/fix? Explain your changes.
This PR switches the matrix inversion logic in PCA.get_precision from a standard inverse (inv) to a Moore-Penrose pseudo-inverse (pinv).
Why this is necessary:
When working with singular or rank-deficient datasets (where features are perfectly correlated), the covariance matrix becomes singular. In these cases, linalg.inv raises a LinAlgError because the matrix is not invertible. This was specifically causing crashes in Array API dispatching with PyTorch on CPU (as reported in #33205).
Changes:
- Updated _BasePCA.get_precision in sklearn/decomposition/_base.py to use xp.linalg.pinv (for Array API) and scipy.linalg.pinv (for NumPy).
- Added a regression test test_pca_get_precision_singular_matrix in sklearn/decomposition/tests/test_pca.py that specifically uses a rank-deficient matrix to ensure no crash occurs.
- Added a changelog entry.
AI usage disclosure
I used AI assistance for:
[x] Code generation (e.g., when writing an implementation or fixing a bug)
[x] Test/benchmark generation
[ ] Documentation (including examples)
[] Research and understanding
Any other comments?
This fix should allow the removal of the XFAIL for PCA in the Array API common tests (though I can handle that in a follow-up or include it here if preferred). | {
"login": "lucyleeow",
"id": 23182829,
"node_id": "MDQ6VXNlcjIzMTgyODI5",
"avatar_url": "https://avatars.githubusercontent.com/u/23182829?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/lucyleeow",
"html_url": "https://github.com/lucyleeow",
"followers_url": "https://api.github.com/users/lucyleeow/followers",
"following_url": "https://api.github.com/users/lucyleeow/following{/other_user}",
"gists_url": "https://api.github.com/users/lucyleeow/gists{/gist_id}",
"starred_url": "https://api.github.com/users/lucyleeow/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lucyleeow/subscriptions",
"organizations_url": "https://api.github.com/users/lucyleeow/orgs",
"repos_url": "https://api.github.com/users/lucyleeow/repos",
"events_url": "https://api.github.com/users/lucyleeow/events{/privacy}",
"received_events_url": "https://api.github.com/users/lucyleeow/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33271/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33271/timeline | null | null | null | false | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/pulls/33271",
"html_url": "https://github.com/scikit-learn/scikit-learn/pull/33271",
"diff_url": "https://github.com/scikit-learn/scikit-learn/pull/33271.diff",
"patch_url": "https://github.com/scikit-learn/scikit-learn/pull/33271.patch",
"merged_at": null
} | true |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33270 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33270/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33270/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33270/events | https://github.com/scikit-learn/scikit-learn/pull/33270 | 3,930,429,696 | PR_kwDOAAzd1s7DNEeO | 33,270 | DOC Fix BNP Paribas logo path in footer | {
"login": "shibadityadeb",
"id": 173795163,
"node_id": "U_kgDOClvnWw",
"avatar_url": "https://avatars.githubusercontent.com/u/173795163?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/shibadityadeb",
"html_url": "https://github.com/shibadityadeb",
"followers_url": "https://api.github.com/users/shibadityadeb/followers",
"following_url": "https://api.github.com/users/shibadityadeb/following{/other_user}",
"gists_url": "https://api.github.com/users/shibadityadeb/gists{/gist_id}",
"starred_url": "https://api.github.com/users/shibadityadeb/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/shibadityadeb/subscriptions",
"organizations_url": "https://api.github.com/users/shibadityadeb/orgs",
"repos_url": "https://api.github.com/users/shibadityadeb/repos",
"events_url": "https://api.github.com/users/shibadityadeb/events{/privacy}",
"received_events_url": "https://api.github.com/users/shibadityadeb/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 12995770,
"node_id": "MDU6TGFiZWwxMjk5NTc3MA==",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/Documentation",
"name": "Documentation",
"color": "0b02e1",
"default": false,
"description": null
}
] | closed | false | [] | null | 3 | 2026-02-12T08:11:10 | 2026-02-12T10:14:57 | 2026-02-12T10:14:56 | null | CONTRIBUTOR | null | null | null | null | #### Reference Issues/PRs
Fixes #33256
#### What does this implement/fix? Explain your changes.
Fixes the BNP Paribas logo path in the funding footer of `doc/templates/index.html`.
Changed `_static/bnp-paribas.png` to `_images/bnp-paribas.jpg` to reference the correct existing image at `doc/images/bnp-paribas.jpg`.
#### AI usage disclosure
I used AI assistance for:
- [ ] Code generation (e.g., when writing an implementation or fixing a bug)
- [ ] Test/benchmark generation
- [ ] Documentation (including examples)
- [x] Research and understanding
#### Any other comments?
The image file exists at `doc/images/bnp-paribas.jpg` but was incorrectly referenced as `_static/bnp-paribas.png` in the footer template. | {
"login": "betatim",
"id": 1448859,
"node_id": "MDQ6VXNlcjE0NDg4NTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/1448859?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/betatim",
"html_url": "https://github.com/betatim",
"followers_url": "https://api.github.com/users/betatim/followers",
"following_url": "https://api.github.com/users/betatim/following{/other_user}",
"gists_url": "https://api.github.com/users/betatim/gists{/gist_id}",
"starred_url": "https://api.github.com/users/betatim/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/betatim/subscriptions",
"organizations_url": "https://api.github.com/users/betatim/orgs",
"repos_url": "https://api.github.com/users/betatim/repos",
"events_url": "https://api.github.com/users/betatim/events{/privacy}",
"received_events_url": "https://api.github.com/users/betatim/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33270/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33270/timeline | null | null | null | false | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/pulls/33270",
"html_url": "https://github.com/scikit-learn/scikit-learn/pull/33270",
"diff_url": "https://github.com/scikit-learn/scikit-learn/pull/33270.diff",
"patch_url": "https://github.com/scikit-learn/scikit-learn/pull/33270.patch",
"merged_at": null
} | true |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33269 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33269/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33269/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33269/events | https://github.com/scikit-learn/scikit-learn/pull/33269 | 3,930,403,038 | PR_kwDOAAzd1s7DM-ny | 33,269 | PERF Vectorize _logcosh in FastICA (~24x speedup) | {
"login": "MAUK9086",
"id": 115063771,
"node_id": "U_kgDOBtu72w",
"avatar_url": "https://avatars.githubusercontent.com/u/115063771?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/MAUK9086",
"html_url": "https://github.com/MAUK9086",
"followers_url": "https://api.github.com/users/MAUK9086/followers",
"following_url": "https://api.github.com/users/MAUK9086/following{/other_user}",
"gists_url": "https://api.github.com/users/MAUK9086/gists{/gist_id}",
"starred_url": "https://api.github.com/users/MAUK9086/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/MAUK9086/subscriptions",
"organizations_url": "https://api.github.com/users/MAUK9086/orgs",
"repos_url": "https://api.github.com/users/MAUK9086/repos",
"events_url": "https://api.github.com/users/MAUK9086/events{/privacy}",
"received_events_url": "https://api.github.com/users/MAUK9086/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 1815438551,
"node_id": "MDU6TGFiZWwxODE1NDM4NTUx",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/module:decomposition",
"name": "module:decomposition",
"color": "151e91",
"default": false,
"description": ""
}
] | open | false | [] | null | 0 | 2026-02-12T08:04:57 | 2026-02-17T05:14:22 | null | null | CONTRIBUTOR | null | null | null | null | #### Reference Issues/PRs
Fixes #32914
#### What does this implement/fix? Explain your changes.
This PR optimizes the `_logcosh` function in `FastICA` (used when `algorithm='deflation'` and `fun='logcosh'`) by vectorizing the operations for 1D arrays. Previously, this function used a Python loop over samples, which was a significant bottleneck.
**Changes:**
- Replaced the Python `for` loop with NumPy vectorization when `x` is 1D.
- Added a micro-optimization to skip multiplication if `alpha=1.0` (default).
- Added a regression test in `sklearn/decomposition/tests/test_fastica.py` to verify the vectorized path and ensure coverage.
**Benchmarks:**
Ran `FastICA(algorithm='deflation', fun='logcosh', ...)` on a `(2000, 50)` dataset.
- **Before:** 424.00s
- **After:** 17.71s
- **Speedup:** ~24x
#### AI usage disclosure
I used AI assistance for:
- [x] Code generation (e.g., when writing an implementation or fixing a bug)
- [ ] Test/benchmark generation
- [ ] Documentation (including examples)
- [ ] Research and understanding
#### Any other comments?
The optimization is isolated to the 1D case (`x.ndim == 1`), which is the standard path for the deflation algorithm. The original loop is preserved for other cases. | null | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33269/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33269/timeline | null | null | null | false | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/pulls/33269",
"html_url": "https://github.com/scikit-learn/scikit-learn/pull/33269",
"diff_url": "https://github.com/scikit-learn/scikit-learn/pull/33269.diff",
"patch_url": "https://github.com/scikit-learn/scikit-learn/pull/33269.patch",
"merged_at": null
} | true |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33268 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33268/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33268/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33268/events | https://github.com/scikit-learn/scikit-learn/pull/33268 | 3,930,312,123 | PR_kwDOAAzd1s7DMryK | 33,268 | FIX Use check_array in inverse_transform for Power/QuantileTransformer | {
"login": "MAUK9086",
"id": 115063771,
"node_id": "U_kgDOBtu72w",
"avatar_url": "https://avatars.githubusercontent.com/u/115063771?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/MAUK9086",
"html_url": "https://github.com/MAUK9086",
"followers_url": "https://api.github.com/users/MAUK9086/followers",
"following_url": "https://api.github.com/users/MAUK9086/following{/other_user}",
"gists_url": "https://api.github.com/users/MAUK9086/gists{/gist_id}",
"starred_url": "https://api.github.com/users/MAUK9086/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/MAUK9086/subscriptions",
"organizations_url": "https://api.github.com/users/MAUK9086/orgs",
"repos_url": "https://api.github.com/users/MAUK9086/repos",
"events_url": "https://api.github.com/users/MAUK9086/events{/privacy}",
"received_events_url": "https://api.github.com/users/MAUK9086/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 1815448196,
"node_id": "MDU6TGFiZWwxODE1NDQ4MTk2",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/module:preprocessing",
"name": "module:preprocessing",
"color": "151e91",
"default": false,
"description": ""
}
] | open | false | [] | null | 0 | 2026-02-12T07:39:21 | 2026-02-17T05:10:55 | null | null | CONTRIBUTOR | null | null | null | null | Fixes #31947
This PR fixes a bug where `PowerTransformer` and `QuantileTransformer` would raise a `UserWarning` ("X has feature names, but... was fitted without feature names") during `inverse_transform` when fitted with feature names.
This was caused by the use of `_check_input` (which validates against the input seen during `fit`) instead of `check_array`. Other transformers in the module correctly use `check_array` for `inverse_transform`.
### Changes
- Replaced `_check_input` with `check_array` in `PowerTransformer.inverse_transform` and `QuantileTransformer.inverse_transform`.
- Added a regression test in `sklearn/preprocessing/tests/test_data.py`.
- Added a changelog entry.
### Credits
This PR picks up the work started by @ThibaultDECO in PR #31948, which was closed due to linting issues. | null | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33268/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33268/timeline | null | null | null | false | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/pulls/33268",
"html_url": "https://github.com/scikit-learn/scikit-learn/pull/33268",
"diff_url": "https://github.com/scikit-learn/scikit-learn/pull/33268.diff",
"patch_url": "https://github.com/scikit-learn/scikit-learn/pull/33268.patch",
"merged_at": null
} | true |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33267 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33267/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33267/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33267/events | https://github.com/scikit-learn/scikit-learn/pull/33267 | 3,929,904,469 | PR_kwDOAAzd1s7DLYpd | 33,267 | DOC Fix wrong designation | {
"login": "fabianhenning",
"id": 35563234,
"node_id": "MDQ6VXNlcjM1NTYzMjM0",
"avatar_url": "https://avatars.githubusercontent.com/u/35563234?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/fabianhenning",
"html_url": "https://github.com/fabianhenning",
"followers_url": "https://api.github.com/users/fabianhenning/followers",
"following_url": "https://api.github.com/users/fabianhenning/following{/other_user}",
"gists_url": "https://api.github.com/users/fabianhenning/gists{/gist_id}",
"starred_url": "https://api.github.com/users/fabianhenning/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/fabianhenning/subscriptions",
"organizations_url": "https://api.github.com/users/fabianhenning/orgs",
"repos_url": "https://api.github.com/users/fabianhenning/repos",
"events_url": "https://api.github.com/users/fabianhenning/events{/privacy}",
"received_events_url": "https://api.github.com/users/fabianhenning/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 12995770,
"node_id": "MDU6TGFiZWwxMjk5NTc3MA==",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/Documentation",
"name": "Documentation",
"color": "0b02e1",
"default": false,
"description": null
}
] | closed | false | [] | null | 0 | 2026-02-12T05:14:03 | 2026-02-12T10:12:04 | 2026-02-12T10:12:04 | null | CONTRIBUTOR | null | null | null | null | null | {
"login": "betatim",
"id": 1448859,
"node_id": "MDQ6VXNlcjE0NDg4NTk=",
"avatar_url": "https://avatars.githubusercontent.com/u/1448859?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/betatim",
"html_url": "https://github.com/betatim",
"followers_url": "https://api.github.com/users/betatim/followers",
"following_url": "https://api.github.com/users/betatim/following{/other_user}",
"gists_url": "https://api.github.com/users/betatim/gists{/gist_id}",
"starred_url": "https://api.github.com/users/betatim/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/betatim/subscriptions",
"organizations_url": "https://api.github.com/users/betatim/orgs",
"repos_url": "https://api.github.com/users/betatim/repos",
"events_url": "https://api.github.com/users/betatim/events{/privacy}",
"received_events_url": "https://api.github.com/users/betatim/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33267/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33267/timeline | null | null | null | false | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/pulls/33267",
"html_url": "https://github.com/scikit-learn/scikit-learn/pull/33267",
"diff_url": "https://github.com/scikit-learn/scikit-learn/pull/33267.diff",
"patch_url": "https://github.com/scikit-learn/scikit-learn/pull/33267.patch",
"merged_at": "2026-02-12T10:12:04"
} | true |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33266 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33266/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33266/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33266/events | https://github.com/scikit-learn/scikit-learn/issues/33266 | 3,929,712,808 | I_kwDOAAzd1s7qOqio | 33,266 | β οΈ CI failed on Unit tests Linux x86-64 pymin_conda_forge_openblas_min_dependencies (last failure: Feb 12, 2026) β οΈ | {
"login": "scikit-learn-bot",
"id": 8699527,
"node_id": "MDQ6VXNlcjg2OTk1Mjc=",
"avatar_url": "https://avatars.githubusercontent.com/u/8699527?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/scikit-learn-bot",
"html_url": "https://github.com/scikit-learn-bot",
"followers_url": "https://api.github.com/users/scikit-learn-bot/followers",
"following_url": "https://api.github.com/users/scikit-learn-bot/following{/other_user}",
"gists_url": "https://api.github.com/users/scikit-learn-bot/gists{/gist_id}",
"starred_url": "https://api.github.com/users/scikit-learn-bot/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/scikit-learn-bot/subscriptions",
"organizations_url": "https://api.github.com/users/scikit-learn-bot/orgs",
"repos_url": "https://api.github.com/users/scikit-learn-bot/repos",
"events_url": "https://api.github.com/users/scikit-learn-bot/events{/privacy}",
"received_events_url": "https://api.github.com/users/scikit-learn-bot/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [] | closed | false | [] | null | 4 | 2026-02-12T03:45:35 | 2026-02-19T09:09:02 | 2026-02-19T09:09:02 | null | CONTRIBUTOR | null | null | {
"total": 0,
"completed": 0,
"percent_completed": 0
} | {
"blocked_by": 0,
"total_blocked_by": 0,
"blocking": 0,
"total_blocking": 0
} | **CI failed on [Unit tests Linux x86-64 pymin_conda_forge_openblas_min_dependencies](https://github.com/scikit-learn/scikit-learn/actions/runs/21932471473/job/63339346950)** (Feb 12, 2026)
- test_regression_synthetic[68] | {
"login": "lesteve",
"id": 1680079,
"node_id": "MDQ6VXNlcjE2ODAwNzk=",
"avatar_url": "https://avatars.githubusercontent.com/u/1680079?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/lesteve",
"html_url": "https://github.com/lesteve",
"followers_url": "https://api.github.com/users/lesteve/followers",
"following_url": "https://api.github.com/users/lesteve/following{/other_user}",
"gists_url": "https://api.github.com/users/lesteve/gists{/gist_id}",
"starred_url": "https://api.github.com/users/lesteve/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lesteve/subscriptions",
"organizations_url": "https://api.github.com/users/lesteve/orgs",
"repos_url": "https://api.github.com/users/lesteve/repos",
"events_url": "https://api.github.com/users/lesteve/events{/privacy}",
"received_events_url": "https://api.github.com/users/lesteve/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33266/reactions",
"total_count": 1,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 1
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33266/timeline | null | completed | null | null | null | false |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33265 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33265/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33265/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33265/events | https://github.com/scikit-learn/scikit-learn/issues/33265 | 3,929,106,528 | I_kwDOAAzd1s7qMWhg | 33,265 | π Feature Request: Integrate `RkCNN` (Random k Conditional Nearest Neighbor) into scikit-learn-compatible API | {
"login": "ayaanhossain",
"id": 26147572,
"node_id": "MDQ6VXNlcjI2MTQ3NTcy",
"avatar_url": "https://avatars.githubusercontent.com/u/26147572?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ayaanhossain",
"html_url": "https://github.com/ayaanhossain",
"followers_url": "https://api.github.com/users/ayaanhossain/followers",
"following_url": "https://api.github.com/users/ayaanhossain/following{/other_user}",
"gists_url": "https://api.github.com/users/ayaanhossain/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ayaanhossain/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ayaanhossain/subscriptions",
"organizations_url": "https://api.github.com/users/ayaanhossain/orgs",
"repos_url": "https://api.github.com/users/ayaanhossain/repos",
"events_url": "https://api.github.com/users/ayaanhossain/events{/privacy}",
"received_events_url": "https://api.github.com/users/ayaanhossain/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 12995756,
"node_id": "MDU6TGFiZWwxMjk5NTc1Ng==",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/New%20Feature",
"name": "New Feature",
"color": "02e10c",
"default": false,
"description": null
},
{
"id": 3631152487,
"node_id": "LA_kwDOAAzd1s7Ybv1... | closed | false | [] | null | 2 | 2026-02-11T23:15:40 | 2026-02-12T15:32:04 | 2026-02-12T08:31:56 | null | NONE | null | null | {
"total": 0,
"completed": 0,
"percent_completed": 0
} | {
"blocked_by": 0,
"total_blocked_by": 0,
"blocking": 0,
"total_blocking": 0
} | ### Describe the workflow you want to enable
### Summary
This issue proposes integrating **Random k Conditional Nearest Neighbor (RkCNN)** β as described in *PeerJ Computer Science (2025)* β into a fully scikit-learn-compliant estimator interface, enabling seamless use with pipelines, cross-validation, and hyperparameter tuning.
Paper: https://peerj.com/articles/cs-2497/
Reference implementation (authors): https://dfzljdn9uc3pi.cloudfront.net/2025/cs-2497/1/RandomkCNN.py
---
### Motivation
Nearest neighbor methods degrade in high-dimensional settings due to irrelevant/noisy features. RkCNN addresses this by:
- Sampling multiple random feature subsets
- Training kCNN models on each subset
- Computing a **separation score** (between-class / within-class variance ratio)
- Weighting or filtering subsets based on their discriminative power
- Aggregating predictions via weighted probability averaging
This approach improves robustness in high-dimensional problems (e.g., gene expression, embeddings, sparse features) while maintaining the simplicity and interpretability of kNN-style classifiers.
However, the current implementation:
- Does not fully adhere to modern scikit-learn API standards
- Lacks strict estimator validation (`check_estimator`)
- Does not clearly separate model logic from sklearn mixins
- Could benefit from vectorization and improved maintainability
A cleaned, standardized implementation would make RkCNN production-ready and interoperable with:
- `Pipeline`
- `GridSearchCV`
- `cross_val_score`
- Model persistence (`joblib`)
- scikit-learn-compatible tooling
---
### Proposed Improvements
1. Refactor into a fully compliant estimator:
- Inherit from `BaseEstimator` and `ClassifierMixin`
- Implement `fit`, `predict`, `predict_proba`
- Ensure `get_params` / `set_params` compatibility
2. Improve internal structure:
- Separate subset sampling, scoring, and aggregation logic
- Vectorize separation score computation
- Avoid redundant neighbor model instantiation where possible
3. Add:
- Deterministic `random_state`
- Input validation using `check_X_y`, `check_array`
- Unit tests
- Documentation and examples
4. Optional enhancements:
- Parallel subset training (`n_jobs`)
- Support for sparse input
- Option to toggle weighting vs. top-r filtering
---
### Expected Benefits
- Stronger high-dimensional classifier within sklearn ecosystem
- Drop-in alternative to vanilla kNN
- Better robustness without heavy feature engineering
- Compatible with modern ML workflows
---
### Acceptance Criteria
- [ ] Fully sklearn-compatible estimator
- [ ] Passes `check_estimator`
- [ ] Supports `predict_proba`
- [ ] Reproducible via `random_state`
- [ ] Unit tests included
- [ ] Documentation example added
### Describe your proposed solution
Implement `RkCNN` within `sklearn.neighbors` or `sklearn.ensemble` as appropriate for first class support.
### Describe alternatives you've considered, if relevant
None.
### Additional context
None. | {
"login": "StefanieSenger",
"id": 91849487,
"node_id": "U_kgDOBXmDDw",
"avatar_url": "https://avatars.githubusercontent.com/u/91849487?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/StefanieSenger",
"html_url": "https://github.com/StefanieSenger",
"followers_url": "https://api.github.com/users/StefanieSenger/followers",
"following_url": "https://api.github.com/users/StefanieSenger/following{/other_user}",
"gists_url": "https://api.github.com/users/StefanieSenger/gists{/gist_id}",
"starred_url": "https://api.github.com/users/StefanieSenger/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/StefanieSenger/subscriptions",
"organizations_url": "https://api.github.com/users/StefanieSenger/orgs",
"repos_url": "https://api.github.com/users/StefanieSenger/repos",
"events_url": "https://api.github.com/users/StefanieSenger/events{/privacy}",
"received_events_url": "https://api.github.com/users/StefanieSenger/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33265/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33265/timeline | null | completed | null | null | null | false |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33264 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33264/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33264/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33264/events | https://github.com/scikit-learn/scikit-learn/pull/33264 | 3,928,329,831 | PR_kwDOAAzd1s7DGUjw | 33,264 | MNT remove unused function in PowerTransformer | {
"login": "lorentzenchr",
"id": 15324633,
"node_id": "MDQ6VXNlcjE1MzI0NjMz",
"avatar_url": "https://avatars.githubusercontent.com/u/15324633?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/lorentzenchr",
"html_url": "https://github.com/lorentzenchr",
"followers_url": "https://api.github.com/users/lorentzenchr/followers",
"following_url": "https://api.github.com/users/lorentzenchr/following{/other_user}",
"gists_url": "https://api.github.com/users/lorentzenchr/gists{/gist_id}",
"starred_url": "https://api.github.com/users/lorentzenchr/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lorentzenchr/subscriptions",
"organizations_url": "https://api.github.com/users/lorentzenchr/orgs",
"repos_url": "https://api.github.com/users/lorentzenchr/repos",
"events_url": "https://api.github.com/users/lorentzenchr/events{/privacy}",
"received_events_url": "https://api.github.com/users/lorentzenchr/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 1815448196,
"node_id": "MDU6TGFiZWwxODE1NDQ4MTk2",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/module:preprocessing",
"name": "module:preprocessing",
"color": "151e91",
"default": false,
"description": ""
},
{
"id": 3730476391,
"node_id": "LA... | closed | false | [] | null | 0 | 2026-02-11T19:37:41 | 2026-02-12T17:00:21 | 2026-02-12T06:53:28 | null | MEMBER | null | null | null | null | #### Reference Issues/PRs
None
#### What does this implement/fix? Explain your changes.
This PR removes an unused function in class PowerTransformer.
#### AI usage disclosure
None | {
"login": "OmarManzoor",
"id": 17495884,
"node_id": "MDQ6VXNlcjE3NDk1ODg0",
"avatar_url": "https://avatars.githubusercontent.com/u/17495884?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/OmarManzoor",
"html_url": "https://github.com/OmarManzoor",
"followers_url": "https://api.github.com/users/OmarManzoor/followers",
"following_url": "https://api.github.com/users/OmarManzoor/following{/other_user}",
"gists_url": "https://api.github.com/users/OmarManzoor/gists{/gist_id}",
"starred_url": "https://api.github.com/users/OmarManzoor/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/OmarManzoor/subscriptions",
"organizations_url": "https://api.github.com/users/OmarManzoor/orgs",
"repos_url": "https://api.github.com/users/OmarManzoor/repos",
"events_url": "https://api.github.com/users/OmarManzoor/events{/privacy}",
"received_events_url": "https://api.github.com/users/OmarManzoor/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33264/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33264/timeline | null | null | null | false | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/pulls/33264",
"html_url": "https://github.com/scikit-learn/scikit-learn/pull/33264",
"diff_url": "https://github.com/scikit-learn/scikit-learn/pull/33264.diff",
"patch_url": "https://github.com/scikit-learn/scikit-learn/pull/33264.patch",
"merged_at": "2026-02-12T06:53:28"
} | true |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33263 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33263/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33263/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33263/events | https://github.com/scikit-learn/scikit-learn/pull/33263 | 3,926,587,837 | PR_kwDOAAzd1s7DAb5H | 33,263 | Add array API support for `FeatureUnion` | {
"login": "ogrisel",
"id": 89061,
"node_id": "MDQ6VXNlcjg5MDYx",
"avatar_url": "https://avatars.githubusercontent.com/u/89061?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ogrisel",
"html_url": "https://github.com/ogrisel",
"followers_url": "https://api.github.com/users/ogrisel/followers",
"following_url": "https://api.github.com/users/ogrisel/following{/other_user}",
"gists_url": "https://api.github.com/users/ogrisel/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ogrisel/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ogrisel/subscriptions",
"organizations_url": "https://api.github.com/users/ogrisel/orgs",
"repos_url": "https://api.github.com/users/ogrisel/repos",
"events_url": "https://api.github.com/users/ogrisel/events{/privacy}",
"received_events_url": "https://api.github.com/users/ogrisel/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 1815450942,
"node_id": "MDU6TGFiZWwxODE1NDUwOTQy",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/module:pipeline",
"name": "module:pipeline",
"color": "151e91",
"default": false,
"description": ""
},
{
"id": 3730476391,
"node_id": "LA_kwDOAAzd1... | closed | false | [] | null | 0 | 2026-02-11T13:32:10 | 2026-02-12T09:08:30 | 2026-02-12T07:00:49 | null | MEMBER | null | null | null | null | While working on an array API demo, I realized that `FeatureUnion` did not support array API even when the underlying transformers do. Here is a fix.
#### AI usage disclosure
I used AI assistance for:
- [x] Code generation (e.g., when writing an implementation or fixing a bug)
- [x] Test/benchmark generation
- [ ] Documentation (including examples)
- [ ] Research and understanding
I used cursor but manually reviewed and improved the generated code.
| {
"login": "OmarManzoor",
"id": 17495884,
"node_id": "MDQ6VXNlcjE3NDk1ODg0",
"avatar_url": "https://avatars.githubusercontent.com/u/17495884?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/OmarManzoor",
"html_url": "https://github.com/OmarManzoor",
"followers_url": "https://api.github.com/users/OmarManzoor/followers",
"following_url": "https://api.github.com/users/OmarManzoor/following{/other_user}",
"gists_url": "https://api.github.com/users/OmarManzoor/gists{/gist_id}",
"starred_url": "https://api.github.com/users/OmarManzoor/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/OmarManzoor/subscriptions",
"organizations_url": "https://api.github.com/users/OmarManzoor/orgs",
"repos_url": "https://api.github.com/users/OmarManzoor/repos",
"events_url": "https://api.github.com/users/OmarManzoor/events{/privacy}",
"received_events_url": "https://api.github.com/users/OmarManzoor/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33263/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33263/timeline | null | null | null | false | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/pulls/33263",
"html_url": "https://github.com/scikit-learn/scikit-learn/pull/33263",
"diff_url": "https://github.com/scikit-learn/scikit-learn/pull/33263.diff",
"patch_url": "https://github.com/scikit-learn/scikit-learn/pull/33263.patch",
"merged_at": "2026-02-12T07:00:49"
} | true |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33262 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33262/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33262/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33262/events | https://github.com/scikit-learn/scikit-learn/pull/33262 | 3,925,505,258 | PR_kwDOAAzd1s7C8zhD | 33,262 | PERF Fix the eigsh call in spectral embedding | {
"login": "dkobak",
"id": 8970231,
"node_id": "MDQ6VXNlcjg5NzAyMzE=",
"avatar_url": "https://avatars.githubusercontent.com/u/8970231?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/dkobak",
"html_url": "https://github.com/dkobak",
"followers_url": "https://api.github.com/users/dkobak/followers",
"following_url": "https://api.github.com/users/dkobak/following{/other_user}",
"gists_url": "https://api.github.com/users/dkobak/gists{/gist_id}",
"starred_url": "https://api.github.com/users/dkobak/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/dkobak/subscriptions",
"organizations_url": "https://api.github.com/users/dkobak/orgs",
"repos_url": "https://api.github.com/users/dkobak/repos",
"events_url": "https://api.github.com/users/dkobak/events{/privacy}",
"received_events_url": "https://api.github.com/users/dkobak/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 1815444974,
"node_id": "MDU6TGFiZWwxODE1NDQ0OTc0",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/module:manifold",
"name": "module:manifold",
"color": "151e91",
"default": false,
"description": ""
}
] | open | false | [] | null | 14 | 2026-02-11T09:16:26 | 2026-03-03T12:52:30 | null | null | CONTRIBUTOR | null | null | null | null | Fixes #33242
This fixes the way `eigsh()` is called in spectral embedding. As a result, it gets faster:
```python
import numpy as np
from sklearn.manifold import SpectralEmbedding
from sklearn.datasets import make_swiss_roll
X, _ = make_swiss_roll(n_samples=10_000)
%time Z = SpectralEmbedding(eigen_solver="arpack", affinity="rbf", eigen_tol=0).fit_transform(X)
```
On my machine, this runs in 24 seconds on current main, and in 11 second after my fix. I am using `affinity="rbf"` here to get a dense `N x N` affinity matrix (with sparse matrix it's much faster). | null | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33262/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33262/timeline | null | null | null | false | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/pulls/33262",
"html_url": "https://github.com/scikit-learn/scikit-learn/pull/33262",
"diff_url": "https://github.com/scikit-learn/scikit-learn/pull/33262.diff",
"patch_url": "https://github.com/scikit-learn/scikit-learn/pull/33262.patch",
"merged_at": null
} | true |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33261 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33261/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33261/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33261/events | https://github.com/scikit-learn/scikit-learn/pull/33261 | 3,925,358,214 | PR_kwDOAAzd1s7C8Ubb | 33,261 | fix(doc): fix mutable default arguments in doi_role.py | {
"login": "llukito",
"id": 115102487,
"node_id": "U_kgDOBtxTFw",
"avatar_url": "https://avatars.githubusercontent.com/u/115102487?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/llukito",
"html_url": "https://github.com/llukito",
"followers_url": "https://api.github.com/users/llukito/followers",
"following_url": "https://api.github.com/users/llukito/following{/other_user}",
"gists_url": "https://api.github.com/users/llukito/gists{/gist_id}",
"starred_url": "https://api.github.com/users/llukito/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/llukito/subscriptions",
"organizations_url": "https://api.github.com/users/llukito/orgs",
"repos_url": "https://api.github.com/users/llukito/repos",
"events_url": "https://api.github.com/users/llukito/events{/privacy}",
"received_events_url": "https://api.github.com/users/llukito/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [] | open | false | [] | null | 1 | 2026-02-11T08:34:59 | 2026-02-18T08:02:02 | null | null | NONE | null | null | null | null | #### Reference Issues/PRs
Fixes mutable default arguments in `doc/sphinxext/doi_role.py`.
#### What does this implement/fix? Explain your changes.
This PR replaces mutable default arguments (`options={}` and `content=[]`) with `None` in the `reference_role` function.
In Python, default arguments are evaluated once at definition time. Using mutable types (like lists or dicts) as default arguments can lead to state persisting across function calls, potentially causing unexpected side effects.
I have updated the function signature to use `None` and added the standard initialization check:
```python
if options is None:
options = {}
if content is None:
content = [] | null | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33261/reactions",
"total_count": 0,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 0
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33261/timeline | null | null | null | false | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/pulls/33261",
"html_url": "https://github.com/scikit-learn/scikit-learn/pull/33261",
"diff_url": "https://github.com/scikit-learn/scikit-learn/pull/33261.diff",
"patch_url": "https://github.com/scikit-learn/scikit-learn/pull/33261.patch",
"merged_at": null
} | true |
https://api.github.com/repos/scikit-learn/scikit-learn/issues/33260 | https://api.github.com/repos/scikit-learn/scikit-learn | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33260/labels{/name} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33260/comments | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33260/events | https://github.com/scikit-learn/scikit-learn/pull/33260 | 3,923,792,871 | PR_kwDOAAzd1s7C3L2w | 33,260 | NMF error with SciPy dev | {
"login": "ericpre",
"id": 11851990,
"node_id": "MDQ6VXNlcjExODUxOTkw",
"avatar_url": "https://avatars.githubusercontent.com/u/11851990?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/ericpre",
"html_url": "https://github.com/ericpre",
"followers_url": "https://api.github.com/users/ericpre/followers",
"following_url": "https://api.github.com/users/ericpre/following{/other_user}",
"gists_url": "https://api.github.com/users/ericpre/gists{/gist_id}",
"starred_url": "https://api.github.com/users/ericpre/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/ericpre/subscriptions",
"organizations_url": "https://api.github.com/users/ericpre/orgs",
"repos_url": "https://api.github.com/users/ericpre/repos",
"events_url": "https://api.github.com/users/ericpre/events{/privacy}",
"received_events_url": "https://api.github.com/users/ericpre/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
} | [
{
"id": 1815438551,
"node_id": "MDU6TGFiZWwxODE1NDM4NTUx",
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/labels/module:decomposition",
"name": "module:decomposition",
"color": "151e91",
"default": false,
"description": ""
},
{
"id": 5464227604,
"node_id": "LA... | open | false | [] | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/milestones/70",
"html_url": "https://github.com/scikit-learn/scikit-learn/milestone/70",
"labels_url": "https://api.github.com/repos/scikit-learn/scikit-learn/milestones/70/labels",
"id": 14414033,
"node_id": "MI_kwDOAAzd1s4A2_DR",
"number": 70,
"title": "1.8.1",
"description": "",
"creator": {
"login": "lesteve",
"id": 1680079,
"node_id": "MDQ6VXNlcjE2ODAwNzk=",
"avatar_url": "https://avatars.githubusercontent.com/u/1680079?v=4",
"gravatar_id": "",
"url": "https://api.github.com/users/lesteve",
"html_url": "https://github.com/lesteve",
"followers_url": "https://api.github.com/users/lesteve/followers",
"following_url": "https://api.github.com/users/lesteve/following{/other_user}",
"gists_url": "https://api.github.com/users/lesteve/gists{/gist_id}",
"starred_url": "https://api.github.com/users/lesteve/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/lesteve/subscriptions",
"organizations_url": "https://api.github.com/users/lesteve/orgs",
"repos_url": "https://api.github.com/users/lesteve/repos",
"events_url": "https://api.github.com/users/lesteve/events{/privacy}",
"received_events_url": "https://api.github.com/users/lesteve/received_events",
"type": "User",
"user_view_type": "public",
"site_admin": false
},
"open_issues": 4,
"closed_issues": 5,
"state": "open",
"created_at": "2025-12-23T17:07:24",
"updated_at": "2026-03-03T04:28:26",
"due_on": "2026-03-03T00:00:00",
"closed_at": null
} | 3 | 2026-02-10T22:10:28 | 2026-02-24T14:33:16 | null | null | CONTRIBUTOR | null | null | null | null | <!--
π Thanks for contributing a pull request!
π Please ensure you have taken a look at the contribution guidelines:
https://github.com/scikit-learn/scikit-learn/blob/main/CONTRIBUTING.md
β
In particular following the pull request checklist will increase the likelihood
of having maintainers review your PR:
https://scikit-learn.org/dev/developers/contributing.html#pull-request-checklist
π If your PR is likely to affect users, you will need to add a changelog entry
describing your PR changes, see:
https://github.com/scikit-learn/scikit-learn/blob/main/doc/whats_new/upcoming_changes/README.md
-->
#### Reference Issues/PRs
<!--
Example: Fixes #1234. See also #3456.
Please use keywords (e.g., Fixes) to create link to the issues or pull requests
you resolved, so that they will automatically be closed when your pull request
is merged. See https://github.com/blog/1506-closing-issues-via-pull-requests
-->
The following code raise the error with scipy dev:
```python
from sklearn.datasets import make_low_rank_matrix
from sklearn.decomposition import NMF
X = make_low_rank_matrix(n_samples=20, n_features=100, effective_rank=5, random_state=123) + 1
nmf = NMF(n_components=5).fit_transform(X)
```
The error is:
```python
Traceback (most recent call last):
File "~\nmf_failure.py", line 5, in <module>
nmf = NMF(n_components=5).fit_transform(X)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "~\miniforge3\envs\dep_dev\Lib\site-packages\sklearn\utils\_set_output.py", line 316, in wrapped
data_to_wrap = f(self, X, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "~\miniforge3\envs\dep_dev\Lib\site-packages\sklearn\base.py", line 1336, in wrapper
return fit_method(estimator, *args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "~\miniforge3\envs\dep_dev\Lib\site-packages\sklearn\decomposition\_nmf.py", line 1619, in fit_transform
W, H, n_iter = self._fit_transform(X, W=W, H=H)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "~\miniforge3\envs\dep_dev\Lib\site-packages\sklearn\decomposition\_nmf.py", line 1687, in _fit_transform
W, H, n_iter = _fit_coordinate_descent(
^^^^^^^^^^^^^^^^^^^^^^^^
File "~\miniforge3\envs\dep_dev\Lib\site-packages\sklearn\decomposition\_nmf.py", line 493, in _fit_coordinate_descent
violation += _update_coordinate_descent(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "~\miniforge3\envs\dep_dev\Lib\site-packages\sklearn\decomposition\_nmf.py", line 396, in _update_coordinate_descent
return _update_cdnmf_fast(W, HHt, XHt, permutation)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "sklearn/decomposition/_cdnmf_fast.pyx", line 8, in sklearn.decomposition._cdnmf_fast._update_cdnmf_fast
def _update_cdnmf_fast(floating[:, ::1] W, floating[:, :] HHt,
File "<stringsource>", line 664, in View.MemoryView.memoryview_cwrapper
File "<stringsource>", line 352, in View.MemoryView.memoryview.__cinit__
ValueError: ndarray is not C-contiguous
```
As discussed in https://github.com/scipy/scipy/issues/24538, this is related to a change in the C/F ordering in the output of `scipy.linalg.svd`.
#### What does this implement/fix? Explain your changes.
Specifying the order of the array at creating fixes the issue.
#### AI usage disclosure
<!--
If AI tools were involved in creating this PR, please check all boxes that apply
below and make sure that you adhere to our Automated Contributions Policy:
https://scikit-learn.org/dev/developers/contributing.html#automated-contributions-policy
-->
I used AI assistance for:
- [ ] Code generation (e.g., when writing an implementation or fixing a bug)
- [ ] Test/benchmark generation
- [ ] Documentation (including examples)
- [ ] Research and understanding
#### Any other comments?
I am surprised that this is not caught on CI?
<!--
Thank you for your patience. Changes to scikit-learn require careful
attention, but with limited maintainer time, not every contribution can be reviewed
quickly.
For more information and tips on improving your pull request, see:
https://scikit-learn.org/dev/faq.html#why-is-my-pull-request-not-getting-any-attention.
Thanks for contributing!
-->
| null | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/issues/33260/reactions",
"total_count": 1,
"+1": 0,
"-1": 0,
"laugh": 0,
"hooray": 0,
"confused": 0,
"heart": 0,
"rocket": 0,
"eyes": 1
} | https://api.github.com/repos/scikit-learn/scikit-learn/issues/33260/timeline | null | null | null | false | {
"url": "https://api.github.com/repos/scikit-learn/scikit-learn/pulls/33260",
"html_url": "https://github.com/scikit-learn/scikit-learn/pull/33260",
"diff_url": "https://github.com/scikit-learn/scikit-learn/pull/33260.diff",
"patch_url": "https://github.com/scikit-learn/scikit-learn/pull/33260.patch",
"merged_at": null
} | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.