Ask Computer Engineering Expert

Exercise - Neural Network

In this exercise, you will use the R Studio interface to run the Neural Network method. You will run the method with different parameters and will interpret the results, including the classification accuracy.

Exercise Instructions

Part 1 - Complete an exercise in the Word document on diabetes dataset.  Get familiar with the neuralnet method and with available input parameters. 

1676_figure.png

Your results might be slightly different depending on the operating system and R Studio version.  You do not need to write a report for this part.

Part 2 - Run an exercise on a column dataset and write a report on your findings and results interpretation in your own words. The report needs to cover the exercise key points below in order.

Download the CSV file to your hard drive. Click on a dataset description URL and read the dataset description.

Exercise Key points -

1. Introduction

  • Which variable is the dependent variable in the column dataset?
  • Which variables are the independent variables in the column dataset?
  • What do you expect the neuralnet method to accomplish for the column data?

2. Data pre-processing - Load the data into R studio, and discuss the data preprocessing steps you run before running the neuralnet method. For each step, include the command you ran, the output, and an explanation of what the step accomplishes.

3. Divide the data into training and test set, and explain why we do that.  Include the commands and explanation in the report.  Remember to set seed.

4. Running the method on a training set

  • Run the neural net function to build the network, and store the result in a variable nn. Include the command in the report, and discuss the input parameters you used.
  • Enter nn at the prompt and hit enter. Interpret the output. Include the command, the output, and output interpretation in the report.
  • Run the command nn$result.matrix. Interpret the output. Include the command, the output, and output interpretation in the report.
  • Run the command nn$net.result[[1]][1:10] to preview the first 10 predicted values. What do the values mean? Include the command, the output, and output interpretation in the report.

5. Network Visualization - Run the plot(nn) command to visualize the network, and interpret the model.  If the plot is hard to read, you may need to click on zoom button in the plot panel to view the model in a new window.  Included the command you ran, the plot, and plot interpretation in the report.

6. Confusion Matrix for the training data

  • Run the following commands to extract and store the predicted values in a variable mypredict. Round the predictions to the whole number. Display the first 10 values of mypredict. Explain what the values mean. Include the commands, the output, and output interpretation in the report.
  • Run the table command to build the confusion matrix. Explain what the matrix shows. Include the command you ran, the matrix, and matrix interpretation in the report.

7. Use the test data to evaluate the model.

  • Use the test set to run the compute command, and store the predicted values in the variable testpred. Run the second command to run round the predictions. Include both commands in the report.
  • Run the table command to build the confusion matrix for the test data. Explain what the matrix shows. Include the command you ran, the matrix, and matrix interpretation in the report.
  • Compare the classification accuracy for the test data with the classification accuracy for the training data.

8. Different Input parameters.

  • Repeat the steps 4-7 above with different input parameters. You may change the number of hidden layers, and/or the number of nodes in the hidden layer, and/or you may use a subset of independent variables. Include the command your ran, the output, and the output interpretation in the report.
  • Compare the results of the two runs. Which run has a higher classification accuracy and why?

9. Summary

  • What differences between decision tree classification and neural network classification methods did you observe?
  • Which part of this exercise did you find the most challenging, and what approach did you take to resolve the challenge?

Attachment:- Assignment Files.rar

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M92516958

Have any Question?


Related Questions in Computer Engineering

Does bmw have a guided missile corporate culture and

Does BMW have a guided missile corporate culture, and incubator corporate culture, a family corporate culture, or an Eiffel tower corporate culture?

Rebecca borrows 10000 at 18 compounded annually she pays

Rebecca borrows $10,000 at 18% compounded annually. She pays off the loan over a 5-year period with annual payments, starting at year 1. Each successive payment is $700 greater than the previous payment. (a) How much was ...

Jeff decides to start saving some money from this upcoming

Jeff decides to start saving some money from this upcoming month onwards. He decides to save only $500 at first, but each month he will increase the amount invested by $100. He will do it for 60 months (including the fir ...

Suppose you make 30 annual investments in a fund that pays

Suppose you make 30 annual investments in a fund that pays 6% compounded annually. If your first deposit is $7,500 and each successive deposit is 6% greater than the preceding deposit, how much will be in the fund immedi ...

Question -under what circumstances is it ethical if ever to

Question :- Under what circumstances is it ethical, if ever, to use consumer information in marketing research? Explain why you consider it ethical or unethical.

What are the differences between four types of economics

What are the differences between four types of economics evaluations and their differences with other two (budget impact analysis (BIA) and cost of illness (COI) studies)?

What type of economic system does norway have explain some

What type of economic system does Norway have? Explain some of the benefits of this system to the country and some of the drawbacks,

Among the who imf and wto which of these governmental

Among the WHO, IMF, and WTO, which of these governmental institutions do you feel has most profoundly shaped healthcare outcomes in low-income countries and why? Please support your reasons with examples and research/doc ...

A real estate developer will build two different types of

A real estate developer will build two different types of apartments in a residential area: one- bedroom apartments and two-bedroom apartments. In addition, the developer will build either a swimming pool or a tennis cou ...

Question what some of the reasons that evolutionary models

Question : What some of the reasons that evolutionary models are considered by many to be the best approach to software development. The response must be typed, single spaced, must be in times new roman font (size 12) an ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As