文件名称:VC++BP
- 所属分类:
- 人工智能/神经网络/遗传算法
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 336kb
- 下载次数:
- 0次
- 提 供 者:
- starb******
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
本程序是BP算法的演示程序, 其中的Levenberg-Marquardt算法具有实用价值.
一、网络训练
程序默认状态是样本训练状态,现将样本训练状态下的如何训练网络进行说明:
1.系统精度:
定义系统目标精度,根据需要定义网络训练误差精度.误差公式是对训练出网络的输出层节点和实际的网络输出结果求平方差的和.
最大训练次数:
默认为10000次,根据需要调整,如果到达最大训练次数网络还未能达到目标精度,程序退出.
3.步长:
默认为0.01,由于采用变步长算法,一般不需人工设置.
4.输入层数目:
人工神经网络的输入层神经元的节点数目.
5.隐含层数目:
人工神经网络的隐含层神经元的节点数目.
6.输出层数目:
人工神经网络的输出层神经元的节点数目.
7.训练算法:
强烈建议选取Levenberg-Marquardt算法,该算法经过测试比较稳定.
8.激活函数:
不同的网络激活函数表现的性能不同,可根据实际情况选择.
9.样本数据的处理:
由于程序没有实现归一化功能, 因此用来训练的样本数据首先要归一化后才能进行训练.
一、网络训练
程序默认状态是样本训练状态,现将样本训练状态下的如何训练网络进行说明:
1.系统精度:
定义系统目标精度,根据需要定义网络训练误差精度.误差公式是对训练出网络的输出层节点和实际的网络输出结果求平方差的和.
最大训练次数:
默认为10000次,根据需要调整,如果到达最大训练次数网络还未能达到目标精度,程序退出.
3.步长:
默认为0.01,由于采用变步长算法,一般不需人工设置.
4.输入层数目:
人工神经网络的输入层神经元的节点数目.
5.隐含层数目:
人工神经网络的隐含层神经元的节点数目.
6.输出层数目:
人工神经网络的输出层神经元的节点数目.
7.训练算法:
强烈建议选取Levenberg-Marquardt算法,该算法经过测试比较稳定.
8.激活函数:
不同的网络激活函数表现的性能不同,可根据实际情况选择.
9.样本数据的处理:
由于程序没有实现归一化功能, 因此用来训练的样本数据首先要归一化后才能进行训练.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
基于Visual C++开发的BP神经网络源程序
....................................\Arithmetic.dll
....................................\example
....................................\.......\Demo.txt
....................................\.......\net_lm_sigmoid_16.txt
....................................\.......\测试数据.txt
....................................\.......\测试数据的实际结果.txt
....................................\.......\用来训练网络的数据.txt
....................................\.......\用网络仿真的结果.txt
....................................\.......\说明.txt
....................................\Help.doc
....................................\MatrixBase.dll
....................................\NNBP.exe
....................................\SRC
....................................\...\Arithmetic
....................................\...\..........\AllDef.h
....................................\...\..........\Arithmetic.aps
....................................\...\..........\Arithmetic.cpp
....................................\...\..........\Arithmetic.def
....................................\...\..........\Arithmetic.dsp
....................................\...\..........\Arithmetic.dsw
....................................\...\..........\Arithmetic.plg
....................................\...\..........\Arithmetic.rc
....................................\...\..........\Matrix.h
....................................\...\..........\Procedure.cpp
....................................\...\..........\ReadMe.txt
....................................\...\..........\res
....................................\...\..........\...\Arithmetic.rc2
....................................\...\..........\Resource.h
....................................\...\..........\StdAfx.cpp
....................................\...\..........\StdAfx.h
....................................\...\Bin
....................................\...\...\Arithmetic.dll
....................................\...\...\example
....................................\...\...\.......\Demo.txt
....................................\...\...\.......\net_lm_sigmoid_16.txt
....................................\...\...\.......\测试数据.txt
....................................\...\...\.......\测试数据的实际结果.txt
....................................\...\...\.......\用来训练网络的数据.txt
....................................\...\...\.......\用网络仿真的结果.txt
....................................\...\...\.......\说明.txt
....................................\...\...\Help.doc
....................................\...\...\MatrixBase.dll
....................................\...\...\NNBP.exe
....................................\...\MatrixBase
....................................\...\..........\Matrix.cpp
....................................\...\..........\Matrix.h
....................................\...\..........\MatrixBase.aps
....................................\...\..........\MatrixBase.clw
....................................\...\..........\MatrixBase.cpp
....................................\...\..........\MatrixBase.def
....................................\...\..........\MatrixBase.dsp
....................................\...\..........\MatrixBase.dsw
....................................\...\..........\MatrixBase.ncb
....................................\...\..........\MatrixBase.opt
....................................\...\..........\MatrixBase.plg
....................................\...\..........\MatrixBase.rc
....................................\...\..........\ReadMe.txt
....................................\...\..........\res
....................................\...\..........\...\MatrixBase.rc2
....................................\...\..........\Resource.h
....................................\...\..........\StdAfx.cpp
....................................\...\..........\StdAfx.h
....................................\...\NeuralNetwork.dsw
....................................\...\NeuralNetwork.ncb
....................................\...\NeuralNetwork.opt
....................................\...\
....................................\Arithmetic.dll
....................................\example
....................................\.......\Demo.txt
....................................\.......\net_lm_sigmoid_16.txt
....................................\.......\测试数据.txt
....................................\.......\测试数据的实际结果.txt
....................................\.......\用来训练网络的数据.txt
....................................\.......\用网络仿真的结果.txt
....................................\.......\说明.txt
....................................\Help.doc
....................................\MatrixBase.dll
....................................\NNBP.exe
....................................\SRC
....................................\...\Arithmetic
....................................\...\..........\AllDef.h
....................................\...\..........\Arithmetic.aps
....................................\...\..........\Arithmetic.cpp
....................................\...\..........\Arithmetic.def
....................................\...\..........\Arithmetic.dsp
....................................\...\..........\Arithmetic.dsw
....................................\...\..........\Arithmetic.plg
....................................\...\..........\Arithmetic.rc
....................................\...\..........\Matrix.h
....................................\...\..........\Procedure.cpp
....................................\...\..........\ReadMe.txt
....................................\...\..........\res
....................................\...\..........\...\Arithmetic.rc2
....................................\...\..........\Resource.h
....................................\...\..........\StdAfx.cpp
....................................\...\..........\StdAfx.h
....................................\...\Bin
....................................\...\...\Arithmetic.dll
....................................\...\...\example
....................................\...\...\.......\Demo.txt
....................................\...\...\.......\net_lm_sigmoid_16.txt
....................................\...\...\.......\测试数据.txt
....................................\...\...\.......\测试数据的实际结果.txt
....................................\...\...\.......\用来训练网络的数据.txt
....................................\...\...\.......\用网络仿真的结果.txt
....................................\...\...\.......\说明.txt
....................................\...\...\Help.doc
....................................\...\...\MatrixBase.dll
....................................\...\...\NNBP.exe
....................................\...\MatrixBase
....................................\...\..........\Matrix.cpp
....................................\...\..........\Matrix.h
....................................\...\..........\MatrixBase.aps
....................................\...\..........\MatrixBase.clw
....................................\...\..........\MatrixBase.cpp
....................................\...\..........\MatrixBase.def
....................................\...\..........\MatrixBase.dsp
....................................\...\..........\MatrixBase.dsw
....................................\...\..........\MatrixBase.ncb
....................................\...\..........\MatrixBase.opt
....................................\...\..........\MatrixBase.plg
....................................\...\..........\MatrixBase.rc
....................................\...\..........\ReadMe.txt
....................................\...\..........\res
....................................\...\..........\...\MatrixBase.rc2
....................................\...\..........\Resource.h
....................................\...\..........\StdAfx.cpp
....................................\...\..........\StdAfx.h
....................................\...\NeuralNetwork.dsw
....................................\...\NeuralNetwork.ncb
....................................\...\NeuralNetwork.opt
....................................\...\