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

Neural Network Classifier

, 29 Jan 2005
A Multilayer perceptron used to classify blue and red points.
// Microsoft Visual C++ generated resource script.
//
#include "resource.h"

#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 2 resource.
//
#include "afxres.h"

/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS

/////////////////////////////////////////////////////////////////////////////
// English (U.S.) resources

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
#ifdef _WIN32
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
#pragma code_page(1252)
#endif //_WIN32

#ifdef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// TEXTINCLUDE
//

1 TEXTINCLUDE 
BEGIN
    "resource.h\0"
END

2 TEXTINCLUDE 
BEGIN
    "#include ""afxres.h""\r\n"
    "\0"
END

3 TEXTINCLUDE 
BEGIN
    "#define _AFX_NO_SPLITTER_RESOURCES\r\n"
    "#define _AFX_NO_OLE_RESOURCES\r\n"
    "#define _AFX_NO_TRACKER_RESOURCES\r\n"
    "#define _AFX_NO_PROPERTY_RESOURCES\r\n"
    "\r\n"
    "#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_FAR)\r\n"
    "LANGUAGE 9, 1\r\n"
    "#pragma code_page(1252)\r\n"
    "#include ""res\\MultiLayerPerceptron.rc2""  // non-Microsoft Visual C++ edited resources\r\n"
    "#include ""afxres.rc""         // Standard components\r\n"
    "#endif\r\n"
    "\0"
END

#endif    // APSTUDIO_INVOKED


/////////////////////////////////////////////////////////////////////////////
//
// Icon
//

// Icon with lowest ID value placed first to ensure application icon
// remains consistent on all systems.
IDR_MAINFRAME           ICON                    "res\\MultiLayerPerceptron.ico"

/////////////////////////////////////////////////////////////////////////////
//
// Dialog
//

IDD_ABOUTBOX DIALOGEX 0, 0, 235, 109
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_POPUP | WS_CAPTION | 
    WS_SYSMENU
CAPTION "About MultiLayerPerceptron"
FONT 8, "MS Shell Dlg", 0, 0, 0x1
BEGIN
    ICON            IDR_MAINFRAME,IDC_STATIC,11,17,21,20
    LTEXT           "MultiLayerPerceptron Version 1.0",IDC_STATIC,40,10,119,
                    8,SS_NOPREFIX
    LTEXT           "Copyright (C) 2004",IDC_STATIC,40,25,119,8
    DEFPUSHBUTTON   "OK",IDOK,178,7,50,16,WS_GROUP
    LTEXT           "Hossein Khosravi",IDC_STATIC,40,41,119,8
    LTEXT           "Special thanks to Olivier Michel for his good implementation of  MLP in java, I used the same Idea to implement MLP in C++",
                    IDC_STATIC,40,57,192,25
END

IDD_MULTILAYERPERCEPTRON_DIALOG DIALOGEX 0, 0, 433, 358
STYLE DS_SETFONT | DS_MODALFRAME | DS_FIXEDSYS | WS_MINIMIZEBOX | 
    WS_MAXIMIZEBOX | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
