有一次,我看到了使用基于scikit-learn的lasso模型的代码段
lasso = LassoCV(normalize = True, max_iter=2000)
lasso.fit(X_train, y_train);
lasso.score(X_test, y_test)
y_pred = lasso.predict(X_test)我可以理解lasso.fit和lasso_predict,但是lasso.score通常提供什么呢?根据scikit-learn的说法,它是Returns the coefficient of determination R^2 of the prediction。我不太清楚该如何使用这种信息?
https://datascience.stackexchange.com/questions/80848
复制相似问题