bp神经网络matlab设计实例,bp神经网络matlab实例(bp神经网络matlab实例).doc

本文提供两个BP神经网络的MATLAB实例。案例1使用动量梯度下降法训练网络,输入向量为P,目标向量为t。案例2通过贝叶斯正则化算法增强BP网络的泛化能力,对比了L-M算法和Bias正则化算法的训练效果,样本数据为带噪声的正弦波形。
摘要由CSDN通过智能技术生成

bp神经网络matlab实例(bp神经网络matlab实例).doc

bp神经网络matlab实例(bp神经网络matlab实例)Case 1 training BP network by momentum gradient descent algorithm.

Training samples are defined as follows:

Input vector as

P =[-1 -2 31

-1 15 -3]

The target vector is t = [-1 -1 1 1]

Solution: the MATLAB program of this example is as follows:

Close all

Clear

Echo on

CLC

% NEWFF - generating a new feedforward neural network

% TRAIN -- training BP neural network

% SIM -- Simulation of BP neural network

Pause

Start by hitting any key

CLC

Percent defines training samples

% P as input vector

P=[-1, -2, 3, 1; -1, 1, 5, -3];

% T is the target vector

T=[-1, -1, 1, 1];

Pause;

CLC

% create a new feedforward neural network

Net=newff (minmax (P), [3

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值