Click here to Skip to main content
Click here to Skip to main content

Hebb neural network

By , 31 Oct 2007
 

Introduction

In the name of God.

This a sample for OCR(Optical Character Recognition) in c#.

At this Program use the Hebb Algorithm.

Background

Donald Hebb in 1949 write a Article for single-layer problem.

Using the code

int y=0; int j;
int[,] total ={
{1,-1,-1,-1,1,-1,1,-1,1,-1,-1,-1,1,-1,-1,-1,1,-1,1,-1,1,-1,-1,-1,1},
{-1,1,1,1,-1,1,-1,-1,-1,1,1,-1,-1,-1,1,1,-1,-1,-1,1,-1,1,1,1,-1 }
}; 
int[] temp = new int[25];
for (int i = 0; i < 2; i++)
{
for ( j = 0; j < 25; j++)
temp[j] = total[i,j];
switch(i){
case 0: y=1;break;
case 1: y=-1;break;
}
for (j = 0; j < 25; j++)
{
weight[j] = weight[j] + temp[j] * y;
bias = bias + y;
}
}
for (j = 0; j < 25; j++)
{
weights.Items.Add("w"+j.ToString()+" : "+ weight[j].ToString());
}
weights.Items.Add("bias : "+bias.ToString());

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

About the Author

Mohammad Mehdi Norian
United States United States
Member
I am Mohammad Mehdi Norian From Iran (esfahan).
I am a Programmer.
my languages program is delphi,c#.net,pascal,c++,assembly,etc.
but my primary language is delphi.
I study computer software at university.
wish you the best.

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board.
Search this forum  
    Spacing  Noise  Layout  Per page   
Generalsoalmemberp.razi15 Dec '07 - 2:31 
ba salam,harja ke esme ye irani ro mibinim vagan zug mikonim, movafag bashin
Generalsoalmemberp.razi15 Dec '07 - 2:29 
salam,alan taze taze tu iran ba umadane ocr soft ware , bahse ocr tuye projehaye ostada dag shode, beharhal omidvaram hamishe movagaf bashin, ye daneshjoye irani
Questioni can't try in most cases.memberlulukuku11 Nov '07 - 22:50 
i tried to run program but i couldn't try all cases (resual of "X" is TRUE but i try "B..." couldn't).you can help me!!D'Oh! | :doh:
GeneralWould you...memberStevie1 Nov '07 - 0:57 
...please overhaul your so-called article to something readable? The Headline was what caught my attention but your text layout, ... well there is none.
 
Thank you and best regards,
Stevie
 
Greetings,
 
Stephan Eberle
hawke@deltacity.org

GeneralRe: Would you...memberDewey1 Nov '07 - 7:55 
That's what happens when you get your layout and fashion design from a BLIND Pimp.
GeneralRe: Would you...memberBert delaVega1 Nov '07 - 10:03 
Don't encourage an overhaul. It's better off the way it is - as an unreadable pile of junk.

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Permalink | Advertise | Privacy | Mobile
Web02 | 2.6.130523.1 | Last Updated 1 Nov 2007
Article Copyright 2007 by Mohammad Mehdi Norian
Everything else Copyright © CodeProject, 1999-2013
Terms of Use
Layout: fixed | fluid