不太确定这个错误的原因是什么: RuntimeWarning: invalid value encountered in true_divideimport pandas as pdfrom sklearn.feature_selection importSelectKBest
from sklearn.feature_s
我正在尝试调优或搜索scikit-learn中的评分函数的参数。例如,在下面的管道中,我首先使用SelectKBest执行特征选择,这需要一个评分函数(例如,mutual_info_regression),最后将最好的特征传递给LinearRegression()。我想要调优mutual_info_regression函数中的超参数n_neighbors,这是提供给SelectKBest的评分函数,但是我不清楚如何调优n_neighbors 感谢任何人能提供的任何帮助import num