matlab code for and program using perceptron nueral networks我要分享

matlab code for and program using perceptron nuera

关注次数: 127

下载次数: 1

文件大小: 5.45 kB

代码分类: 其他

开发平台: matlab

下载需要积分: 2积分

版权声明:如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

代码描述

中文说明:在这个项目中,我们用不同的输入模式来训练我们的网络。我们的输入必须是1或-1。我们知道,在和程序中,如果我们设置1和1,结果必须是1。对于其他的,结果将是-1有:1和1=11和-1=-1-1和1=-1-1和-1=-1的原则是通过在每个空间中学习来更新权重,并在每个步骤中为我们提供分隔线(我们有4个步骤,所以我们应该有4条线)。


English Description:

in this program we train our network with different modes of inputs. our inputs must be 1 or -1.we know that in and program if we set 1 and 1 the result must be 1.and for the other ones the result will be -1.so we have:1 and 1=11 and -1=-1-1 and 1=-1-1 and -1=-1the principle is to update the weights by learning in each space and give us the seperation line in each step (we have 4 steps so we shoud have 4 lines.).


代码预览

相关推荐