Implement selectable ordering of the training data

Assignment Help Other Subject
Reference no: EM132274593

Assignment 1

Aim:

This assignment is intended to provide basic experience in writing neural network applications and conducting classification experiments with MLPs. After having completed this assignment you should know how to implement a back propagation multi-layer neural network which can be used for a variety of classification tasks.

Assignment Specification:

Your main task in this assignment is to implement selectable ordering of the training data and make the net more powerful by enabling the MLP to be configured as a 3-, 4- or 5-layer MLP with a specified number of neurons in each layer and to use the MLP to classify all the given data. You are to also provide a test function so that the MLP can learn training data and be tested with different test data. For this assignment you can write and compile your code on PC or UNIX platforms. To complete this assignment, it is recommended you follow the steps below.

Step 1: To improve MLP training, implement an option for providing selectable ordering of the training data. The "Ordering" parameter should be added to the definition header of the training data files after ObjErr. e.g.:
. . .
Mtm1 : 1.2
Mtm2: 0.4
ObjErr: 0.005
Ordering: 1
. . .
"Ordering" determines which training pattern is selected each training iteration (epoch). The options are:
0 Fixed Always uses the same given order of training patterns.
1 Random Make completely different (random) order at each epoch (i.e. new permutation).
2 Random Swap Random permutation at start. After each epoch, two patterns are randomly selected and exchanged.

Tip: Try using an index array to rearrange the selection order.

Step 2: Implement 4- and 5-layer neural networks (i.e., have 2 and 3 hidden layers, respectively) trained with the back propagation algorithm by modifying the code in mlp.cpp. To do this rename the TrainNet() function to TrainNet3() and make modified copies of this function (named: TrainNet4() and TrainNet5()) with 4- and 5-layers respectively. Then incorporate a switch statement into your code so that the appropriate TrainNet() function is invoked according to the data specs. Test your completed code on the provided data and ensure that the MLP configuration in the data files (i.e., the number of layers, number of neurons, etc.) is being complied with.

Step 3: Write a TestNet() function that tests the MLP's performance by using the MLP trained with the training data to classify the test data in the data files and report the error rate. A typical run of you MLP should look like:

Step 4: Your task here is to devise various back-propagation neural network of minimum size (in terms of the number of neurons in the MLP) that can correctly classify the Two Spiral Problem (data1.txt) and the other data sets associated with Problems 2 and 3 (see below). Note: the data for problems 2 and 3 may need extra work, like normalizing the data, dividing it into training and test data and adding the MLP header information. You should experiment with various MLPs with variations in the numbers of layers, number of neurons in each layer, parameters (e.g., learning rate and momentum) and the number of training iterations. If you are unable to classify all the data correctly, then your final MLP configuration should be a best case compromise between size and performance. For each data set you must write a report comprised of the following information with the given headings:

1) About the problem
A brief description of the problem.
2) On the various MLPs experimented

A report of the various MLPs (at least 3 MLPs) that you experimented with including any parameter changes you made and the results that were achieved. Try running each MLP a few times to determine if the problem has local minimums. If so state this in the report and see if this can be avoided by increasing the momentum. You should also indicate the approximate architecture that you think is most suited for the problem and how long and the number of epochs it takes to learn the data. (e.g., "... the best MLP for the problem appears to be a network with a large number of hidden layers with few nodes in each layer..."). Use graphs if you think this is helpful in understanding the performance differences of the various MLPs.

3) On the final MLP's architecture

Report on the final MLP that you consider is either the one that classifies all the data correctly or is a best case compromise between size and performance. Provide a description of the final MLP architecture together with a drawing of the MLP.

4) On the final MLP's performance

Write a brief summary of the final MLP's performance. Also, provide a graph showing the epochs vs error rate. (Note: for binary classification problems, the error rate should indicate the percentage of patterns correctly classified on the training and test data.) Was the final MLP able to learn all the training data and classify the test data correctly? If not, why not? Are there local minimums with this MLP?

Attachment:- Assignment and Datasets.rar

Verified Expert

This assignment shows the relevancy and irrelevancy of the sequence for showing the best of the interactive design for the personal use and the professional use of the industry as well as the college and university for the enhanced version of understanding of the language and the concepts.

Reference no: EM132274593

Questions Cloud

Create Human Resource strategy for case study organisation : Create a Human Resource strategy for the case study organisation and give a reasoned justification of how this strategy will address these HR issues
Affordable care act requires : The Affordable Care Act requires that all Americans have health insurance by March of 2014.
One of the perennial problems of strategy for organizations : One of the perennial problems of strategy for organizations has been. What is the best way to develop new capabilities?
Identify at least five sources you would want to use : Using a Web browser, visit "securityfocus" . What is Bugtraq, and how would it be useful? What additional information is provided under the Vulnerabilities tab
Implement selectable ordering of the training data : How to implement a back propagation multi-layer neural network which can be used for a variety of classification tasks - implement selectable ordering
Explain the public key infrastructure process : Explain the Public Key Infrastructure process and identify the PKI structure to include the major roles.
Research on chevrons use of seismic imaging technology : Research on Chevron's use of seismic imaging technology. Briefly explain how it works and how it has helped Chevron discover new oil and gas reservoirs.
Describe the complex email system : Describe the complex email system that is attached. Describe in detail the benefits of this system using examples as appropriate.
Describe the differences between US GAAP and IFRS : Despite more the significant efforts toward converging the two sets of accounting standards, many differences still remain between U.S. GAAP and IFRS.

Reviews

len2274593

4/4/2019 1:00:07 AM

Problem and Data – 4 marks To receive full marks for “Problem and Data” adequate experimentation and documentation of the spiral and the other two data sets must have been undertaken and documented. A brief description of the problem (0.5 mark) [ ] A progress report including: [ ] o at least 3 MLP experienced; (0.5 mark) o running each MLP a few times on local minimum and state it (0.5 mark) o indicate approximate architecture and the number of epochs (0.5 mark) Report on the final MLP, provide architecture and drawing (0.5 mark) [ ] Summarize the final MLP’s performance and provide error graph (1.0 mark) [ ] Documentation adequate, neat, easy to understand. e.g. Well written, section headings, figs, graphs, MLP architecture, learning curves, references provided. (0.5 mark) [ ] Comment: [ ]

len2274593

4/4/2019 12:59:38 AM

wo files needed As you see in the file I need 2 files 1- c++ file 2- Report should be 3 pages- word file which is the report in details with chart and figures to show what happened in details in c++ file.MLP Coding – 6 marks To receive full marks for “MLP Coding” the given MLP had to be modified. ? Step 1. Data ordering (3 marks) [ ] ? Step 2. 4- and 5-layer MLPs. (2 marks) [ ] ? Step 3. Write a TestNet() function. (1 mark) [ ] ? Marks may get deducted for messy work or bad formatting in the printout. [ ]

Write a Review

Other Subject Questions & Answers

  Helping employees to learn new behaviors

Explain why behavior modelling is often more effective than direct reinforcement for helping employees to learn new behaviors

  Recognize the fairness for struggling students act

Recognize the Fairness For Struggling Students Act of 2013 and present status of this legislation. Incorporate the kinds of loans covered and kinds of loans which are not covered.

  Stronger solution of sodium bicarbonate

If a stronger solution of sodium bicarbonate was used, would it require more or less acetic acid to neutralize and why? If a weaker solution of sodium bicarbonate was used, would that solution require more or less acetic acid to neutralize it and ..

  How many current jobs, and what are the projections

how many current jobs, and what are the projections for the future.

  Why medication alone is not as effective as psychotherapy

Write a 1,200-1,500-word essay about your findings on why medication alone is not as effective as psychotherapy in combination with medication for treating.

  Law enforcement agency after a bomb exploded

Imagine your team is the first responder law enforcement agency after a bomb exploded at City Hall. An anonymous caller has claimed responsibility and indicated that biological or chemical toxins were released in the explosion

  Describe its patient information capture process

Choose a health care organization or provider with which you are familiar, and describe its patient information capture process

  Discuss educational component is inherently more valuable

not tourism that incorporates a formal educational component is inherently more valuable

  How well standardized tests measure your abilities

Issue: how well do you think standardized tests measure your abilities? Write an Argument Papers of 2 pages excluding the cover page.

  Write an essay demonstrating the importance of nfpa standard

Write an essay demonstrating the importance of NFPA Standard 25 and how the standard positively influences fire protection and firefighter safety.

  Research the historical perspective

Criminal Justice: Courts. Your assignment is to take this elements, which can be broken down, and research the historical perspective.

  Blackhawk down-accounts of modern war

The book Blackhawk Down is considered to be one of the best accounts of modern war. In 8-10 page correctly source credited in the APA format paper:

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd