I'm running the following line of code:
validation_curve(PolynomialRegression(),X,y,
param_name='polynomialfeatures__degree',
param_range=degree,cv=7)
And, when I draw the validation_curve I get very negative scores for higher degrees. When I checked the documentation, it stated
scoring:str or callable, default=None A str (see model evaluation
documentation) or a scorer callable object / function with signature
scorer(estimator, X, y).
I'm just wondering what is the default score function in validation_curve in sklearn? If it's None, then how can they compute a score?
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…