EXSTYLE WS_EX_APPWINDOW
CAPTION "MultiLayerPerceptron"
FONT 8, "MS Shell Dlg", 0, 0, 0x1
BEGIN
    DEFPUSHBUTTON   "Initialize Network",IDC_INIT,322,271,104,17
    PUSHBUTTON      "E&xit",IDCANCEL,376,331,50,14
    EDITTEXT        IDC_HIDDEN1,8,285,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_HIDDEN2,60,285,40,14,ES_AUTOHSCROLL
    EDITTEXT        IDC_HIDDEN3,112,285,40,14,ES_AUTOHSCROLL
    LTEXT           "H1",IDC_STATIC,24,276,10,8
    LTEXT           "H2",IDC_STATIC,75,276,10,8
    LTEXT           "H3",IDC_STATIC,127,276,10,8
    EDITTEXT        IDC_LR,8,319,40,14,ES_AUTOHSCROLL
    LTEXT           "Learning Rate ",IDC_STATIC,9,309,48,8
    EDITTEXT        IDC_MOMENTUM,60,319,40,14,ES_AUTOHSCROLL
    LTEXT           "Momentum",IDC_STATIC,62,310,35,8
    DEFPUSHBUTTON   "Learn",IDC_LEARN,322,293,50,14,WS_DISABLED
    EDITTEXT        IDC_ITER,170,284,40,14,ES_AUTOHSCROLL
    LTEXT           "Max Iterations",IDC_STATIC,167,275,47,8
    LTEXT           "00000",IDC_COUNTER,216,286,42,8
    GROUPBOX        "Perceptron Parameters",IDC_STATIC,7,262,255,89
    CONTROL         "",IDC_SAMPLES,"Static",SS_BLACKFRAME | SS_CENTERIMAGE,
                    36,7,361,248,WS_EX_TRANSPARENT
    COMBOBOX        IDC_COLOR,269,289,32,30,CBS_DROPDOWNLIST | CBS_SORT | 
                    WS_VSCROLL | WS_TABSTOP
    PUSHBUTTON      "&Clear",IDC_CLEAR,267,273,36,12
    EDITTEXT        IDC_TARGET_ERROR,112,319,40,14,ES_AUTOHSCROLL
    CONTROL         "Write errors to file",IDC_WRITETOFILE,"Button",
                    BS_AUTOCHECKBOX | WS_TABSTOP,8,340,75,10
    LTEXT           "Target Error",IDC_STATIC,111,310,40,8
    PUSHBUTTON      "Show Error Graph",IDC_SHOW_ERROR,322,312,104,14,
                    WS_DISABLED
    GROUPBOX        "Operation",IDC_STATIC,263,262,163,89
    LTEXT           "Total Iterations",IDC_STATIC,164,309,51,8
    LTEXT           "00000",IDC_TOTAL_ITER,165,323,48,8
    PUSHBUTTON      "Load Network",IDC_LOAD_WEIGHTS,376,293,50,14,
                    WS_DISABLED
    PUSHBUTTON      "Save Network",IDC_SAVE_WEIGHTS,322,331,50,14,
                    WS_DISABLED
    EDITTEXT        IDC_EDIT1,84,337,168,12,ES_AUTOHSCROLL | WS_DISABLED
END


/////////////////////////////////////////////////////////////////////////////
//
// Version
//

VS_VERSION_INFO VERSIONINFO
 FILEVERSION 1,0,0,1
 PRODUCTVERSION 1,0,0,1
 FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
 FILEFLAGS 0x1L
#else
 FILEFLAGS 0x0L
#endif
 FILEOS 0x4L
 FILETYPE 0x1L
 FILESUBTYPE 0x0L
BEGIN
    BLOCK "StringFileInfo"
    BEGIN
        BLOCK "040904e4"
        BEGIN
            VALUE "CompanyName", "Hossein Khosravi"
            VALUE "FileDescription", "A MultiLayer Perceptron"
            VALUE "FileVersion", "1.0.0.1"
            VALUE "InternalName", "MultiLayerPerceptron.exe"
            VALUE "OriginalFilename", "MultiLayerPerceptron.exe"
            VALUE "ProductName", "MultiLayerPerceptron"
            VALUE "ProductVersion", "1.0.0.1"
        END
    END
    BLOCK "VarFileInfo"
    BEGIN
        VALUE "Translation", 0x409, 1252
    END
END


/////////////////////////////////////////////////////////////////////////////
//
// DESIGNINFO
//

#ifdef APSTUDIO_INVOKED
GUIDELINES DESIGNINFO 
BEGIN
    IDD_ABOUTBOX, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 228
        TOPMARGIN, 7
        BOTTOMMARGIN, 102
    END

    IDD_MULTILAYERPERCEPTRON_DIALOG, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 426
        TOPMARGIN, 7
        BOTTOMMARGIN, 351
    END
END
#endif    // APSTUDIO_INVOKED


/////////////////////////////////////////////////////////////////////////////
//
// Dialog Info
//

IDD_MULTILAYERPERCEPTRON_DIALOG DLGINIT
BEGIN
    IDC_COLOR, 0x403, 4, 0
0x6572, 0x0064, 
    IDC_COLOR, 0x403, 5, 0
0x6c62, 0x6575, "\000" 
    0
