12,063,278 members (63,484 online)
alternative version

24.5K views
19 bookmarked
Posted

Hebb neural network

, 31 Oct 2007
 Rate this:
implementation of ocr by hebb algorithm

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());
}

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

Share

 United States
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.

You may also be interested in...

 First Prev Next
 soal p.razi15-Dec-07 3:31 p.razi 15-Dec-07 3:31
 soal p.razi15-Dec-07 3:29 p.razi 15-Dec-07 3:29
 i can't try in most cases. lulukuku11-Nov-07 23:50 lulukuku 11-Nov-07 23:50
 Would you... Stevie1-Nov-07 1:57 Stevie 1-Nov-07 1: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
 Re: Would you... Dewey1-Nov-07 8:55 Dewey 1-Nov-07 8:55
 Re: Would you... Bert delaVega1-Nov-07 11:03 Bert delaVega 1-Nov-07 11:03
 Last Visit: 31-Dec-99 19:00     Last Update: 5-Feb-16 12:59 Refresh 1

General    News    Suggestion    Question    Bug    Answer    Joke    Praise    Rant    Admin

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.