Matlab R2014a @newff函数

翻译 2016年08月29日 21:10:47

newff

newff利用的是前馈反向传播算法。
在 R2010b NNET 7.0.版本被废除, Last used in R2010a NNET 6.0.4.

语法

net = newff(P,T,S)
net = newff(P,T,S,TF,BTF,BLF,PF,IPF,OPF,DDF)

参数解释

net = newff(P,T,S)中:

  • P - 含有R个元素的输入向量.
  • T - SN个元素的目标向量.
  • Si - Sizes of N-1 hidden layers, S1 to S(N-1), , 默认为“ []“. (输出层SN取决于 T.)
    最终返回一个N层的前馈backprop 网络

newff(P,T,S,TF,BTF,BLF,PF,IPF,OPF,DDF) :

  • TFi - Transfer function of ith layer. Default is ‘tansig’ for hidden layers, and ‘purelin’ for output layer.
  • BTF - Backprop network training function, default = ‘trainlm’.
  • BLF - Backprop weight/bias learning function, default = ‘learngdm’.
    PF - Performance function, default = ‘mse’.
    IPF - Row cell array of input processing functions.
    Default is {‘fixunknowns’,’remconstantrows’,’mapminmax’}.
    OPF - Row cell array of output processing functions.
    Default is {‘remconstantrows’,’mapminmax’}.
    DDF - Data division function, default = ‘dividerand’;
    and returns an N layer feed-forward backprop network.

    The transfer functions TF{i} can be any differentiable transfer
    function such as TANSIG, LOGSIG, or PURELIN.

    The training function BTF can be any of the backprop training
    functions such as TRAINLM, TRAINBFG, TRAINRP, TRAINGD, etc.

    WARNING: TRAINLM is the default training function because it
    is very fast, but it requires a lot of memory to run. If you get
    an “out-of-memory” error when training try doing one of these:

    (1) Slow TRAINLM training, but reduce memory requirements, by
    setting NET.efficiency.memoryReduction to 2 or more. (See HELP TRAINLM.)
    (2) Use TRAINBFG, which is slower but more memory efficient than TRAINLM.
    (3) Use TRAINRP which is slower but more memory efficient than TRAINBFG.

    The learning function BLF can be either of the backpropagation
    learning functions such as LEARNGD, or LEARNGDM.

    The performance function can be any of the differentiable performance
    functions such as MSE or MSEREG.

    Examples

    [inputs,targets] = simplefitdata;
    net = newff(inputs,targets,20);
    net = train(net,inputs,targets);
    outputs = net(inputs);
    errors = outputs - targets;
    perf = perform(net,outputs,targets)

    Algorithm

    Feed-forward networks consist of Nl layers using the DOTPROD
    weight function, NETSUM net input function, and the specified
    transfer functions.

    The first layer has weights coming from the input. Each subsequent
    layer has a weight coming from the previous layer. All layers
    have biases. The last layer is the network output.

    Each layer’s weights and biases are initialized with INITNW.

    Adaption is done with TRAINS which updates weights with the
    specified learning function. Training is done with the specified
    training function. Performance is measured according to the specified
    performance function.


相关文章推荐

利用matlab做回归分析

1.合金强度y与其中含碳量x有密切关系,如下表 x 0.10 0.11 0.12 0.13 0.14 ...
  • heres_
  • heres_
  • 2016-08-31 18:09
  • 1155

新版Matlab中神经网络训练函数Newff的使用方法

一、   介绍新版newff Syntax ·         net = newff(P,T,[S1 S2...S(N-l)],{TF1 TF2...T...

新版Matlab中神经网络训练函数Newff的使用方法

转载自 新版Matlab中神经网络训练函数Newff的使用方法 一、   介绍新版newff Syntax ·         net = n...

Matlab R2014+visual studio 2013 混合编程(2)

看了一篇配置 Visual studio 的博客 写的简单明了,前面已经讲了如何安装Matlab R2014a,visual studio 2013 这里不再说明 先贴上博客的代码 代码一: ...

vs2012 C# 调用 matlab R2014b 编译的dll

首先确定matlab R2014b是完美破解的, 否则不能用mcc 完美破解补丁在这个网站 http://bbs.pcbeta.com/forum.php?mod=viewthread&tid=155...

Matlab_R2014a 破解版下载以及安装教程

Matlab_R2014a 破解版下载以及安装教程需要准备的工具/材料Matlab_R2014a 下载地址 : 点击下载Matlab_2014a         提取密码 : rua6方法...

MATLAB R2014b 中文版 使用初了解

再次说明自己是新手一枚,最近在学习使用MATLAB,(下载的为MATLAB R2014b 中文版 ),这里记录一点自己的学习使用的笔记,不喜勿喷。     先看看软件界面,如下图:        ...

MATLAB R2014b 的安装破解

注: 本博文纯供技术学习之用,无意侵权,请不要传播转载并在破解24小时之内删除 提要: 因为考虑到数学建模和日常的数学学习只用安装的matlab,现在我了解的最新的应该就是matlab ...

Matlab R2014b配置vlfeat0.9.20

博主最近用vlfeat库做课题,网上搜索使用方法,一大片都会告诉你说:run(/vl_setup) 然后就好啦哈哈哈哈哈哈~~~~~~~~~~~~~~ But!理想很丰满,现实很骨感,当博主在官网下载...

Matlab r2014a调用C程序

1、首先检验Matlab r2014a是否成功安装了mcc 检验方法:在matlab命令行(command Window)内输入!mcc。需要等待一会,才能显示出结果。 若显示:MCC Invok...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:深度学习:神经网络中的前向传播和反向传播算法推导
举报原因:
原因补充:

(最多只允许输入30个字)