EpistasisLab / EpistasisLab/tpot

TPOTClassifier.score() doesn't return the same value as TPOTClassifier.fitted_pipeline.score()?

Open
#650 1 comment 0 reactions 0 assignees View on GitHub
question
Dominant language
Jupyter Notebook
Stars
10.1k
Forks
1.6k
PR merge metrics
No merged PRs in 30d

Description

Hello -

I am trying to output the final, fitted pipeline from TPOTClassifier. I am planning on deploying the model to a production environment. From issue #520, it was suggested to pickle the final pipeline:

```
from tpot import TPOTClassifier
#Define the classifier
pipeline_optimizer = TPOTClassifier()
pipeline_optimizer.fit(X, y)
#Output the final pipeline
final_pipeline = pipeline_optimizer.fitted_pipeline_
with open('/tpot_current.pickle', 'wb') as f:
pickle.dump(final_pipeline], f)
```
However, when the output of `pipeline_optimizer.score` and `pipeline_optimize.fitted_pipeline_.score` return different numbers on a new testing data set.

Are the two `.score` functions different, or am I missing something?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.