我在Keras中使用'to_categorical()‘方法时遇到了这个问题
man = np.random.randint(10,20,10)
print(man)
man = ku.to_categorical(man)
print(man)我想知道在to_categorical()方法中到底发生了什么。
发布于 2020-04-20 01:57:02
to_categorical的行为类似于一种编码技术
如果存在特定类别,则在剩余行中标记为1或0


https://stackoverflow.com/questions/61307947
复制相似问题