best_score_ 来自 spark-sklearn 的 GridSearchCV 的参数不适用于版本 0.2.3

best_score_ parameter from GridSearchCV from spark-sklearn doesn't work with version 0.2.3

我想使用 GridSearchCV 函数中的 best_score_ 参数,但看起来它在最新版本的库 spark-sklearn(版本 0.2.3)中不存在。当我尝试使用命令卸载最新版本并重新安装旧版本(版本 0.2.0)时 pip 安装 spark-sklearn-0.2.0 这是行不通的。如何在我的集群环境中安装旧版本的 spark-sklearn 库? best_score_ 参数似乎在 0.2.0 版本中工作正常。 谢谢

spark-sklearn 版本 0.2.3 存在一个已知问题,因为 gridSearchCV 中没有 best_score_ 参数。可以在此处找到该问题 https://github.com/databricks/spark-sklearn/issues/73

要安装旧版本的库,请使用以下命令: pip install spark-sklearn==0.2.0