TypeError: only integer scalar arrays can be converted to a scalar index
Posted nunca
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了TypeError: only integer scalar arrays can be converted to a scalar index相关的知识,希望对你有一定的参考价值。
把代码处修改如下:
#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的主要内容,如果未能解决你的问题,请参考以下文章
TypeError: Only integers, slices (`:`), ellipsis (`...`), tf.newaxis (`None`) and scalar tf.int32/tf
解决问题:only integer scalar arrays can be converted to a scalar index
在 Electron 中,使用“typeof”会导致 TypeError: Cannot assign to read only property
TypeError: can only concatenate str (not “int“) to str
成功解决TypeError: only size-1 arrays can be converted to Python scalars
请解决这个 TypeError: can only concatenate str (not "int") to str