END


/////////////////////////////////////////////////////////////////////////////
//
// String Table
//

STRINGTABLE 
BEGIN
    IDS_ABOUTBOX            "&About MultiLayerPerceptron..."
END

#endif    // English (U.S.) resources
/////////////////////////////////////////////////////////////////////////////


/////////////////////////////////////////////////////////////////////////////
// Farsi resources

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_FAR)
#ifdef _WIN32
LANGUAGE LANG_FARSI, SUBLANG_DEFAULT
#pragma code_page(1256)
#endif //_WIN32

/////////////////////////////////////////////////////////////////////////////
//
// Dialog
//

IDD_ERROR DIALOGEX 0, 0, 382, 278
STYLE DS_SETFONT | DS_FIXEDSYS | WS_MINIMIZEBOX | WS_MAXIMIZEBOX | WS_POPUP | 
    WS_CAPTION | WS_SYSMENU | WS_THICKFRAME
CAPTION "Error Graph"
FONT 8, "MS Shell Dlg", 400, 0, 0x1
BEGIN
    CONTROL         "",IDC_SMARTGRAPH1,
                    "{A2919A75-B379-4BBD-8D95-15BEB3BAA140}",WS_TABSTOP,7,7,
                    366,264
    DEFPUSHBUTTON   "&Close",IDOK,7,257,50,14
END


/////////////////////////////////////////////////////////////////////////////
//
// DESIGNINFO
//

#ifdef APSTUDIO_INVOKED
GUIDELINES DESIGNINFO 
BEGIN
    IDD_ERROR, DIALOG
    BEGIN
        LEFTMARGIN, 7
        RIGHTMARGIN, 375
        TOPMARGIN, 7
        BOTTOMMARGIN, 271
    END
END
#endif    // APSTUDIO_INVOKED


/////////////////////////////////////////////////////////////////////////////
//
// Dialog Info
//

IDD_ERROR DLGINIT
BEGIN
    IDC_SMARTGRAPH1, 0x376, 34, 0
0x0000, 0x0000, 0x0710, 0x0000, 0x38be, 0x0000, 0x2c57, 0x0000, 0x0013, 
0xffff, 0x00e0, 0x0013, 0xffc0, 0x00ff, 0x0013, 0x00ff, 0x0000, 
    0
END


/////////////////////////////////////////////////////////////////////////////
//
// RT_MANIFEST
//

IDR_RT_MANIFEST1        RT_MANIFEST             "res\\MultiLayerPerceptron.manifest"
#endif    // Farsi resources
/////////////////////////////////////////////////////////////////////////////



#ifndef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 3 resource.
//
#define _AFX_NO_SPLITTER_RESOURCES
#define _AFX_NO_OLE_RESOURCES
#define _AFX_NO_TRACKER_RESOURCES
#define _AFX_NO_PROPERTY_RESOURCES

#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_FAR)
LANGUAGE 9, 1
#pragma code_page(1252)
#include "res\MultiLayerPerceptron.rc2"  // non-Microsoft Visual C++ edited resources
#include "afxres.rc"         // Standard components
#endif

/////////////////////////////////////////////////////////////////////////////
#endif    // not APSTUDIO_INVOKED

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, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Hossein Khosravi
Software Developer (Senior) FarsiOCR.ir
Iran (Islamic Republic Of) Iran (Islamic Republic Of)
I am an assistant Prof. at Shahrood University of Technology. I'm interested in Pattern Recognition (specially OCR), Neural Networks, Image Processing and Machine Vision. I'm a PROGRAMMER as well. I was born in Khezri, a city in Khorasan, the largest province of Iran. I took My BS. from Sharif University of technology in 2002 and MSc. and PhD. from Tarbiat Modarres University in 2006 and 2010 respectively.
Currently I'm working in Shahrood university as an assistant professor in Faculty of Electrical & Robotic Engineering.
 
Hossein Khosravi's Blog: Andisheh Online
 
Commercial Site: Farsi OCR Resources

| Advertise | Privacy | Mobile
Web01 | 2.8.140921.1 | Last Updated 30 Jan 2005
Article Copyright 2005 by Hossein Khosravi
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid