Tpot: Custom Validation Set for tpot.fit

Created on 18 Sep 2018  路  3Comments  路  Source: EpistasisLab/tpot

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

question

Most helpful comment

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)

All 3 comments

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)

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?

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

Was this page helpful?
0 / 5 - 0 ratings