Skip to content

DOC Release highlights for 1.8 - #32809

Merged
betatim merged 55 commits into
scikit-learn:mainfrom
lesteve:release-highlights-1.8
Dec 9, 2025
Merged

betatim merged 55 commits into
scikit-learn:mainfrom
lesteve:release-highlights-1.8

Conversation

@lesteve

@lesteve lesteve commented Nov 28, 2025 •

Copy link
Copy Markdown
Member

Topics I have thought of by looking at the changelog, in no particular order

Other things I am not sure whether they are release highlights noteworthy, TSNE with PCA initialization, MDS with different metrics, QuadraticDiscriminantAnalysis improvements.

@github-actions

github-actions Bot commented Nov 28, 2025 •

Copy link
Copy Markdown

✔️ Linting Passed

All linting checks passed. Your pull request is in excellent shape! ☀️

Generated for commit: 77fa4a2. Link to the linter CI: here

print(f"Fitting ElasticNetCV took {toc - tic:.3} seconds.")

# %%
# API changes in logistic regression

@lesteve lesteve Dec 1, 2025 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for writing this! I am a bit undecided about mentioning the Logisticregression{,CV} deprecations in the release highlights.

Part of me thinks that deprecations are not so "crucial" and don't really belong in the release highlights. Part of me thinks that the LogisticRegression{,CV} changes may catch a few users and it would be nice to have a good place where they are summarized. Right now, my feeling is that they are a bit scattered in the changelog and in the docstrings.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was even thinking about linking the issue where deprecation or not of C is discussed 😅

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd keep it in the highlights. If 1.8 was the end of the story it might not be worth it, but more changes are happening and the way to handle them is a bit more unusual than a run of the mill deprecation (temporary argument).

@lesteve lesteve added this to the 1.8 milestone Dec 2, 2025
@lesteve

lesteve commented Dec 2, 2025

Copy link
Copy Markdown
Member Author

OK I am going to start pinging people which I feel are way better placed than me to draft some of the entries left as TODO, please feel free to push into this PR branch directly 🙏!

It doesn't have to be perfect, once there is an initial draft for the section, we can always improve the release highlights together.

@ogrisel ogrisel left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

First pass of contributions.

@virchan virchan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't have the permission to push into the PR branch directly, so I will leave it as a suggestion here.

Co-authored-by: Olivier Grisel <[email protected]>
Co-authored-by: Virgil Chan <[email protected]>
@github-actions github-actions Bot added the CI:Linter failure The linter CI is failing on this PR label Dec 3, 2025
@github-actions github-actions Bot removed the CI:Linter failure The linter CI is failing on this PR label Dec 3, 2025
Co-authored-by: Christian Lorentzen <[email protected]>
@github-actions github-actions Bot added the CI:Linter failure The linter CI is failing on this PR label Dec 3, 2025
@github-actions github-actions Bot removed the CI:Linter failure The linter CI is failing on this PR label Dec 3, 2025
@ogrisel ogrisel self-assigned this Dec 3, 2025
# in particular `how to install a free-threaded CPython <https://py-free-threading.github.io/installing_cpython/>`_
# and `Ecosystem compatibility tracking <https://py-free-threading.github.io/tracking/>`_.
#
# The long term goal of free-threaded Python is to more efficiently leverage

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the goal of this paragraph? My impression is that it is to tell people that right now they need to reconfigure joblib and to make them aware that this is still in an early phase of development (in scikit-learn). If yes, should we remove the explanation of how free-threaded python offers the promise to remove process based workers and directly say something like: "You need to call joblib.parallel_config(backend="threading") to change the default backend to "threading" and use n_jobs>1 to take advantage of free-threading for parallel computation. Note: free-threaded Python and support for it is brand new, this means that there are open issues to fix before making this the default."

