3.1自己的手写数字
import scipy.misc
img_array = scipy.misc.imread(image_file_name, flatten = True)
img_data = 255.0 - img_array.reshape(784)
img_data = (img_data / 255.0 * 0.99) + 0.01
使用书上的这段代码会报错
查看scipy的官网,我发现该函数已经被弃用:
The following functions in scipy.misc are deprecate
原创
2020-08-15 16:30:41 ·
297 阅读 ·
0 评论