




已阅读5页,还剩6页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
第2章神经网络(2)内容:感知器、多层前馈型神经、反向传播算法(BP算法)、神经网络应用。重点、难点:感知器、反向传播算法(BP算法)。1引例1981年生物学家格若根(W.Grogan)和维什(WWirth)发现了两类蚊子(或飞蠓midges)他们测量了这两类蚊子每个个体的翼长和触角长,数据如下: 翼长 触角长 类别 1.78 1.14 Apf 1.96 1.18 Apf 1.86 1.20 Apf 1.72 1.24 Af 2.00 1.26 Apf 2.00 1.28 Apf 1.96 1.30 Apf 1.74 1.36 Af问:如果抓到三只新的蚊子,它们的触角长和翼长分别为(l.24,1.80); (l.28,1.84);(1.40,2.04)问它们应分别属于哪一个种类? 解法: 把翼长作纵坐标,触角长作横坐标;那么每个蚊子的翼长和触角决定了坐标平面的一个点.其中 6个蚊子属于 APf类;用黑点“”表示;9个蚊子属 Af类;用小圆圈“。”表示 得到的结果见图1 思路:作一直线将两类飞蠓分开 例如;取A(1.44,2.10)和 B(1.10,1.16),过A B两点作一条直线: y 1.47x - 0.017 其中X表示触角长;y表示翼长 分类规则:设一个蚊子的数据为(x, y) 如果y1.47x - 0.017,则判断蚊子属Apf类; 如果y1.47x - 0.017;则判断蚊子属Af类 分类结果:(1.24,1.80),(1.28,1.84)属于Af类;(1.40,2.04)属于 Apf类分类直线图如下的情形已经不能用分类直线的办法:新思路:将问题看作一个系统,飞蠓的数据作为输入,飞蠓的类型作为输出,研究输入与输出的关系。2 Perceptron Modell Model is an assembly of inter-connected nodes and weighted linksl Output node sums up each of its input value according to the weights of its linksl Compare output node against some threshold t First neural network with the ability to learn Made up of only input neurons and output neurons Input neurons typically have two states: ON and OFF Output neurons use a simple threshold activation function In basic form, can only solve linear problems ( limited applications)(Can only express linear decision surfaces)How Do Perceptrons Learn? Uses Supervised training (training means learning the weights of the neurons) If the output is not correct, the weights are adjusted according to the formula:3 Back Propagation NetworksThe following diagram shows a Back Propagation NN: This NN consists of three layers: 1. Input layer with three neurons. 2. Hidden layer with two neurons. 3. Output layer with two neurons.Generally, Back Propagation NN Most common neural network An extension of the perceptron(1) Multiple layers The addition of one or more “hidden” layers in between the input and output layers (2) Activation function is not simply a threshold Usually a sigmoid function(3) A general function approximator Not limited to linear problemsFor example, a typical multilayer network and decision surface is depicted in Figure: Information flows in one direction (1) The outputs of one layer act as inputs to the layerNote that: 1. The output of a neuron in a layer goes to all neurons in the following layer. 2. Each neuron has its own input weights. 3. The weights for the input layer are assumed to be 1 for each input. In other words, input values are not changed. 4. The output of the NN is reached by applying input values to the input layer, passing the output of each neuron to the following layer as input. 5. The Back Propagation NN must have at least an input layer and an output layer. It could have zero or more hidden layers.The number of neurons in the input layer depends on the number of possible inputs we have, while the number of neurons in the output layer depends on the number of desired outputs. The number of hidden layers and how many neurons in each hidden layer cannot be well defined in advance, and could change per network configuration and type of data. In general the addition of a hidden layer could allow the network to learn more complex patterns, but at the same time decreases its performance. You could start a network configuration using a single hidden layer, and add more hidden layers if you notice that the network is not learning as well as you like. For example, suppose we have a bank credit application with ten questions, which based on their answers, will determine the credit amount and the interest rate. To use a Back Propagation NN, the network will have ten neurons in the input layer and two neurons in the output layer.4The Back Propagation AlgorithmThe Back Propagation NN uses a supervised training mode. The algorithm learns the weights for multilayer network. The training can be summarized as follows: 步骤1:初始化权重每二个神经元之间的网络连接权重被初始化为一个很小的随机数,同时每个神经元有一个偏置也被初始化为一个随机数。对每个输入样本按步骤2进行处理。步骤2:向前传播输入根据训练样本提供网络的输人层,通过计算得到每个神经元的输出。都由其输入的线性组合得到,具体公式为:步骤3:反向误差传播由步骤2一路向前,最终在输出层得到实际输出,可以通过与预期输出相比较得到每个输出单元的误差, 如公式(for each output unit calculate its error term)所示,是输出单元的预期输出。得到的误差需要从后向前传播,前面一层单元的误差可以通过和它连接的后面一层的所有单元k的误差计算所得,用公式:(for each hidden unit )依次得到最后一个隐含层到第一个隐含层每个神经元的误差。步骤4:网络权重与神经元偏置调整计算得到的所有神经元的误差,然后统一调整网络权重和神经元的阈值。调整网络权重的方法是从输入层与第一隐含层的连接权重开始,依次向后进行,每个连接权重用公式=+=+()进行调整。神经元偏置的调整方法是对
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 新空间经济学新经济地理学讲课文档
- 银行借款合同银行借款合同
- 2025年芜湖安徽省低空经济发展有限公司劳务派遣员工公开招聘5名备考练习题库及答案解析
- 2025年1月时事政治练习题及答案
- 飞行器设计与制造岗位招聘面试题与参考回答(某大型国企)2025年
- 2025年安康市大学生乡村医生专项计划招聘(7人)考试参考试题及答案解析
- 眼科手术麻醉知识点考试试题及答案解析
- 妇联与妇女代表谈话记录范文模板
- 急诊科“胸痛知识”考试试题含答案
- 保卫管理员三级测试题+答案
- 主题班会《反对邪教-从我做起》
- 幕墙预埋件专项施工方案
- HDX8000系列安装配置操作指南
- 白虎汤分析课件
- 山东青年政治学院校徽校标
- 2022版义务教育英语课程标准之学业质量标准与考试评价解读PPT
- EDA课程第3~5章QuartusII Verilog HDL 数字电路设计实现
- (高清正版)JJF(浙)1102-2014生物人工气候箱校准规范
- 完整解读新版《义务教育课程方案》2022年《义务教育课程方案(2022版)》PPT课件
- 《文殊真实名经》
- 幼儿各年龄段发展评估指南
评论
0/150
提交评论