📜  逆向一种热编码 python numpy - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:14.144000             🧑  作者: Mango

代码示例1
import numpy as np
class_labels = np.argmax(class_prob, axis=1) # assuming you have n-by-5 class_prob