TypeError: unhashable type: ‘numpy.ndarray‘


print(‘Original dataset shape %s’ % Counter(pd.DataFrame(y_train)))
由于不可hash,所以用pd.DataFrame加上索引即可

相关