深度学习之卷积神经网络CNN

时间:2022-08-10 15:29:42
【文件属性】:

文件名称:深度学习之卷积神经网络CNN

文件大小:162.19MB

文件格式:ZIP

更新时间:2022-08-10 15:29:42

python CNN 深度学习

用CNN实现一个分类器, 数据共有10类,训练数据在train文件夹下,测试数据在test文件夹下,数据有十类,读取数据的方法如下。 #python2 import cPickle def load_data(data_path): with open(data_path,"rb") as f: target_params = cPickle.load(f) data = target_params['data'].reshape([-1,32,32,3]) label = target_params['labels'] return data,label #python3 import pickle def load_data(data_path): with open(data_path,"rb") as f: u = pickle.Unpickler(f) u.encoding='latin1' target_params = u.load() data = target_params['data'].reshape([-1,32,32,3]) label = target_params['labels'] return data,label


【文件预览】:
vs84.py
test
----test_batch(29.6MB)
train
----data_batch_4(29.6MB)
----data_batch_3(29.6MB)
----data_batch_1(29.6MB)
----data_batch_2(29.6MB)
----data_batch_5(29.6MB)
readme

网友评论