Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@OmarManzoor
Copy link
Contributor

Reference Issues/PRs

Towards #22893

What does this implement/fix? Explain your changes.

  • Adds metadata routing to GraphicalLassoCV and routes the corresponding metadata to the underlying cv splitter and the cross_val_score function.

Any other comments?

CC: @adrinjalali @glemaitre

@github-actions
Copy link

github-actions bot commented Oct 11, 2023

✔️ Linting Passed

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

Generated for commit: aa64a17. Link to the linter CI: here

Copy link
Member

@adrinjalali adrinjalali left a comment

Choose a reason for hiding this comment

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

Otherwise LGTM.

@adrinjalali adrinjalali requested a review from glemaitre October 11, 2023 15:54
Copy link
Member

@glemaitre glemaitre left a comment

Choose a reason for hiding this comment

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

Otherwise LGTM.

@glemaitre glemaitre self-requested a review October 17, 2023 13:49
Copy link
Member

@glemaitre glemaitre left a comment

Choose a reason for hiding this comment

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

LGTM otherwise.

Copy link
Member

@glemaitre glemaitre left a comment

Choose a reason for hiding this comment

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

LGTM otherwise.



@pytest.mark.usefixtures("enable_slep006")
def test_graphical_lasso_cv_scores_with_routing(global_random_seed):
Copy link
Member

Choose a reason for hiding this comment

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

why do we need this on top of test_metadata_is_routed_correctly_to_splitter?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is a test which checks when we route the groups parameter the graphical lasso cv still operates correctly and gives the desired results.

Copy link
Member

Choose a reason for hiding this comment

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

Yes, but we don't have the equivalent test for all the other *CV classes. I'm thinking what could go wrong if we don't have this test.

Copy link
Member

Choose a reason for hiding this comment

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

I still don't see what this test brings on top of the common test we have

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This checks for the actual results and values to ensure the output is as desired after routing parameters.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think even if this test might be additional or extra maybe it would still be nice to have it since it compares the values? Let me know what you think @adrinjalali @glemaitre . Otherwise we can remove it to finalize this PR.

@OmarManzoor
Copy link
Contributor Author

@adrinjalali Could you kindly have a look at this one too?

)


# TODO(1.5): remove in 1.5
Copy link
Member

Choose a reason for hiding this comment

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

this is already removed?

Copy link
Contributor Author

@OmarManzoor OmarManzoor Mar 6, 2024

Choose a reason for hiding this comment

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

I don't think this is removed in main yet. I think you see this change only because of the rearrangement otherwise this is not part of this PR.



@pytest.mark.usefixtures("enable_slep006")
def test_graphical_lasso_cv_scores_with_routing(global_random_seed):
Copy link
Member

Choose a reason for hiding this comment

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

I still don't see what this test brings on top of the common test we have

@adrinjalali adrinjalali enabled auto-merge (squash) April 10, 2024 12:19
@adrinjalali adrinjalali merged commit 8ad102b into scikit-learn:main Apr 10, 2024
@OmarManzoor OmarManzoor deleted the graphical_lasso_routing branch May 3, 2024 05:59
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.

3 participants