TPOT is a Python Automated Machine Learning tool that optimizes machine learning pipelines using genetic programming.
Questions tagged [tpot]
46 questions
5
votes
1 answer
Categorical Data with tpot
I'm trying to use tpot with my inputs in pandas dataframes. I keep getting the error:
TypeError: ufunc 'isnan' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule…

Deborah Paul
- 81
- 1
- 9
5
votes
1 answer
Auto-Machine-Learning python equivalent code
Is there any way to extract the auto generated machine learning pipeline in a standalone python script from auto-sklearn?
Here is a sample code using auto-sklearn:
import autosklearn.classification
import sklearn.cross_validation
import…

valentin
- 1,103
- 2
- 16
- 36
4
votes
1 answer
Integrating TPOT autoML library in Docker container from rocker/r-ver:X.X.X
I would like to embed the TPOT autoML library in a Docker container from rocker/r-ver:4.1.0. To make dream come true, I used the R package reticulate. I was inspired by this project to build the Dockerfile. However, it doesn't work in R…

Alex Yahiaoui Martinez
- 909
- 1
- 9
- 21
4
votes
1 answer
Getting feature_importances_ after getting optimal TPOT pipeline?
I've read through a few pages but need someone to help explain how to make this work for.
I'm using TPOTRegressor() to get an optimal pipeline, but from there I would love to be able to plot the .feature_importances_ of the pipeline it…

wildcat89
- 1,159
- 16
- 47
4
votes
2 answers
TPOT: Pickling Error When Using TPOTRegressor
I have a DataFrame called X and a set of target values called Y.
For most of my models, I do something like this (just an example):
from sklearn.linear_model import LassoCV
clf = LassoCV()
score = cross_val_score(estimator = clf, X = X, y = Y, cv…

anon_swe
- 8,791
- 24
- 85
- 145
3
votes
1 answer
Converting Pandas DF to Numpy Array gives me a # of features error when trying to predict?
I have a TPOT regressor set up to predict stock prices on a dataset (after some feature engineering), and I ran into an issue when the XGBoost regressor was involved, I would receive an error that said:
feature_names mismatch:
...and it would then…

wildcat89
- 1,159
- 16
- 47
3
votes
1 answer
TPOT: classification fails on multi-class data
I cannot get TPot (v. 0.9.2, Python 2.7) working on multiclass data (although I could not find anything in the documentation of TPot saying it does only binary classification).
An example provided below. It runs until 9% and then drops dead with the…

galapah
- 379
- 1
- 2
- 14
2
votes
1 answer
How to pickle TPOT fitted pipeline?
I'm using the TPOT classifier, and after training the model, I want to save the best pipeline; I can get it using.
model.fitted_pipeline_
This is an example of one of the outputs:
Pipeline(steps=[('extratreesclassifier',
…

Rodrigo A
- 657
- 7
- 23
2
votes
1 answer
tpot error message when running the dataset for TPOT
When tpot gives the following error.
could not broadcast input array from shape (80) into shape (50)

arjuna
- 21
- 2
2
votes
0 answers
How to update stackingestimator parameters when the model pipeline was created by the older version of sckit-learn?
I have a model pipeline stored in pkl file which was created by the sckit-learn 0.19. I'm trying to update the missing parameters that need for the new version of sckit-learn 0.22.
The pipeline looks like the following:
Pipeline(memory=None,
…

214nilcy
- 21
- 3
2
votes
1 answer
TPOT P@K custom scorer
I'm using (and loving) TPOT, but am having trouble implementing a custom P@K scorer. Assuming I'd like to have as many true positives as possible out of 100 predictions (or any number K), how would one code that? I've tried with the code below,…

Don
- 857
- 1
- 9
- 19
2
votes
1 answer
When fitting with TPOT CV, is the fitted_pipeline_ retrained on the whole dataset?
I am using a LeaveOutGroupOut CV strategy with TPOTRegressor
from tpot import TPOTRegressor
from sklearn.model_selection import LeaveOneGroupOut
tpot = TPOTRegressor(
config_dict=regressor_config_dict,
generations=100,
…

stevejpurves
- 923
- 1
- 7
- 12
2
votes
1 answer
Cannot import tpot
I have installed tpot machine learning library after following all the steps given here: http://epistasislab.github.io/tpot/installing/
When i look at pip3 list, i could see the tpot installed.
The below is my simple source code…

dhanush-ai1990
- 325
- 4
- 20
2
votes
1 answer
ModuleNotFoundError: No module named 'win32api' ...while importing tpot
File "C:\Users\Pulkit\AppData\Local\Programs\Python\Python36\lib\site-packages\tpot\base.py", line 79, in
import win32api ModuleNotFoundError: No module named 'win32api'
Even after installing pypiwin32 via pip... I am getting this…

Pulkit Kedia
- 83
- 2
- 10
2
votes
0 answers
How to save TPOTClassifier to continue fitting after?
I'm fitting TPOTClassifier and it currently takes considerable time. Is it any possibility to store all the "population" and all the settings needed to have them loaded after and continue training further? What I read in the documentation allows to…

stop-cran
- 4,229
- 2
- 30
- 47