24小时热门版块排行榜    

CyRhmU.jpeg
查看: 2120  |  回复: 5

fwlcq

金虫 (小有名气)

[交流] 【求助】MATLAB中BP神经网络的训练算法具体是怎么样的?已有1人参与

我一直是在程序里面用train这个训练很熟,但是对已它里面具体的计算方法不大懂,希望高人指点一下!谢谢了!
回复此楼
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

nono2009

超级版主 (文学泰斗)

No gains, no pains.

优秀区长优秀区长优秀区长优秀区长优秀版主

Extracted from MATLAB 2008a help

★ ★ ★ ★ ★ ★ ★
小木虫(金币+0.5):给个红包,谢谢回帖交流
wuguocheng(金币+3,VIP+0):nono版主很有才, 我很骄傲 10-13 22:09
wuguocheng(金币+3,VIP+0):nono版主很有才, 我很骄傲 10-13 22:10
Step 1:
>> help train
--- help for network/train ---

TRAIN Train a neural network.

   Description

     TRAIN trains a network NET according to NET.trainFcn and
     NET.trainParam.
       ... ... ... ...

     TRAIN calls the function indicated by NET.trainFcn, using the
     training parameter values indicated by NET.trainParam.

Step 2: Search for net.trainFcn from online Help
net.trainFcn

This property defines the function used to train the network. You can set it to the name of any of the training function. The training function is used to train the network whenever train is called.

      [net,tr] = train(NET,P,T,Pi,Ai)

For a list of functions type

       help nntrain

Step 3:
>> help nntrain
Contents of nntrain:

trainb                         - Batch training with weight & bias learning rules.
trainbfg                      - BFGS quasi-Newton backpropagation.
trainbr                        - Bayesian Regulation backpropagation.
trainbuwb                  - Batch unsupervised weight/bias training.
trainc                         - Cyclical order weight/bias training.
traincgb                     - Conjugate gradient backpropagation with Powell-Beale restarts.
traincgf                      - Conjugate gradient backpropagation with Fletcher-Reeves updates.
traincgp                     - Conjugate gradient backpropagation with Polak-Ribiere updates.
traingd                       - Gradient descent backpropagation.
traingda                     - Gradient descent with adaptive lr backpropagation.
traingdm                    - Gradient descent with momentum backpropagation.
traingdx                     - Gradient descent w/momentum & adaptive lr backpropagation.
trainlm                       - Levenberg-Marquardt backpropagation.
trainoss                      - One step secant backpropagation.
trainr                         - Random order weight/bias training.
trainrp                       - RPROP backpropagation.
trains                         - Sequential order incremental training w/learning functions.
trainscg                     - Scaled conjugate gradient backpropagation.

Step 4:
如果你想了解某一种具体的算法,可继续深入。如果你只是直接调用,那么使用的只是默认的算法。对于特定的例子,默认的算法可能不是最高效的。

[ Last edited by nono2009 on 2009-9-25 at 15:18 ]
2楼2009-09-25 15:15:04
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

yujunhui

银虫 (著名写手)

★ ★
nono2009(金币+1,VIP+0):谢谢交流! 9-28 09:21
sunxiao(金币+1,VIP+0):追加个币币的奖励 10-14 01:37
其实每种的算法都有专门的应用领域
作为初学者
你如果不想深究每种算法的过程,你就可以

你就可以针对你的问题,利用算法
至于在训练的过程汇总出现的各种参变量的设置的用途
你可以 help 下
或者
针对参变量 提出来,大家一起讨论
因为参变量太多了
不是 一两句话能说清楚的!
安静
3楼2009-09-28 08:32:46
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

fwlcq

金虫 (小有名气)

wuguocheng(金币+0,VIP+0): 那得自己想办法了. 10-13 22:10
非常感谢大侠们的回帖。我知道在help里面可以找到训练算法的用法,但是没有给出比如train的源程序!
4楼2009-10-13 22:05:38
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

tangyan1700

银虫 (小有名气)

★ ★
小木虫(金币+0.5):给个红包,谢谢回帖交流
nono2009(金币+1,VIP+0):谢谢交流!欢迎常来。 10-19 19:59
你要源程序可以 edit train;
不过要看明白这个工程就非常浩大了~~~~~
5楼2009-10-19 19:48:30
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

宇翔521

银虫 (小有名气)

引用回帖:
Originally posted by yujunhui at 2009-09-28 08:32:46:
其实每种的算法都有专门的应用领域
作为初学者
你如果不想深究每种算法的过程,你就可以

你就可以针对你的问题,利用算法
至于在训练的过程汇总出现的各种参变量的设置的用途
你可以 help 下
或者
针对 ...

大侠,说的有理啊!
6楼2011-03-12 21:03:23
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 fwlcq 的主题更新
普通表情 高级回复(可上传附件)
信息提示
请填处理意见