Build a hopfield network to store the good and bad

Assignment Help MATLAB Programming
Reference no: EM132239285

Neural Networks Lab: Unsupervised Learning

Please finish the code and make do the project (you will need to make a competitive learning network and a Hopfield network).

Code for both the CLR and Hopfield Neural nets that categorizes the Greebles.

Project

Recent events led to the creation of the "Department for Greeble Security". You are a programmer for this recently established ministry and your job is to write software that distinguishes the "good" Greebles from the "bad" Greebles. Researchers in another section of the department have shown that three parameters correlate with the tendency that a Greeble is good or bad. These parameters are: "boges" length, "quiff" width and "dunth" height [7]. Specifically, it has been shown that good Greebles have long boges, thin quiffs and high dunths while the bad Greebles tend to have short boges, thick quiffs and low dunths.

A given individual Greeble might have any number of variations of these parameters. In other words, this classification is not as clear-cut and easy as your superiors might want it to be. That's where you come in. You decide to solve this problem with a neural network, since you know that neural networks are well suited for this kind of problem.

In this project, you will be asked to create two neural networks.

1) The first neural network will be a competitive learning network that distinguishes good from bad Greebles.

a) Train the network with the training set on Canvas (it contains data on Greebles who have been shown to be good or evil in the past, along with their parameters for boges length, quaff width and dunth height.) Plot the training data in three dimensions along with the two weight vectors associated with the good and evil output neurons using quiver3.

b) Test the network with the test set on Canvas (it contains parameters on Greebles that were recently captured by the department and suspected of being bad. Use your network to determine if they are (more likely to be) good or bad).
c) Document these steps, but make sure to include a final report on the test set. Which Greebles do you (your network) recognize as being bad, which do you recognize as being good?
d) Qualitatively evaluate the confidence that you have in this classification. Include graphs and figures to this end.

The future and welfare of the Greebles rests in your hands.

Hints:
– Load the two training populations using the command xlsread(‘filename'). Each file contains measurements of three parameters (in inches): Boges length, quaff width and dunth height. Each row represents an individual Greeble.
– Before you do anything else, you might want to plot your populations in a three- dimensional space (you have three parameters per individual). You can do this by using plot3(param1,param2,param3). In other respects, plot3 works just like plot.
– Merge the data into a big training vector
– Create the competitive network
– Train the competitive network
– Download the test files and test the population with your trained network
– Your program should produce a final list which Greebles in the test population are good and which are bad. Also: Graph input weights before and after training.
– Disclaimer: No actual Greebles were hurt when preparing this tutorial.

2) The second neural network that you will create is a Hopfield network that will store the prototypical good and bad Greeble. Specifically, you should do the following

a) Normalize the features of all the Greebles so that the largest feature value across all Greebles for each of the three features is 1 and the lowest feature value is -1.

b) Create the prototypical good and bad Greebles by taking the average features of the good and bad Greebles, respectively.

c) Build a Hopfield network to store the good and bad prototypes (i.e. two feature vectors).

d) Use the test set to see if the Hopfield network can categorize the suspected Greebles as prototypical good or bad Greebles. Compare these results with the results using the competitive learning network.

The equilibrium state of the Hopfield network should be one of these two vectors [1 -1 1] or [-1 1 -1] for the good and bad Greebles, respectively.

Attachment:- Neural Nets.rar

Verified Expert

This work is based on the unsupervised learning using neural networks.Initially greebles dataset is loaded.after that 3 dimensional input data is plotted.Its viewed using quiver3. Then the data is trained with the neural network and the results are plotted.Then hopfield network is used for the greebles dataset for training.Then the trained data is tested using testing data,from that good greebles and bad greebles are plotted.Then the results are compared.

Reference no: EM132239285

Questions Cloud

Describe characteristics of addictive populations : Describe characteristics of addictive populations. Discuss the challenges of working with a specific addictive population.
Identify some of the values and norms in the ad that reflect : Identify some of the values, norms, material goods, symbols and language depicted in the ad that reflect American culture.
What is an example of a cultural practice : How does our cultural worldview influence and inform our perception of people from other cultures?
Address some aspect of social media use in the workplace : For the body of your presentation, cover the main points of your subject. Create slides that reinforce and illustrate your main ideas.
Build a hopfield network to store the good and bad : CPNS 33200 - Neural Networks Create is a Hopfield network that will store the prototypical good and bad Greeble - Create the prototypical good and bad Greebles
Analyze various issues affecting the media business : Analyze ways in which different types of media content reflect and / or influence society's attitudes and behaviors.
Identify at least three groups you belong to : Describe the different role(s) you play from group to group...(how does your role change? Can you change role(s) within the group?
Describe two important elements of data presented on graph : Describe the ways in which this (online socializing) can be defined as a personal trouble or social issue.
Examine a misuse of technology : Examine a misuse of technology that you have observed within the global community.

Reviews

len2239285

2/21/2019 4:39:31 AM

I have already done most of the lab (attached files). I just need it to be finished. Also, you do not need to work on the lab report! Just please finish the code and make do the project (you will need to make a competitive learning network and a Hopfield network). FINISH EVERY PART OF QUESTIONS 1 AND 2 IN THE PROJECT. IN YOUR SUBMISSION, PLEASE SEND JUST THE REQUESTED FIGURES AND the code for both the CLR and Hopfield Neural nets that categorizes the Greebles.

Write a Review

MATLAB Programming Questions & Answers

  Write a program in matlab using the galerkin method

The assignment consists in writing a program in MATLAB Using the galerkin method for finite elements that can solve for: Displacements in x and y of a solid bar that is constrained by boundary conditions A and B using a given mesh file called "rec..

  Sketch the pm and fm waves produced

Sketch the PM and FM waves produced by the sawtooth wave in figure - Matlab to plot the baseband signal m(t), and PM and FM waves produced by the sawtooth wave m(t) shown in on page 140 of the textbook.

  What is the minimum snr for a sinusoid in white noise

What is the minimum SNR for a sinusoid in white noise to be detectable using frequency domain techniques (Periodogram and Blackman-Tukey)? Do the results depend on frequency? Compute and plot separate correlation functions of white noise data and of ..

  Design a pid controller using matlab simulink

Determine the closed-loop step response using MATLAB for a system with unity feedback - Design a PID controller using MATLAB Simulink/code

  Obtain the cross products using matlab cross function

Use MATLAB cross function to obtain the above cross products. Note that the accelerations are known functions of the derivatives of the three coordinates.

  The body fat percentage

The body fat percentage (BFP) of a person can be estimated by the formula BFP= 1.2xBMI+0.23xAGE -10.8xGEnder-0.54 where BMI is the body mass index, given by BMI = 703 W/H^2, in which W is the weight in pounds and H is the height in inches

  Problems related to matlab

solve the system for the least-squares estimates of Δρi.

  Perform a simulation of a dc motor control system

Tasks include position control and speed control. Transfer functions of motor, controller, and sensor will be given to you.

  What is the purpose of the diary command in matlab

Write the MATLAB code for adding the integers 6 and 3, and storing the sum in a variable x. Write the MATLAB code that takes the square root of 9

  Compute the DFS coefficients

Fourier Series Compute the DFS coefficients of the following periodic sequences using the DFS definition and then verify your answers using MATLAB.

  Write compile and run a hello program

With these mechanical details mastered, everything else is comparatively easy - Write, compile and run a hello program.

  Implement stochastic model in matlab

Implement this stochastic model in MATLAB - The same fundamental model can be implemented as a stochastic model by use of the Gillespie algorithm.

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