Tpot: why my cv score is negative number?

Created on 9 Apr 2018  Â·  6Comments  Â·  Source: EpistasisLab/tpot

my code
from tpot import TPOTRegressor
from sklearn.datasets import load_boston
from sklearn.model_selection import train_test_split

housing = load_boston()
X_train, X_test, y_train, y_test = train_test_split(housing.data, housing.target,
train_size=0.75, test_size=0.25)

tpot = TPOTRegressor(generations=5, population_size=50, verbosity=2)
tpot.fit(X_train, y_train)
print(tpot.score(X_test, y_test))
tpot.export('tpot_boston_pipeline.py')

but the cv score is negative number as this:
image
I really want to know why?
Thank You!

question

All 6 comments

Please check this same issue #595

Also #675

I close this issue. Please feel free to re-open the issue if you have any more questions

Thank you. I checked the two same issues, but I have not clearly known about the Tpot Regressor. The value of cv socre should be negative ? Could you tell me where I can find the cv score of Tpot Regressor ?

Related issue #425 #612

Please check TPOT API, the default scoring function is accuracy for TPOTClassifier, which is in range from 0 to 1. But it is neg_mean_squared_error for TPOTRegressor that stands for negated value of mean squared error.

Oh, I see. Thank you very much !

Was this page helpful?
0 / 5 - 0 ratings