神经网络BP算法程序C语言
11页1、神经网络BP算法(C程序) 文件输入输出目录为:F:BP训练样本文件名:训练样本.txt值为:1 1 -1 1 -1 1 0 1 0 1输出文件名为:阈值.txt 权值.txt#include stdlib.h#include math.h#include conio.h#include stdio.h#define N 2 /*/学习样本个数*/#define IN 3 /*/输入层神经元数目*/#define HN 3 /*/隐层神经元数目*/#define ON 2 /*/输出层神经元数目*/#define Z 20 /*旧权值保存,每次study的权值都保存下来*/double PIN; /*单个样本输入数据*/double TON; /*单个样本输出数据*/double WHNIN; /*/输入层至隐层权值*/double VONHN; /*/隐层至输出层权值*/double XHN; /*/隐层的输入*/double YON; /*/输出层的输入*/double HHN; /*/隐层的输出*/double OON; /*/输出层的输出*/double YU_HNHN; /*
2、/隐层的阈值*/double YU_ONON; /*/输出层的阈值*/double err mN; /*/第m个样本的总误差*/double a; /*/输出层至隐层的学习效率*/double b; /*/隐层至输入层学习效率*/double alpha; /*/动量因子,改进型bp算法使用*/double d errON;FILE *fp;/*定义一个放学习样本的结构*/struct double inputIN;double teachON;Study_DataN;/*改进型bp算法用来保存每次计算的权值*/struct double old_WHNIN;double old_VONHN;Old_WVZ;显示开始界面int Start_Show()clrscr();printf(n *n);printf( * Welcome to use *n);printf( * this program of *n);printf( * calculating the BP *n);printf( * model! *n);printf( * Happy every day! *n);prin
3、tf( *n);printf(nn Before starting, please read the follows carefully:nn);printf( 1.Please ensure the Path of the 训练样本.txt(xunlianyangben.txt) is n correct, like F:BP训练样本.txt!n);printf( 2.The calculating results will be saved in the Path of F:BP!n);printf( 3.The program will load 10 datas when running from F:BP训练样本.txt!n);printf( 4.The program of BP can study itself for no more than 30000 times.n And surpassing the number, the program will be ended by itself inn preventing running infinitely beca
《神经网络BP算法程序C语言》由会员re****.1分享,可在线阅读,更多相关《神经网络BP算法程序C语言》请在金锄头文库上搜索。
农村二手房购房合同样本(4篇).doc
昆东互通立交工程路基排水工程开工报告
路政管理求职信
启明润泽幼儿园亲子远足活动方案(定稿)
江苏省劳动合同范本[1]
中学生上网的利与弊
绩效考核量化表
救护车规范化管理制度(四篇).doc
中班语言优秀教案及教学反思《见面》
公司处级干部述职报告
塑力缆项目资金申请报告写作模板代写
最新 【人教版】高中语文中国文化经典研读:第九单元浙东学术检测卷及答案
西塞山前白鹭飞全诗
光的折射与透镜练习题
教师外出参观心得体会15篇.doc
八年级物理光学作图专项训练及答案
程序员的实习报告四篇
九月九日忆山东兄弟背景解析
2022家庭贫困申请书范文大全
经营权转让合同集合6篇
2023-04-17 19页
2023-10-07 5页
2023-07-21 2页
2022-08-13 6页
2023-07-25 13页
2023-06-01 9页
2023-08-12 10页
2023-09-12 3页
2022-08-03 15页
2023-01-01 1页