tag:blogger.com,1999:blog-5732329861346022539.post2517437012272234427..comments2024-01-25T01:22:44.915-08:00Comments on Programming blog: Single layer perceptron as linear classifierRobert Kanaszhttp://www.blogger.com/profile/09151897430991982628noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-5732329861346022539.post-13479401259021857572011-09-04T09:15:20.856-07:002011-09-04T09:15:20.856-07:00I learnt this when I was having the course Theory ...I learnt this when I was having the course Theory of Computation. Our teacher gave us the task to code out a program where there will 16 inputs by default which are the binary forms of 0-15. Binary of 0-7 is in class A and 8-15 is in class B. User will provide the 4 weights (as each member will have 4 digit as 4 inputs, such as the binary of 1 has the inputs 0,0,0,1) and the threshold value. Now the program will prepare 4 weights those will be able to distinguish the members of both class as<br /><br />(i1*w1)+(i2*w2)+(i3*w3)+(i4*w4) < T means Class A<br /><br />otherwise class B<br /><br />I liked you briefing about the algorithm. <br /><br /><b><a href="http://tanmayonrun.blogspot.com/2011/07/single-layer-perceptron-learning.html" rel="nofollow">I have posted the algorithm and the code of the program in this post on my blog. I hope you will like that too.</a></b>Tanmay Chakrabartyhttps://www.blogger.com/profile/08084800570982709032noreply@blogger.com