How to save TPOTClassifier to continue fitting after?

805 Views Asked by At

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 store only the best "evolved" pipeline using export method:

tpot = TPOTClassifier(generations=5, population_size=50, verbosity=2)
tpot.fit(X_train, y_train)
print(tpot.score(X_test, y_test))
tpot.export('tpot_best_pipeline.py') # export the best pipeline among the population

Also I can limit a number of generations by passing generations argument in TPOTClassifier constructor as above, but how can I persist the classifier?

0

There are 0 best solutions below