Click here to Skip to main content
12,558,753 members (57,733 online)
Click here to Skip to main content


79 bookmarked

Neural Network Classifier

, 29 Jan 2005 CPOL
A Multilayer perceptron used to classify blue and red points.
#pragma once
#include <afxtempl.h>
class Synapse;

class Neuron
	static double momentum;// = 0.9;
	static double learningRate;// = 0.05;
	CList<Synapse*> inlinks;
	CList<Synapse*> outlinks;
	double output; // range from 0.0 to 1.0
	double sum;
	double delta;
	CString label;
	Neuron(CString s)
		output   = 0.0;
		delta    = 0.0;
		sum      = 0.0;
		label    = s;
	double getOutput()
		return output;
	double getDelta()
		return delta;
	void computeOutput();
	void computeBackpropDelta(double d); // for an output neuron
	void computeBackpropDelta(); // for a hidden neuron
	void computeWeight();
	CString print();
	int SetWeights(double* pWeights);

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Hossein Khosravi
Software Developer (Senior)
Iran (Islamic Republic of) Iran (Islamic Republic of)
Currently I'm working at Dept. of Electrical Engineering in University of Shahrood.
Pattern Recognition (specially OCR), Neural Networks, Image Processing and Machine Vision are my interests. However I'm a PROGRAMMER as well.
BSc: Sharif University of technology @ 2002
MSc. and PhD: Tarbiat Modarres University @ 2006 & 2010 respectively

Personal Blog: Andisheh Online

Religious Blogs: Shia Muslims , Ashura , Islamic Quotes

Commercial Site: Farsi OCR

You may also be interested in...

| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.161026.1 | Last Updated 30 Jan 2005
Article Copyright 2005 by Hossein Khosravi
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid