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

Custom Validation Set for tpot.fit #767

Closed
skrish13 opened this issue Sep 18, 2018 · 3 comments
Closed

Custom Validation Set for tpot.fit #767

skrish13 opened this issue Sep 18, 2018 · 3 comments
Labels

Comments

@skrish13
Copy link

How do i give a seperate validation set so that tpot evaluates pipelines using that instead of random split of trainset itself?

@weixuanfu
Copy link
Contributor

Please check the cv parameter in TPOT API. You can merge the validation set with the trainset for fitting in tpot_obj.fit(X, y) and then specify train/test splits via an iterable (see the example for GridSearchCV)

@sahil2897
Copy link

Can you please explain a little more how to custom specify training and validation data sets. I don't want to use k-fold cv?

@weixuanfu
Copy link
Contributor

You could try other split models like cv=TimeSeriesSplit(n_splits=5) or use indexes of samples based on the example for GrifSearchCV above.

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

No branches or pull requests

3 participants