Comments (2)
TPOT uses sklearn.model_selection.KFold for regression and sklearn.model_selection.StratifiedKFold for classification. This is returned by check_cv in this line of the estimator, which returns an unshuffled splitter with the number of splits set by the cv parameter. Optionally, you can input your own splitter object, for example: cv = sklearn.model_selection.StratifiedKFold(n_splits=10, shuffle=True, random_state=42)
The data that gets passed into the fit command is then split according to the cv parameter, and the cross-validation score (computed by cross_val_score) is computed for each pipeline.
The example you posted uses the same strategy described in your link. As shown in the figures, the full data is split into Train and Test sets. Then, the Train set is split into n-folds for calculating the cross-validation fold.
Whether or not you pass in your entire dataset to TPOT or create a separate test set is up to you and depends on what you are trying to do. The held-out test set may be useful for evaluating the final pipeline and comparing performance with different pipelines.
It is important to note that TPOT can become very good at overfitting the CV score itself (particularly for small datasets). Meaning that the final pipeline could have a high CV score that generalizes poorly to held-out data (or even different cv shuffles of the same data). The held-out data is one way of estimating out-of-sample performance.
from tpot.
Thank you so much.
from tpot.
Related Issues (20)
- Potential New Feature: allowing users to input customized initial pipelines HOT 1
- TPOT2 and the future of TPOT development -- From the Devs
- How can I be part of the project to develop new modules? HOT 2
- Documentation should use est=TPOTClassifier rather than tpot=TPOTClassifier
- In python 3.12, Get error after importing module. HOT 1
- How to map the features at the end of the pipeline back to the initial features HOT 1
- Can't import TPOTClassifier from tpot
- How long is the installation supposed to take HOT 3
- TPOTClassifier error for large data HOT 1
- TPOT error for xgboost multiclass classificaion HOT 1
- Unable to install pip ARM64 Mac HOT 5
- TPOT NN example fails
- last update of code and report HOT 1
- TPOT report error HOT 4
- Feature to Export the Pipeline/Model as pickle file HOT 1
- TPOT underpopulates a class, but manual sklearn does not HOT 4
- macos
- Tpot affects the nb of jobs at import HOT 1
- How to use tpot with MLFlow HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tpot.