Skip to content

a simple neural network in python, test for mnist dataset

Notifications You must be signed in to change notification settings

jungrea/simple-neural-network-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

程序使用说明:

软件平台: linux下python 3.4以上

目录需要cd到当前程序脚本所在目录

a) mnist_main.py 包含训练与测试的主函数,运行可直接显示训练过程;linux命令行执行命令:

>>> python mnist_main.py

b) train.py 训练函数,用于训练并保存模型至当前目录的model文件夹下;执行命令:

>>> python train.py

c) test.py 测试函数,用于测试所有测试样本并打印准确率;执行命令:

>>> python test.py

d) inference.py 测试单个图像的预测结果。执行包括一个指定一张图像的路径参数, 输出预测结果。执行命令如第0张图:

>>> python inference.py 'image/0.jpg'

About

a simple neural network in python, test for mnist dataset

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages