Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version
Go to top

Neural Network for Recognition of Handwritten Digits

, 5 Dec 2006
A convolutional neural network achieves 99.26% accuracy on a modified NIST database of hand-written digits.
// DlgBackpropParameters.cpp : implementation file
//

#include "stdafx.h"
#include "MNist.h"
#include "DlgBackpropParameters.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CDlgBackpropParameters dialog


CDlgBackpropParameters::CDlgBackpropParameters(CWnd* pParent /*=NULL*/)
	: CDialog(CDlgBackpropParameters::IDD, pParent)
{
	//{{AFX_DATA_INIT(CDlgBackpropParameters)
	m_AfterEvery = 0;
	m_EtaDecay = 0.0;
	m_InitialEta = 0.0;
	m_MinimumEta = 0.0;
	m_strInitialEtaMessage = _T("");
	m_strStartingPatternNum = _T("");
	m_StartingPattern = 0;
	m_cNumThreads = 0;
	m_bDistortPatterns = FALSE;
	m_EstimatedCurrentMSE = 0.0;
	//}}AFX_DATA_INIT
}


void CDlgBackpropParameters::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(CDlgBackpropParameters)
	DDX_Text(pDX, IDC_EDIT_EVERY_N_BACKPROPS, m_AfterEvery);
	DDV_MinMaxUInt(pDX, m_AfterEvery, 1, 4294967295);
	DDX_Text(pDX, IDC_EDIT_ETA_DECAY, m_EtaDecay);
	DDV_MinMaxDouble(pDX, m_EtaDecay, 0., 1.);
	DDX_Text(pDX, IDC_EDIT_INITIAL_ETA, m_InitialEta);
	DDV_MinMaxDouble(pDX, m_InitialEta, 0., 1.);
	DDX_Text(pDX, IDC_EDIT_MINIMUM_ETA, m_MinimumEta);
	DDV_MinMaxDouble(pDX, m_MinimumEta, 0., 1.);
	DDX_Text(pDX, IDC_STATIC_INITIAL_ETA, m_strInitialEtaMessage);
	DDX_Text(pDX, IDC_STATIC_STARTING_PATTERN_NUMBER, m_strStartingPatternNum);
	DDX_Text(pDX, IDC_EDIT_STARTING_PATTERN_NUM, m_StartingPattern);
	DDX_Text(pDX, IDC_EDIT_NUM_BACKPROP_THREADS, m_cNumThreads);
	DDV_MinMaxUInt(pDX, m_cNumThreads, 1, 1000000000);
	DDX_Check(pDX, IDC_CHECK_DISTORT_PATTERNS, m_bDistortPatterns);
	DDX_Text(pDX, IDC_EDIT_ESTIMATED_CURRENT_MSE, m_EstimatedCurrentMSE);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CDlgBackpropParameters, CDialog)
	//{{AFX_MSG_MAP(CDlgBackpropParameters)
		// NOTE: the ClassWizard will add message map macros here
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CDlgBackpropParameters message handlers


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.

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

Share

About the Author

Mike O'Neill

United States United States
Mike O'Neill is a patent attorney in Southern California, where he specializes in computer and software-related patents. He programs as a hobby, and in a vain attempt to keep up with and understand the technology of his clients.

| Advertise | Privacy | Mobile
Web01 | 2.8.140926.1 | Last Updated 5 Dec 2006
Article Copyright 2006 by Mike O'Neill
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid