【问题标题】:Matlab neural networkMatlab 神经网络
【发布时间】:2015-12-03 06:15:36
【问题描述】:

我在我的一门 AI 课程中看到了以下说明:

net = newp([-2 2;-2 2],2])
net.IW {1,1} = [-1 1; 3 4]
net.b{1} = [-2,3]

神经网络看起来如何?感知器有2个神经元?

【问题讨论】:

    标签: matlab artificial-intelligence perceptron


    【解决方案1】:

    查看它的最简单方法是通过:

    view(net) 
    

    在那里你可以看到输入输出和层的数量。你也可以检查

    help netp
    

    命令的文档并在其中说

     NET = newp(P,T,TF,LF) takes these inputs,
           P  - RxQ matrix of Q1 representative input vectors.
           T  - SxQ matrix of Q2 representative target vectors.
           TF - Transfer function, default = 'hardlim'.
           LF - Learning function, default = 'learnp'.
    

    net.iw{1,1} 将输入权重设置为所选数字 amd net.b{1} 将网络的偏差设置为向量 [-2,3]。

    这是否为您澄清了事情?

    【讨论】:

      猜你喜欢
      • 2011-08-23
      • 2014-01-15
      • 2010-11-20
      • 2011-07-31
      • 2014-04-09
      • 2015-07-21
      • 2011-06-02
      • 2012-09-19
      • 1970-01-01
      相关资源
      最近更新 更多