Comments (5)
We would appreciate the PR! We have moved development to focus on TPOT2, which you can find here: https://github.com/EpistasisLab/tpot2 . It was rebuilt from the ground up to be more modular and easier to develop.
In TPOT2, we have the parameters validation_fraction and validation_strategy to try to address this issue. It can hold out x% of the training data, which it will use as a validation set for the pareto front models.
from tpot.
great! Glad the issue has been resolved. I would also recommend trying out our next version of TPOT, TPOT2 found here: https://github.com/EpistasisLab/tpot2
from tpot.
Your links go to a 404 error page; the repository is probably private. Your screenshot shows that one of the CV scores has an expected value of around .68. (It would be helpful to copy/paste your code rather than use screenshots, so we can quickly test it ourselves).
Is the lower accuracy you refer to on the out-of-sample test set? Sometimes TPOT can overfit the CV score with overly complex pipelines. So, while it is "correctly" optimizing the objective function, the result is a pipeline that performs poorly on held-out data. One option is that you could look at the pareto_front_fitted_pipelines_ to see if any of those simpler pipelines have better performance. (For example, You could hold out a validation set, use that to select from the Pareto front, and then do a final test on that dataset.) By default tpot uses 5 fold CV, you could try setting cv=10. You can also minimize complexity with template="selector-transformer-classifier"
When I run the TPOT with a test dataset with this scorer, it seems to accurately maximize the objective function.
from tpot.
Thanks for the reply, and sorry about the links, I forgot the development repo was private.
I think you're right, and yes there is a held-out dataset for the final evaluation score. I was thinking 5 fold CV within tpot would be enough to detect/prevent overfitting, but the training set does have very few positive examples so I probably should've been looking for it. I'll run some tests and if that is the case, then this is definitely non-issue (and sorry about that). If it is the case, maybe I'll add some overfitting detection or limited-examples-warning in a PR.
As for reproducing, no worries, I was just looking for high-level feedback first (rather than a full reproduction/debugging/analysis). If does appear to be a bug, I'll put in the work to isolate the dataset+code and make it fully reproducable on a public repo.
from tpot.
Alright, I confirmed sample size was the issue (e.g. no issue for tpot).
Not only that but tpot worked amazing! I was able to get +10% on an f1 score over the best hand-crafted architecture for this problem.
Thanks again for the help
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
- Question: How is the data split using cross validation HOT 2
- 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.