@lesteve lesteve Dec 4, 2025 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Olivier wrote this, and I guess the goal is to manage expectations. One tricky thing in this section is to hit the right balance between "this is cool, you should definitely try this!" because we would love user feed-back and "actually unless you turn a few knobs here and there, you will likely not notice any difference".

Basically, if you expect to switch to free-threading and your code to be faster, in most cases you will be disappointed, it may actually go a bit slower (e.g. JIT and free-threaded don't play nice with each other or something like this).

For completeness: here is a user report from July 2024 where "just switching to free-threaded" helped #29587, but I guess it's a bit special.

Switching the default joblib backend may go faster by using threads instead of processes. So if a user wants to do this and report issues, it would be more than welcome!

In the future joblib may use threading as the default backend (only for free-threaded I guess) but this is longer-term would need to test this a bit more. I did test it a bit the past but there were issues. Some of them were likely due to Python 3.13 and have gone away.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we want people to try this (with the "this is experimental!" caveat) I think we should start the paragraph with what they have to do.

From what I understand:

  • use Python 3.14
  • n_jobs>1
  • switch the joblib backend to threading

Is that right?

Maybe you don't have to switch the joblib backend and still get some improvements in some areas - but is it worth trying to explain this finer point to users vs telling them explicitly "do X, Y and Z". I think I am in the camp of "give clear instructions"

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your comments, they make a lot of sense. I'll try to have a closer look at improving the free-threaded section!

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use Python 3.14

This is not enough. You need to use a free-threaded build of CPython 3.14, not the usual one as explained in the linked doc.

@ogrisel

ogrisel commented Dec 9, 2025

Copy link
Copy Markdown
Member

For the record, I granted permissions to edit the colab notebook to a few reviewers who asked for it over on discord.

@lorentzenchr

Copy link
Copy Markdown
Member

hopefully it doesn't feel like saying "your work had no value"

If instead I get our vote on deprecating C, it's all fine 😁

@lesteve

lesteve commented Dec 9, 2025 •

Copy link
Copy Markdown
Member Author

Rendered doc for last chance review before merge 😉! (or even after merge, you can always backport it to release branch).

@adrinjalali adrinjalali moved this to Todo in Labs Dec 9, 2025
@adrinjalali adrinjalali added this to Labs Dec 9, 2025
@adrinjalali adrinjalali moved this from Todo to In progress - High Priority in Labs Dec 9, 2025

@lorentzenchr lorentzenchr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To be able to merge.

@betatim betatim left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I approve of this message

@betatim
betatim enabled auto-merge (squash) December 9, 2025 13:09
@lesteve

lesteve commented Dec 9, 2025

Copy link
Copy Markdown
Member Author

Thanks everyone for your contributions, this feels like the end result is very nice!

@betatim
betatim merged commit e975228 into scikit-learn:main Dec 9, 2025
@github-project-automation github-project-automation Bot moved this from In progress - High Priority to Done in Labs Dec 9, 2025
@lesteve
lesteve deleted the release-highlights-1.8 branch December 9, 2025 13:27
@lesteve lesteve mentioned this pull request Dec 9, 2025
13 of 14 tasks
lesteve added a commit to lesteve/scikit-learn that referenced this pull request Dec 9, 2025
Co-authored-by: Christian Lorentzen <[email protected]>
Co-authored-by: Olivier Grisel <[email protected]>
Co-authored-by: Virgil Chan <[email protected]>
Co-authored-by: Omar Salman <[email protected]>
Co-authored-by: Tim Head <[email protected]>
Co-authored-by: Jérémie du Boisberranger <[email protected]>
lesteve added a commit that referenced this pull request Dec 9, 2025
Co-authored-by: Christian Lorentzen <[email protected]>
Co-authored-by: Olivier Grisel <[email protected]>
Co-authored-by: Virgil Chan <[email protected]>
Co-authored-by: Omar Salman <[email protected]>
Co-authored-by: Tim Head <[email protected]>
Co-authored-by: Jérémie du Boisberranger <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants