to_categorical

学习笔记426—keras中to_categorical函数解析

keras中to_categorical函数解析 1.to_categorical的功能简单来说,to_categorical就是将类别向量转换为二进制(只有0和1)的矩阵类型表示。其表现为将原有的类别向量转换为独热编码的形式。先上代码看一下效果: from keras.utils.np_utils ......
共1篇  :1/1页 首页上一页1下一页尾页