Skip to content

[WIP] Storing the best attributes of (non-GridSearch) CV models #6215

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 5 commits into from

Conversation

Sentient07
Copy link
Contributor

Extension of work on #5498

@Sentient07
Copy link
Contributor Author

@rvraghav93 Do i need to squash some commits ?

@raghavrv
Copy link
Member

Umm I don't know as it is not yours, ask @MechCoder or @amueller

Also please copy the title/description from the other PR

@Sentient07
Copy link
Contributor Author

@rvraghav93 Sure. In the meantime, i'll try fixing travis. This one seems interesting 😄

@Sentient07
Copy link
Contributor Author

@rvraghav93 The tests pass locally. Hope travis passes. BTW, am yet to add test for best_score_ attribute to _BaseRidgeCV. I'm not still clear with writing a test that should fail in master. Could you please help me with that ?

@Sentient07 Sentient07 changed the title Best attributes [WIP] Storing the best attributes of (non-GridSearch) CV models Jan 24, 2016
rng = rng = np.random.RandomState(42)
"""
Test _RidgeCV's store_cv_values attribute.
"""
Copy link
Member

Choose a reason for hiding this comment

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

Could you pl. use comments for tests, see #4432

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure. Will check.

@Sentient07
Copy link
Contributor Author

@rvraghav93 I'm not understanding as to how all the tests passes on my system and travis but not on appveyor.

@raghavrv
Copy link
Member

Appveyor failure is unrelated to your PR. Please ignore

@raghavrv
Copy link
Member

I'm not still clear with writing a test that should fail in master

Not sure I understand your question but since we are adding this parameter only now, don't worry about that failing in master. We need only NRTs to fail in master and pass in the branch (which fixes the regression).

@@ -17,7 +17,7 @@
from .base import center_data, sparse_center_data
from ..utils import check_array, check_X_y, deprecated
from ..utils.validation import check_random_state
from ..model_selection import check_cv
from ..cross_validation import check_cv
Copy link
Member

Choose a reason for hiding this comment

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

The import path "cross_validation" is deprecated. I am curious to know why you changed to using it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@GaelVaroquaux Sorry, didn't notice it at the time of rebase. will change it

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@GaelVaroquaux , travis is failing because of this change. I'll look into this

@GaelVaroquaux
Copy link
Member

I didn't look at the complete PR, but it contains many lines that are probably due to an error in using version control, as they are actually undoing recent changes that have been done in master.

These lines needs to be corrected before we can consider merging this PR.

@amueller
Copy link
Member

please don't squash commits that are not yours into yours. if there are multiple commits that are from the same author, I think it's ok to squash them into one.

@Sentient07
Copy link
Contributor Author

@GaelVaroquaux Yeah, those changes are probably because i rebased the old PR. Have made the changes that you've suggested.

@GaelVaroquaux
Copy link
Member

GaelVaroquaux commented Jan 26, 2016 via email

@Sentient07
Copy link
Contributor Author

@GaelVaroquaux Yeah, sure. I'll inspect and scrutinize all the files.

Base automatically changed from master to main January 22, 2021 10:48
@adrinjalali
Copy link
Member

I don't see benchmarks on when auto is worse, and I think this can use a fresh start anyway. So a fresh PR is welcome.

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.

7 participants