Cover image
Untitled
Oct 9

Python3.8 Mnist,手写SGD,2层神经网络,误差反向传播法(高速)

直接上程序,看注释解释,没有批量,没写batch norm main.py#main.py启动文件 import numpy import random import os import file_io import network import functions #file_io.init_weight()#第一次执行的时候需要,并且将下行的 while True改成while False while True: a,b,c,d,e,f=file_io.read_weight() w_i_h1=numpy.array(a) w_h1_h2=numpy.array(b) w_h2_o=numpy.array(c) d1=numpy.array(d) d2=numpy.array(e) d3=numpy.array(f) w_i_h1=w_i_h1.reshape((784,200)) w_h1_h2=w_h1_h2.reshape((200,200)) w_h2_o=w_h2_o.reshape((200,10)) rate=0.01#建议0.01 n=network.n_ne...
ParagraphParagraph

Untitled

Written by
0x4C11...36e4
Subscribe

2025 Paragraph Technologies Inc

PopularTrendingPrivacyTermsHome
Search...Ctrl+K

Untitled

Subscribe