EpistasisLab / tpot

A Python Automated Machine Learning tool that optimizes machine learning pipelines using genetic programming.
http://epistasislab.github.io/tpot/
GNU Lesser General Public License v3.0
9.58k stars 1.55k forks source link

Coefficient of Logistic Regression Using TPOT #1269

Closed manbau10 closed 1 year ago

manbau10 commented 1 year ago

I built a model using Logistic regression in TPOT classifier. I used model.fitted_pipeline_.steps[-1][1].coef_ to get the coefficients. However, the output returns 23 coefficient values, whereas the features are only 10.

Can someone help on this, please?

perib commented 1 year ago

What does the rest of the pipeline look like? Sometimes transformers, feature unions, or stackingestimators increase the number of features.