标签:bubuko pre 分享 class convert ted div integer only
把代码处修改如下:
#print(‘Optimal number of features %d‘ % percentiles[opt]) print(‘Optimal number of features %d‘ % np.array(percentiles)[opt])
TypeError: only integer scalar arrays can be converted to a scalar index
标签:bubuko pre 分享 class convert ted div integer only
原文地址:https://www.cnblogs.com/xiaodongsuibi/p/8975307.html