摘要:
import sys, os sys.path.append('F:\ml\DL\source-code') from dataset.mnist import load_mnist from PIL import Image import numpy as np #pickle提供了一个简单的持久化功能。可以将对象以文件的形式存放在磁盘上。 #pickle模块只能在python中使用... 阅读全文
摘要:
import sys, os sys.path.append('F:\ml\DL\source-code') #导入此路径中 from dataset.mnist import load_mnist from PIL import Image import numpy as np (x_train, t_train), (x_test, t_test) = load_mnist(fla... 阅读全文
摘要:
import matplotlib.pyplot as plt from matplotlib.image import imread img = imread('F:\\ml\\DL\\source-code\\dataset\\lena.png') #imread读取图片 plt.imshow(img)#显示图片 plt.show() 阅读全文