Skip to content
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

Setting of "cv_max_splits" when using "fit_algorithm": "lasso" #50

Closed
dromare opened this issue Sep 14, 2021 · 4 comments
Closed

Setting of "cv_max_splits" when using "fit_algorithm": "lasso" #50

dromare opened this issue Sep 14, 2021 · 4 comments

Comments

@dromare
Copy link
Contributor

dromare commented Sep 14, 2021

Hi all,

When setting fit_algorithm_params={"cv": 5} to use 5-fold CV with sklearn LassoCV() on the training set, how should the global parameter "cv_max_splits" be set up ? (either set it to zero, or to None - equivalent to 3 - or equal to 5 ?).

Best regards,
Dario

@sayanpatra
Copy link
Contributor

Hi @dromare, the answer depends on the model you are running. In general, these parameters are independent.

If you are using a single estimator you can set cv_max_splits to 0. If you are comparing multiple estimators/ models you can choose cv_max_splits to be a proper representation of your testing period.

If you need more model tuning guidance feel free to post your model configuration and a snippet of the data you are working with.

@dromare
Copy link
Contributor Author

dromare commented Sep 17, 2021

Thank you sayanpatra, that is what I wanted to know. So if we have a single estimator which chooses its hyperparameters by K-fold CV on the training set (say, LassoCV or RidgeCV) then if we set cv_max_splits = J, I believe we would end up doing (J times K)-fold CV on the training set.

@sayanpatra
Copy link
Contributor

Yes, you are correct.

@dromare
Copy link
Contributor Author

dromare commented Sep 20, 2021

Great, thanks ! I will close this issue then.

@dromare dromare closed this as completed Sep 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants