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

  Finite difference method

Use the finite difference method to calculate the temperature at the point specified since it is easier.

  Determine the necessary shell temperature

In a shell-and-tube heat exchanger, one fluid passes through a central tube while another fluid flows through an outer shell in the opposite direction. The purpose is to heat the fluid passing through the central tube.

  Find the integral of a function at an arbitrary location

Write a Matlab function to perform numerical integration of a set of evenly spaced data points using the trapezoidal rule

  Compute the speed of single-stage planetary gear train

Write a MATLAB function [speed] = planetary (N, emesh, first, last, arm) that computes the speed of a given link in a single-stage planetary gear train.

  Calculate and plot the error in the numerical derivative

Write a program to calculate and plot the error in the numerical estimate of the derivative.

  Create the graph using matlab functions

Create the graph, which contains a piecewise function where a line exists in the first interval, a parabola in the second interval, and the sine function in the third interval.

  Develop a simulation program

Develop a simulation program

  Create a vector in matlab

Create a three dimensional diagram of function.

  Open a named pipe and to read data from the pipe

Open a named pipe and to read data from the pipe in matlab

  Write the commands that will create the matrix

Write the commands that will create the matrix.

  Lagrange interpolating polynomial of degree

Lagrange interpolating polynomial of degree

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