QQ登录

只需要一步,快速开始

 注册地址  找回密码
查看: 16908|回复: 2
打印 上一主题 下一主题

新版Matlab中神经网络训练函数Newff的详细讲解

[复制链接]
字体大小: 正常 放大

3503

主题

538

听众

5990

积分

  • TA的每日心情
    开心
    2017-2-7 15:12
  • 签到天数: 691 天

    [LV.9]以坛为家II

    社区QQ达人 元老勋章 发帖功臣 新人进步奖 优秀斑竹奖 金点子奖 原创写作奖 最具活力勋章 助人为乐奖 风雨历程奖

    群组2013年国赛赛前培训

    群组2014年地区赛数学建模

    群组数学中国第二期SAS培训

    群组物联网工程师考试

    群组2013年美赛优秀论文解

    跳转到指定楼层
    1#
    发表于 2013-7-20 11:58 |只看该作者 |倒序浏览
    |招呼Ta 关注Ta

    新版Matlab中神经网络训练函数Newff的详细讲解

    一、   介绍新版newff
    Syntax
    ·          net = newff(P,T,[S1 S2...S(N-l)],{TF1 TF2...TFNl}, BTF,BLF,PF,IPF,OPF,DDF)
    Description
    newff(P,T,[S1 S2...S(N-l)],{TF1 TF2...TFNl}, BTF,BLF,PF,IPF,OPF,DDF) takes several arguments

    P
    R x Q1 matrix of Q1 sample R-element input vectors
    T
    SN x Q2 matrix of Q2 sample SN-element target vectors
    Si
    Size of ith layer, for N-1 layers, default = [ ].
    (Output layer size SN is determined from T.)
    TFi
    Transfer function of ith layer. (Default = 'tansig' for
    hidden layers and 'purelin' for output layer.)
    BTF
    Backpropagation network training function (default = 'trainlm')
    BLF
    Backpropagation weight/bias learning function (default = 'learngdm')
    IPF
    Row cell array of input processing functions. (Default = {'fixunknowns','removeconstantrows','mapminmax'})
    OPF
    Row cell array of output processing functions. (Default = {'removeconstantrows','mapminmax'})
    DDF
    Data divison function (default = 'dividerand')

    Examples
    Here is a problem consisting of inputs P and targets T to be solved with a network.
    ·          P = [0 1 2 3 4 5 6 7 8 9 10];T = [0 1 2 3 4 3 2 1 2 3 4];
    Here a network is created with one hidden layer of five neurons.
    ·          net = newff(P,T,5);
    The network is simulated and its output plotted against the targets.
    ·          Y = sim(net,P);plot(P,T,P,Y,'o')
    The network is trained for 50 epochs. Again the network's output is plotted.
    ·          net.trainParam.epochs = 50;net = train(net,P,T);Y = sim(net,P);
    plot(P,T,P,Y,'o')

    二、   新版newff与旧版newff调用语法对比
    Example1
    比如输入input(6*1000),输出output为(4*1000),那么
    旧版定义:net=newff(minmax(input),[14,4],{'tansig','purelin'},'trainlm');
    新版定义:net=newff(input,output,14,{'tansig','purelin'},'trainlm');
    Example2
    比如输入input(6*1000),输出output为(4*1000),那么
    旧版定义:net=newff(minmax(input),[49,10,4],{'tansig','tansig','tansig'},'traingdx');
    新版定义:net=newff(input,output, [49,10], {'tansig','tansig','tansig'},'traingdx');
    更详细请看word文档
    新版Matlab中神经网络训练函数Newff的使用方法.doc (175 KB, 下载次数: 28)
    zan
    转播转播0 分享淘帖0 分享分享0 收藏收藏0 支持支持0 反对反对0 微信微信
    liziyan        

    3

    主题

    6

    听众

    43

    积分

    升级  40%

  • TA的每日心情
    开心
    2013-11-29 23:37
  • 签到天数: 12 天

    [LV.3]偶尔看看II

    自我介绍
    热爱学习
    回复

    使用道具 举报

    0

    主题

    13

    听众

    2

    积分

    升级  40%

    该用户从未签到

    自我介绍
    热爱数学,喜爱专研
    回复

    使用道具 举报

    您需要登录后才可以回帖 登录 | 注册地址

    qq
    收缩
    • 电话咨询

    • 04714969085
    fastpost

    关于我们| 联系我们| 诚征英才| 对外合作| 产品服务| QQ

    手机版|Archiver| |繁體中文 手机客户端  

    蒙公网安备 15010502000194号

    Powered by Discuz! X2.5   © 2001-2013 数学建模网-数学中国 ( 蒙ICP备14002410号-3 蒙BBS备-0002号 )     论坛法律顾问:王兆丰

    GMT+8, 2025-11-26 09:12 , Processed in 0.528857 second(s), 69 queries .

    回顶部