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

  Matlab program that ?nds one root of a polynomial equation

Write a MATLAB program that ?nds one root of a polynomial equation using the Bisection method. A script ?le in MATLAB is a ?le that contains a sequence of MATLAB statements.

  Establish a working model in simmultibody

Simplify the provided IGES model to establish a working model in SimMultibody - Make design changes to the present configuration and report recommendations

  Simulate using matlab a casino style game

Your assignment requires you to simulate, using Matlab, a casino style game of chance. In theory these games are completely governed by the rules of probability and should be able to be simulated by the use of random number generators

  Create either a sub-function or an anonymous function

Create a primary function that returns the number of trials that give each of the distinct simulated sums of two dice rolls.

  Print the total dollar amount of inventory

Use fscanf to read this information, and print the total dollar amount of inventory - stores on each line a part number, cost, and quantity in inventory

  Derive an analytical expression of flux density

Compare the obtained computational results with infinite surface charge approximation - Derive an analytical expression of flux density - Compare the computational results with the analytical solution.

  Graph the damped frequency

The system consists of a single mass of M = 1 kg having a spring constant k = 10 N/m with a damping ratio ζ that varies from 0 to 2. Graph the damped frequency ωd as a function of damping ratio ζ as ζ goes from 0 to 2

  Design a three band stop filters

Design a three band stop filters for echo/reverberation cancellation for a specific room. Provide measurements of the room impulse response and frequency response with the coefficients.

  Plot an outcome of the proportion of successes

Simulate 2000 coin flip experiments with a biased coin with "success" probability (chance of 1) p = 1=5. Plot an outcome of the proportion of successes with respect to the number of coin flips. Supply your code.

  Generate by means data.m an array

Generate by measdata.m an array A withsize (365,24), containing temperature measurements for an entire year [1 January,..., 31 December], 24 hours a day [00.00h,...,23.00h].

  Need code and the procedures on how to generate results

MATLAB SIMULINK project - Need code and the procedures on how to generate results when input parameters like the ship's length and rudder angle

  Write a matlab script to implement the sum-product decoding

Sum-Product Decoder] Write a MATLAB script to implement the sum-product decoding algorithm for a linear block code with parity check matrix H when BPSK.

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