UFuncTypeError: ufunc 'subtract' cannot use operands with types dtype('float64') and dtype('<M8[ns]')
报错怎么解决
from sklearn.model_selection import cross_val_score
from sklearn.metrics import mean_squared_error as MSE
print("均方误差:",MSE(yhat,y_test))
print("R方:",lr.score(X_test,y_test))
print("10折交叉验证均值:",cross_val_score(lr,X,y,cv=10).mean())
我是在做模型评估时出现了这个问题