How to find which model is selected by TPOT

249 Views Asked by At

Hi am using TPOT for machine learning I am getting 99% accuracy but I am not sure to which model did it predict can someone help me with this also does it do SMOTE?

1

There are 1 best solutions below

1
Randy Olson On BEST ANSWER

If you stored the TPOTClassifier in the variable my_tpot, then you can access the final trained pipeline by accessing the fitted_pipeline_ attribute:

my_tpot = TPOTClassifier()
my_tpot.fit(…)
print(my_tpot.fitted_pipeline_)