Skip to content
This repository has been archived by the owner on Jul 24, 2024. It is now read-only.

BUG Parameterize CV object with random seed #24

Merged
merged 5 commits into from
Dec 14, 2017

Conversation

xdavio
Copy link
Contributor

@xdavio xdavio commented Jun 22, 2017

Addresses #23

@xdavio xdavio requested a review from wlattner June 22, 2017 18:48
@wlattner
Copy link
Contributor

Thanks @xdavio, this looks good. Would you mind adding a test asserting we pass random_state to KFold and StratifiedKFold ?

@xdavio
Copy link
Contributor Author

xdavio commented Dec 14, 2017

@wlattner I've added the tests, give it another pass?

glmnet/util.py Outdated
n_jobs, verbose):
def _score_lambda_path(est, X, y, sample_weight, relative_penalties,
n_splits, random_state, scoring, n_jobs,
verbose):
Copy link
Contributor

Choose a reason for hiding this comment

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

I think you can now remove n_splits and random_state now that cv is handled by the estimator.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

@wlattner
Copy link
Contributor

LGTM

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants