58072 Neural Networks Assignment

Assignment Help Computer Engineering
Reference no: EM132693183

58072 Neural Networks - Sharif University of Technology

Assignment 1

Use MATLAB NEURAL NETWORKS TOOLBOX or the Neunet (Desire) system to develop several variations of single-layer feed-forward networks that are able to learn sets of patterns. A set of patterns is learned if the TSS becomes zero. Note: it may not be possible to learn a particular set of patterns!

1. The basic single-layer feed-forward (SLFF) program uses a threshold activation function and the Delta learning rule. Try to learn (a) the AND patterns, (b) the OR patterns, (c) the XOR patterns.
2. Change the threshold activation function into a linear activation function. Then, repeat the three parts of Question 1 using the linear activation function.
3. Change the linear activation function into a sigmoid activation function. Then, repeat the three parts of Question 1 using the sigmoid activation function.

Questions
1. What effect does the activation function have on the ability of the network to learn the patterns?
2. What is the effect of removing the Bias term?
3. What is the effect of changing the learning rate (Lrate)? Does changing the learning rate make it possible to learn some patterns that could not otherwise be learned? Does changing the learning rate make it impossible to learn some patterns that could otherwise be learned?

Hand in a listing of each of the programs used in the assignment. Include in your report, the value of the time variable, t, when the TSS reached zero; if the TSS never reached zero, indicate why the patterns could not be learned. Your report should be brief but different aspects of each case be explained clearly and completely.

Assignment 2

Use MATLAB NEURAL NETWORKS TOOLBOX or the Neunet (Desire) system to study

Learning in single-layer feed-forward networks.

1. Use linear activation function and Hebbian learning for a SLFF network to attempt to learn the following two sets of patterns. Why can the patterns be learned, or why can they not be learned?

 

Input

Output

1 0 0

0 1

Set (1)

0 1 0

1 0

 

0 0 1

1 1

 

1 0 0

0 1

Set (2)

0 1 0

1 0

 

1 1 1

1 1

2. Repeat Question 1 using the linear activation function, but with Delta learning rule instead of Hebbian learning rule (remember that in the first assignment also you used Delta learning rule). Why can the patterns be learned, or why can they not be learned?
3. Use sigmoid activation function and the Delta learning rule. Try to learn (a) the AND patterns, (b) the OR patterns. What is the effect of the Temperature parameter on the number of epochs required to learn the patterns (i.e. speed of learning)?
4. Use stochastic activation function and the Delta learning rule. Try to learn (a) the AND patterns, (b) the OR patterns. What is the effect of the Temperature parameter on the number of epochs required to learn the patterns (i.e. speed of learning)?

Assignment 3

Use MATLAB NEURAL NETWORKS TOOLBOX or the Neunet (Desire) system to develop and study Learning process in Back-Propagation networks.

1. Train the 2-2-1 network to learn the XOR patterns.
2. Modify the 2-2-1 network so that only one hidden unit is used.
3. Train the 2-2-1 network to learn the XOR patterns when the Bias term is fixed at zero. (Note that you must modify a few statements in the program to accomplish this.)
4. Do not randomize the weights before training the 2-2-1 network. (Remove the initialization to random values statements; by default, the weights will be initialized to zero.)
5. Modify the program to include a Temperature parameter. Then, train the 2-2-1 network with several different Temperature parameter values.

Questions
1. How many epochs are required to learn the patterns correctly?
2. Does the system converge to the same set of weights after each learning session?
3. What is the effect of the learning rate (Lrate) on the speed of learning?
4. What is the effect of setting the initial weights to zero?
5. Can the Network learn the patterns without a Bias term?
6. What is the effect of the Temperature parameter on the speed of learning?
7. Did you encounter any local minima for which there were global minima of zero?

Assignment 4

Use MATLAB NEURAL NETWORKS TOOLBOX or the Neunet (Desire) system to develop and study Learning process in Back-Propagation networks. The patterns to be learned are the mapping from θ to cos(θ). The patterns are generated using a loop in the program which varies θ from 0 to 2Π in steps of 2Π/Npat. The output values are selected to be in the range [0,1] instead of [-1,1].

1. Train a 1-x-1 network to learn the patterns.
2. Modify the program so that a different activation function is used. For example try one of: Bipolar hidden and output units (tanh function); linear output units;
3. Test the ability of the network to generalize by presenting a set of Test patterns that the network was not trained with.

Questions
1. How many epochs are required to learn the patterns reasonably well ( tss ? 0.01)?
2. How many hidden units are required? (There will be a range of hidden units that provide similar results.)
3. What is the effect of changing the activation function?
4. How well is the network able to generalize?
5. Are there any other changes that could be made to reduce tss (not the speed of learning)?

Assignment 5
Use MATLAB NEURAL NETWORKS TOOLBOX or the Neunet (Desire) system to develop and learn patterns using Competitive networks. The patterns to be learned are the 5x5 grid of alphabetic characters. (for an example see page 297 of your TEXT.)

1. Train the competitive network to learn the patterns using a conscience (crit=0).
2. Train the competitive network to learn the patterns without using a conscience (crit<0).
3. Optionally, train the competitive network to learn the patterns using pseudo-Art competition (crit>0).
4. Optionally, train a Back-Propagation Network to learn the patterns. (you would have to copy the patterns into one of the Back-Propagation programs.)

Questions
1. Can the conscience-based competitive network learn the patterns correctly? If so, how many training epochs are required? If not, why not?
2. Can the Basic competitive network learn the patterns correctly? If so, how many training epochs are required? If not, why not?
3. What is the effect of the learning rate (Lrate) on the speed of learning? What is the effect of the Decay parameter on the learning speed?
4. What is the effect of using large initial weights on the learning process?

Assignment 6
Use MATLAB NEURAL NETWORKS TOOLBOX or the Neunet (Desire) system to develop and study Recurrent neural networks.

1. Run the Basic Recurrent Network.
2. Add some additional patterns to the network and rerun the processing.
3. Change the Recall function from a Threshold function to a Stochastic function. Gradually, decrease the Temperature parameter during recall.
Questions
1. What is the distribution of correct patterns, inverse patterns, and local minima with each of the above 3 programs?

Attachment:- Assignments 1 to 6 - NN.rar

Reference no: EM132693183

Questions Cloud

Compute cost that is assigned to each bicycle product line : Compute the cost that is assigned to each bicycle product line using activity-based costing system, given the following information.
Provide the journal entry for August warranty work : Provide the journal entry for (a) the estimated warranty expense on January 31 for January sales, (b) the August 15 warranty work
Developed your public speaking skills : During the previous weeks, you have developed your public speaking skills.
How would you expand on or change the transition process : The unique transition from military to civilian culture can manifest itself in numerous ways, such as injury, not being promoted, or a military member's.
58072 Neural Networks Assignment : 58072 Neural Networks Assignment Help and Solution, Sharif University of Technology - Assessment Writing Service - What effect does the activation function
Find the overhead cost assigned to each type of tent : Find the overhead cost assigned to each type of tent assuming direct labor hours are used to allocate overhead costs. Mannheim Corporation
Make the journal entry for vacation pay and pension benefit : The full amount due was contributed to the pension plan administrator. Make the journal entry for the vacation pay and pension benefit
How do values of evaluation conflict adhere to social work : Post (2 to 3 pages) a response to Jansson's assertion that evaluating specific policies is strongly influenced by values with respect to the case of the.
Calculate the number of units completed during the period : Calculate the number of units completed during the period. Calculate equivalent units for conversion during the period. Calculate cost per equivalent units

Reviews

len2693183

11/10/2020 11:03:33 PM

Use linear activation function and Hebbian learning for a SLFF network to attempt to learn the following two sets of patterns. Why can the patterns be learned, or why can they not be learned?

Write a Review

Computer Engineering Questions & Answers

  What are the common biometric techniques

Some common biometric techniques include: Fingerprint recognition. Select one of these biometric techniques and explain the benefits and the vulnerabilities.

  Calculate the volume of a cylinder tank

Write a MATLAB program that calculates the volume of a cylinder tank by receiving the radius,height, & time from the user and calculates the volume of a liquid.

  Create your own text file to test your program

Write a Java program which reads a text file and writes the content into a new file. Create your own text file to test your program.

  What are the strategic and technical security measures

Considering the importance of data in organization, it is absolutely essential to secure the data present in the database. What are the strategic and technical.

  Define array data type student-scores of length max-length

Define an array data type Student_Scores of length Max_Length. The components are of type Score_Range.

  What mean to take a systems view of a project

What does it mean to take a systems view of a project? How does taking the systems view of a project apply to project management.

  Write a method switchpairs that switches the order of values

Write a method switchPairs that switches the order of values in an ArrayList of strings in a pairwise fashion.

  How to prepare your favorite three-dish meal

How to prepare your favorite three-dish meal? Change the font and font size of the Title Only slides using the Slide Master.

  Describe the issue of securing backups

How should backup media be secured? What about off-site storage of backups? 250 words with APA format along with citations and references.

  Write a snippet code that create an arrayof float elements

Write a snippet of C++ code that Create an array of 100,000 float elements that is allocated on the heap.

  Write a function to determine if the hand contains a pair

Write a function to determine if the hand contains a pair. Write a function to determine if the hand contains two pairs.

  What does the acl benford command do

The purpose of this case is to familiarize you with the Benford's Law function-ality of the ACL and IDEA software.

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