我正在使用scikit并将其mean_squared_error用作cross_val_score中模型评估的评分函数.
rms_score = cross_validation.cross_val_score(model, X, y, cv=20, scoring='mean_squared_error')
Run Code Online (Sandbox Code Playgroud)
我正在使用,mean_squared_error因为它是一个回归问题,所使用的估算器(模型)是lasso,ridge和elasticNet.
对于所有这些估算师,我得到rms_score了负值.考虑到y值的差异是平方的,这怎么可能呢?
