Talip7/scikit-learn-issues-multilabel huggingface dataset:
'Section Navigation' bar missing from stable documentation website on several pages

### Describe the issue linked to the documentation

When on the stable version of the documentation website the 'Section Navigation' header on the left side of the page remains present, but the navigation bar contents disappear. While on the dev page the feature functions as expected.
It should be noted this issue is inconsistent. Some stable pages list the section navigation and work perfectly fine ([like this one here](https://scikit-learn.org/stable/modules/tree.html)) while others do not.

This presents an issue as some links take the user to the stable version and others the dev version.

For example: [Present Here](https://scikit-learn.org/dev/developers/contributing.html#submitting-a-bug-report-or-a-feature-request), [Absent Here](https://scikit-learn.org/stable/developers/contributing.html#submitting-a-bug-report-or-a-feature-request)

<img width="2046" alt="Screenshot 2024-11-19 at 19 22 09" src="https://github.com/user-attachments/assets/fe9e7e2a-4c04-4245-92e9-08dd697882ec">
<img width="2048" alt="Screenshot 2024-11-19 at 19 22 39" src="https://github.com/user-attachments/assets/378dc707-0dde-4abf-bc4a-4f38a0ff9513">

Discovered running on Chrome Browser Version 130.0.6723.117

COMMENT:
/take

Labels: Documentation, Moderate
'Section Navigation' bar missing from stable documentation website on several pages

### Describe the issue linked to the documentation

When on the stable version of the documentation website the 'Section Navigation' header on the left side of the page remains present, but the navigation bar contents disappear. While on the dev page the feature functions as expected.
It should be noted this issue is inconsistent. Some stable pages list the section navigation and work perfectly fine ([like this one here](https://scikit-learn.org/stable/modules/tree.html)) while others do not.

This presents an issue as some links take the user to the stable version and others the dev version.

For example: [Present Here](https://scikit-learn.org/dev/developers/contributing.html#submitting-a-bug-report-or-a-feature-request), [Absent Here](https://scikit-learn.org/stable/developers/contributing.html#submitting-a-bug-report-or-a-feature-request)

<img width="2046" alt="Screenshot 2024-11-19 at 19 22 09" src="https://github.com/user-attachments/assets/fe9e7e2a-4c04-4245-92e9-08dd697882ec">
<img width="2048" alt="Screenshot 2024-11-19 at 19 22 39" src="https://github.com/user-attachments/assets/378dc707-0dde-4abf-bc4a-4f38a0ff9513">

Discovered running on Chrome Browser Version 130.0.6723.117

COMMENT:
Hi @staehlmich 
Are you still working on this? If not, I can take it over. 
Let me know, thanks!

Labels: Documentation, Moderate
'Section Navigation' bar missing from stable documentation website on several pages

### Describe the issue linked to the documentation

When on the stable version of the documentation website the 'Section Navigation' header on the left side of the page remains present, but the navigation bar contents disappear. While on the dev page the feature functions as expected.
It should be noted this issue is inconsistent. Some stable pages list the section navigation and work perfectly fine ([like this one here](https://scikit-learn.org/stable/modules/tree.html)) while others do not.

This presents an issue as some links take the user to the stable version and others the dev version.

For example: [Present Here](https://scikit-learn.org/dev/developers/contributing.html#submitting-a-bug-report-or-a-feature-request), [Absent Here](https://scikit-learn.org/stable/developers/contributing.html#submitting-a-bug-report-or-a-feature-request)

<img width="2046" alt="Screenshot 2024-11-19 at 19 22 09" src="https://github.com/user-attachments/assets/fe9e7e2a-4c04-4245-92e9-08dd697882ec">
<img width="2048" alt="Screenshot 2024-11-19 at 19 22 39" src="https://github.com/user-attachments/assets/378dc707-0dde-4abf-bc4a-4f38a0ff9513">

Discovered running on Chrome Browser Version 130.0.6723.117

COMMENT:
Hi! I’m a beginner and would like to work on this issue. Can I take it?

Labels: Documentation, Moderate
'Section Navigation' bar missing from stable documentation website on several pages

### Describe the issue linked to the documentation

When on the stable version of the documentation website the 'Section Navigation' header on the left side of the page remains present, but the navigation bar contents disappear. While on the dev page the feature functions as expected.
It should be noted this issue is inconsistent. Some stable pages list the section navigation and work perfectly fine ([like this one here](https://scikit-learn.org/stable/modules/tree.html)) while others do not.

This presents an issue as some links take the user to the stable version and others the dev version.

For example: [Present Here](https://scikit-learn.org/dev/developers/contributing.html#submitting-a-bug-report-or-a-feature-request), [Absent Here](https://scikit-learn.org/stable/developers/contributing.html#submitting-a-bug-report-or-a-feature-request)

<img width="2046" alt="Screenshot 2024-11-19 at 19 22 09" src="https://github.com/user-attachments/assets/fe9e7e2a-4c04-4245-92e9-08dd697882ec">
<img width="2048" alt="Screenshot 2024-11-19 at 19 22 39" src="https://github.com/user-attachments/assets/378dc707-0dde-4abf-bc4a-4f38a0ff9513">

Discovered running on Chrome Browser Version 130.0.6723.117

COMMENT:
> Hi [@staehlmich](https://github.com/staehlmich) Are you still working on this? If not, I can take it over. Let me know, thanks!

Hi @ShauryaDusht . You can take over this issue. Unfortunately I'm busy with other things at the moment.

Labels: Documentation, Moderate
'Section Navigation' bar missing from stable documentation website on several pages

### Describe the issue linked to the documentation

When on the stable version of the documentation website the 'Section Navigation' header on the left side of the page remains present, but the navigation bar contents disappear. While on the dev page the feature functions as expected.
It should be noted this issue is inconsistent. Some stable pages list the section navigation and work perfectly fine ([like this one here](https://scikit-learn.org/stable/modules/tree.html)) while others do not.

This presents an issue as some links take the user to the stable version and others the dev version.

For example: [Present Here](https://scikit-learn.org/dev/developers/contributing.html#submitting-a-bug-report-or-a-feature-request), [Absent Here](https://scikit-learn.org/stable/developers/contributing.html#submitting-a-bug-report-or-a-feature-request)

<img width="2046" alt="Screenshot 2024-11-19 at 19 22 09" src="https://github.com/user-attachments/assets/fe9e7e2a-4c04-4245-92e9-08dd697882ec">
<img width="2048" alt="Screenshot 2024-11-19 at 19 22 39" src="https://github.com/user-attachments/assets/378dc707-0dde-4abf-bc4a-4f38a0ff9513">

Discovered running on Chrome Browser Version 130.0.6723.117

COMMENT:
Hi! I'm Preeti and I'd love to work on this issue. Thanks for the context above — I’ll look into disabling the navigation manually as suggested. Let me know if there are any specific instructions or expectations.

Looking forward to contributing!

Labels: Documentation, Moderate
'Section Navigation' bar missing from stable documentation website on several pages

### Describe the issue linked to the documentation

When on the stable version of the documentation website the 'Section Navigation' header on the left side of the page remains present, but the navigation bar contents disappear. While on the dev page the feature functions as expected.
It should be noted this issue is inconsistent. Some stable pages list the section navigation and work perfectly fine ([like this one here](https://scikit-learn.org/stable/modules/tree.html)) while others do not.

This presents an issue as some links take the user to the stable version and others the dev version.

For example: [Present Here](https://scikit-learn.org/dev/developers/contributing.html#submitting-a-bug-report-or-a-feature-request), [Absent Here](https://scikit-learn.org/stable/developers/contributing.html#submitting-a-bug-report-or-a-feature-request)

<img width="2046" alt="Screenshot 2024-11-19 at 19 22 09" src="https://github.com/user-attachments/assets/fe9e7e2a-4c04-4245-92e9-08dd697882ec">
<img width="2048" alt="Screenshot 2024-11-19 at 19 22 39" src="https://github.com/user-attachments/assets/378dc707-0dde-4abf-bc4a-4f38a0ff9513">

Discovered running on Chrome Browser Version 130.0.6723.117

COMMENT:
I'd like to help restore the missing navigation bar. Could you confirm which specific pages are affected and if there are any recent changes to the docs theme that might have caused this?

Labels: Documentation, Moderate
'Section Navigation' bar missing from stable documentation website on several pages

### Describe the issue linked to the documentation

When on the stable version of the documentation website the 'Section Navigation' header on the left side of the page remains present, but the navigation bar contents disappear. While on the dev page the feature functions as expected.
It should be noted this issue is inconsistent. Some stable pages list the section navigation and work perfectly fine ([like this one here](https://scikit-learn.org/stable/modules/tree.html)) while others do not.

This presents an issue as some links take the user to the stable version and others the dev version.

For example: [Present Here](https://scikit-learn.org/dev/developers/contributing.html#submitting-a-bug-report-or-a-feature-request), [Absent Here](https://scikit-learn.org/stable/developers/contributing.html#submitting-a-bug-report-or-a-feature-request)

<img width="2046" alt="Screenshot 2024-11-19 at 19 22 09" src="https://github.com/user-attachments/assets/fe9e7e2a-4c04-4245-92e9-08dd697882ec">
<img width="2048" alt="Screenshot 2024-11-19 at 19 22 39" src="https://github.com/user-attachments/assets/378dc707-0dde-4abf-bc4a-4f38a0ff9513">

Discovered running on Chrome Browser Version 130.0.6723.117

COMMENT:
I'd like to work on this issue. Let me investigate the navigation bar configuration and see what might be causing the inconsistent behavior between stable and dev versions.

I notice this issue is assigned to @staehlmich. Are you still actively working on this, or would you like me to take it over?

Labels: Documentation, Moderate
'Section Navigation' bar missing from stable documentation website on several pages

### Describe the issue linked to the documentation

When on the stable version of the documentation website the 'Section Navigation' header on the left side of the page remains present, but the navigation bar contents disappear. While on the dev page the feature functions as expected.
It should be noted this issue is inconsistent. Some stable pages list the section navigation and work perfectly fine ([like this one here](https://scikit-learn.org/stable/modules/tree.html)) while others do not.

This presents an issue as some links take the user to the stable version and others the dev version.

For example: [Present Here](https://scikit-learn.org/dev/developers/contributing.html#submitting-a-bug-report-or-a-feature-request), [Absent Here](https://scikit-learn.org/stable/developers/contributing.html#submitting-a-bug-report-or-a-feature-request)

<img width="2046" alt="Screenshot 2024-11-19 at 19 22 09" src="https://github.com/user-attachments/assets/fe9e7e2a-4c04-4245-92e9-08dd697882ec">
<img width="2048" alt="Screenshot 2024-11-19 at 19 22 39" src="https://github.com/user-attachments/assets/378dc707-0dde-4abf-bc4a-4f38a0ff9513">

Discovered running on Chrome Browser Version 130.0.6723.117

COMMENT:
Hi all 👋

Just a quick update — I'm still interested in contributing to this issue and had previously shared my intent to look into the manual navigation fix. I noticed there’s some active discussion and new contributors offering help, which is great!

Before I proceed further, could someone confirm:

Which specific pages are still missing the navigation bar?

Are we continuing with the temporary manual fix approach (as suggested earlier), or waiting for upstream resolution in pydata-sphinx-theme?

Happy to coordinate and take on part of the work if it’s being split.

Thanks!

cc: @K-Hern @glemaitre @staehlmich

Labels: Documentation, Moderate
'Section Navigation' bar missing from stable documentation website on several pages

### Describe the issue linked to the documentation

When on the stable version of the documentation website the 'Section Navigation' header on the left side of the page remains present, but the navigation bar contents disappear. While on the dev page the feature functions as expected.
It should be noted this issue is inconsistent. Some stable pages list the section navigation and work perfectly fine ([like this one here](https://scikit-learn.org/stable/modules/tree.html)) while others do not.

This presents an issue as some links take the user to the stable version and others the dev version.

For example: [Present Here](https://scikit-learn.org/dev/developers/contributing.html#submitting-a-bug-report-or-a-feature-request), [Absent Here](https://scikit-learn.org/stable/developers/contributing.html#submitting-a-bug-report-or-a-feature-request)

<img width="2046" alt="Screenshot 2024-11-19 at 19 22 09" src="https://github.com/user-attachments/assets/fe9e7e2a-4c04-4245-92e9-08dd697882ec">
<img width="2048" alt="Screenshot 2024-11-19 at 19 22 39" src="https://github.com/user-attachments/assets/378dc707-0dde-4abf-bc4a-4f38a0ff9513">

Discovered running on Chrome Browser Version 130.0.6723.117

COMMENT:
Hi! I’m a student new to open source and this seems like a good first issue to try. I’d love to help fix it. Could you guide me on where the docs are located in the codebase so I can get started? Thanks!

Labels: Documentation, Moderate
'Section Navigation' bar missing from stable documentation website on several pages

### Describe the issue linked to the documentation

When on the stable version of the documentation website the 'Section Navigation' header on the left side of the page remains present, but the navigation bar contents disappear. While on the dev page the feature functions as expected.
It should be noted this issue is inconsistent. Some stable pages list the section navigation and work perfectly fine ([like this one here](https://scikit-learn.org/stable/modules/tree.html)) while others do not.

This presents an issue as some links take the user to the stable version and others the dev version.

For example: [Present Here](https://scikit-learn.org/dev/developers/contributing.html#submitting-a-bug-report-or-a-feature-request), [Absent Here](https://scikit-learn.org/stable/developers/contributing.html#submitting-a-bug-report-or-a-feature-request)

<img width="2046" alt="Screenshot 2024-11-19 at 19 22 09" src="https://github.com/user-attachments/assets/fe9e7e2a-4c04-4245-92e9-08dd697882ec">
<img width="2048" alt="Screenshot 2024-11-19 at 19 22 39" src="https://github.com/user-attachments/assets/378dc707-0dde-4abf-bc4a-4f38a0ff9513">

Discovered running on Chrome Browser Version 130.0.6723.117

COMMENT:
Thanks for your interest everyone! I don't think this is a "good first issue" and I am going to remove the label. If you were looking for a "good first issue" I would suggest you try to find another issue to work on.

Of course, you are more than welcome to try to solve this issue, but don't expect close guidance from maintainers!

If I were to look at this issue, here are the kind of things I would look at:
- investigate which pages have this issue
- figure out whether there is some kind of pattern
- is there a not too hacky way in sphinx (the tool we use to build our documentation) to fix it?
- what about the pydata-sphinx-theme [issue](https://github.com/pydata/pydata-sphinx-theme/issues/1662) does it have some relevant information to understand the problem a bit more

Labels: Documentation, Moderate
LogisticRegression's regularization is scaled by the dataset size

### Describe the workflow you want to enable

Other linear models on https://scikit-learn.org/1.5/modules/linear_model.html have regularization that doesn't depend on the dataset size

### Describe your proposed solution

It would be good to either change the behavior or document it very very very clearly, not only in the user guide as it is now but also in the model documentation.

### Describe alternatives you've considered, if relevant

_No response_

### Additional context

_No response_

COMMENT:
I don't think that we are ready to pay for the change of behaviour cost. However, I don't mind that we had a note in the docstring of the estimator.

Just pinging @lorentzenchr if he has additional thoughts.

Labels: Documentation, Needs Decision, module:linear_model
LogisticRegression's regularization is scaled by the dataset size

### Describe the workflow you want to enable

Other linear models on https://scikit-learn.org/1.5/modules/linear_model.html have regularization that doesn't depend on the dataset size

### Describe your proposed solution

It would be good to either change the behavior or document it very very very clearly, not only in the user guide as it is now but also in the model documentation.

### Describe alternatives you've considered, if relevant

_No response_

### Additional context

_No response_

COMMENT:
I'm not speaking on @lorentzenchr's behalf, but I came across [a similar discussion on Ridge/Lasso regression](https://github.com/scikit-learn/scikit-learn/discussions/23407) where he shared an incredibly helpful comment. I believe it’s relevant to this case as well.

That said, I still think @lorentzenchr is the best person to weigh in on this.

Labels: Documentation, Needs Decision, module:linear_model
LogisticRegression's regularization is scaled by the dataset size

### Describe the workflow you want to enable

Other linear models on https://scikit-learn.org/1.5/modules/linear_model.html have regularization that doesn't depend on the dataset size

### Describe your proposed solution

It would be good to either change the behavior or document it very very very clearly, not only in the user guide as it is now but also in the model documentation.

### Describe alternatives you've considered, if relevant

_No response_

### Additional context

_No response_

COMMENT:
Thanks, @virchan, for your nice words and the link(s). So I don't need to repeat those arguments again.

**Documentation:**
If someone wants an improvement, then a PR is welcome.

**Model Change:**
> I don't think that we are ready to pay for the change of behaviour cost.

I see it a bit different than @glemaitre. I'm open to change the penalty parameter of all linear models to be consistent. I find the different ways of different estimators quite annoying and error-prone.
This is, however, a decision that needs consensus among core contributors, therefore ping @scikit-learn/Core-devs.

Labels: Documentation, Needs Decision, module:linear_model
LogisticRegression's regularization is scaled by the dataset size

### Describe the workflow you want to enable

Other linear models on https://scikit-learn.org/1.5/modules/linear_model.html have regularization that doesn't depend on the dataset size

### Describe your proposed solution

It would be good to either change the behavior or document it very very very clearly, not only in the user guide as it is now but also in the model documentation.

### Describe alternatives you've considered, if relevant

_No response_

### Additional context

_No response_

COMMENT:
I wouldn't mind the change to make them consistent.

Labels: Documentation, Needs Decision, module:linear_model
LogisticRegression's regularization is scaled by the dataset size

### Describe the workflow you want to enable

Other linear models on https://scikit-learn.org/1.5/modules/linear_model.html have regularization that doesn't depend on the dataset size

### Describe your proposed solution

It would be good to either change the behavior or document it very very very clearly, not only in the user guide as it is now but also in the model documentation.

### Describe alternatives you've considered, if relevant

_No response_

### Additional context

_No response_

COMMENT:
>  I'm open to change the penalty parameter of all linear models to be consistent. I find the different ways of different estimators quite annoying and error-prone.

To be backward compatible, can we add a new parameter first like `scale_regularization = {"n_samples", "none"}`? Then we can make everything consistent in terms of this parameter (with a deprecation cycle if it is required for that estimator).

Labels: Documentation, Needs Decision, module:linear_model
LogisticRegression's regularization is scaled by the dataset size

### Describe the workflow you want to enable

Other linear models on https://scikit-learn.org/1.5/modules/linear_model.html have regularization that doesn't depend on the dataset size

### Describe your proposed solution

It would be good to either change the behavior or document it very very very clearly, not only in the user guide as it is now but also in the model documentation.

### Describe alternatives you've considered, if relevant

_No response_

### Additional context

_No response_

COMMENT:
Backward incompatible changes are very taxing to our users. I really want to stress this, users and companies are afraid of upgrade because of these, and it's a classic to see people stuck on old version, and developers complaining about that.

That said, I agree that properly scaling penalties would be a huge improvement to scikit-learn, here and in Ridge/RidgeCV. In RidgeCV, the right scaling is the trace of the Gram matrix, which also has the benefit of making the penalty parameter invariant to a global rescaling of X (I would so much like this to happen in Ridge/RidgeCV, it would make RidgeCV much more usable).

In logistic too, I think that a similar scaling would be relevant. I haven't had a look at the PR here, but it seems that this would go further than the proposed change, probably scaling by a Frobenius norm of X.

So, the question is: what's the best move, and what's our strategy to have a way forward to slow change, with temporal backward compatbility

Labels: Documentation, Needs Decision, module:linear_model
LogisticRegression's regularization is scaled by the dataset size

### Describe the workflow you want to enable

Other linear models on https://scikit-learn.org/1.5/modules/linear_model.html have regularization that doesn't depend on the dataset size

### Describe your proposed solution

It would be good to either change the behavior or document it very very very clearly, not only in the user guide as it is now but also in the model documentation.

### Describe alternatives you've considered, if relevant

_No response_

### Additional context

_No response_

COMMENT:
Thank you to all for paying so much attention to this problem! (and congrats for the creation of probabl)

If I may add something, what should the default be? `loss.sum() + lambda * reg` or `loss.mean() + lambda * reg`?

I feel like the answer should be, whichever is more stable when using CV to select the final `lambda` value, but I'm not sure which one it should be, aka which one selects the best lambda when evaluating on subsets.

Labels: Documentation, Needs Decision, module:linear_model