Report training error value at the end of training session

Assignment Help Other Subject
Reference no: EM131953718

Note: For this assignment, all coding has to be done in R. The results of your experiments (including plots), and your comments for all problems should take the form of a report. See the guidelines at the end of this document for reporting and submission instructions.

For the portion of this assignment requiring SCA data, use the full SCA data set found in the file "hemo.csv." Your code should be written to load the hemo.csv file. Use the 15% criteria to determine the responders and non-responders. So, ignore the last column, labeled "Class".

For the portion of this assignment requiring Leukemia data, use the reduced microarray data set found in golubtrain.csv and golubtest.csv. These files should be combined with in R, as new training and testing divisions will be made between the patients in both datasets.

For the purpose of classification experiments, you will NOT use the leave-one-out methodology. Instead, divide the data set randomly into a training set and a testing set. For Leukemia data, this has already been done for you. You may re-randomize it if you prefer. You may also use a validation set if you so choose for part 1. You will need to specify a way for keras to split your training data into training and validation data,, as discussed later in the Keras part of the assignment.

Single-layer networks:

1.  Use R's built-in neural network functions for classification of the SCA patients. For this problem, use the highest ranked parameter. For each type of network below, report the training error value at the end of the training session for all training runs that you make. Plot the error function of the bestANN run. Report its training and testing accuracy.

1. Use a Delta-rule network with sigmoidal activation functions.

2. Use a two-stage Back-propagation network with sigmoidal activation functions.
Keras Multilayer Networks: Background research, Code Implementation & Comparison to Single-layer:

3. Use the keras library in R for the coding implementation portions of these problems, with the tensorflow library as a backend. Please give detailed but concise answers to any questions asked. Links for the sources you used should be included at the end of the report. Do not use Wikipedia or Stack Overflow and Quora answers as sources (but you can use them to help you understand the concepts).

a. Build the model: Using the 80 highest ranked parameters selected from the Golub dataset, build a network using Keras with an appropriate model for the data we are classifying and type of classification: one input layer with 64 neurons with the appropriate number of inputs (specified using the input_shape parameter), and 3 hidden layers with 64, 32, and 16 neurons, respectively (maintain the order listed when adding these layers to your network!). Choose a proper activation function for your layers. Add a final output layer, and choose the activation function you think is best for classifying the data given (Golub set, binary classification).
c. Compile the model: Choose an appropriate loss function and an appropriate optimization function for for the network you have designed.
e. Training and testing: Re-divide the Golub training and testing data so that the first 45 patients are in the training set (validation will be sampled from here), and the last 27 patients in the testing set. Return the class labels and final training accuracy and testing accuracy of ten epochs of your final model. State these accuracies in your report. During your model fitting, make sure you specify a value for validation_split that is appropriate for our small set of patients. Choose at least two in your code, and briefly explain what these metrics mean.

4. Use the same predictors and setup created in the last problem, but this time, use 16 neurons in your first middle hidden layer,32 neurons in the second middle hidden layer, and 64 neurons in the third middle hidden layer. Generate accuracies and compare this to what you saw in problem 3.

5. Play around with the size of the training and testing sets, the number of layers, the number of neurons in each layer, and choice of final layer activation function in your keras network, and report the accuracies of 10 runs of your best-performing network for the golub data.Repeat this for the hemo data. Make sure your cv accuracy is less than your training accuracy for your neural network runs; be skeptical of extremely high training accuracy!

Attachment:- data.zip

Reference no: EM131953718

Questions Cloud

Develop strong thesis support by material from both diaries : Using ONLY the Civil War diaries edited by Christ and Wing, carefully craft a 4-6 page. Develop a strong thesis supported by material from both diaries.
Suppose that investor with five-year investment horizon : Suppose that an investor with a five-year investment horizon is considering purchasing a seven-year 9% (annual rate) coupon bond selling at par.
Various ways of measuring bank ability to sustain loss : Discuss the various ways of measuring a bank's ability to sustain a loss. Advantages/disadvantages?
Would you agree with abraham lincolns comment : After reading Uncle Tom's Cabin; would you agree with Abraham Lincoln's comment upon meeting Harriet Beecher Stowe during the American Civil War.
Report training error value at the end of training session : Report the training error value at the end of the training session for all training runs that you make. Plot the error function of the bestANN run.
Have you ever engaged in social loafing while on a team : Based on your self-assessment, what do you see as your strengths and weaknesses regarding working on a team?
Expect to be most profitable during summer : Which spread would you expect to be most profitable during the summer? Which during the winter?
Discuss the perpetuation and expansion of black slavery : Discuss the perpetuation and expansion of black slavery in the United States between 1776 and 1860. In other words, what events and situations caused?
Calculate kevin income elasticity of demand for good a : a) Calculate Kevin's income elasticity of demand for good A. b) Is good A a normal or inferior good for Kevin? Explain.

Reviews

Write a Review

Other Subject Questions & Answers

  Cross-cultural opportunities and conflicts in canada

Short Paper on Cross-cultural Opportunities and Conflicts in Canada.

  Sociology theory questions

Sociology are very fundamental in nature. Role strain and role constraint speak about the duties and responsibilities of the roles of people in society or in a group. A short theory about Darwin and Moths is also answered.

  A book review on unfaithful angels

This review will help the reader understand the social work profession through different concepts giving the glimpse of why the social work profession might have drifted away from its original purpose of serving the poor.

  Disorder paper: schizophrenia

Schizophrenia does not really have just one single cause. It is a possibility that this disorder could be inherited but not all doctors are sure.

  Individual assignment: two models handout and rubric

Individual Assignment : Two Models Handout and Rubric,    This paper will allow you to understand and evaluate two vastly different organizational models and to effectively communicate their differences.

  Developing strategic intent for toyota

The following report includes the description about the organization, its strategies, industry analysis in which it operates and its position in the industry.

  Gasoline powered passenger vehicles

In this study, we examine how gasoline price volatility and income of the consumers impacts consumer's demand for gasoline.

  An aspect of poverty in canada

Economics thesis undergrad 4th year paper to write. it should be about 22 pages in length, literature review, economic analysis and then data or cost benefit analysis.

  Ngn customer satisfaction qos indicator for 3g services

The paper aims to highlight the global trends in countries and regions where 3G has already been introduced and propose an implementation plan to the telecom operators of developing countries.

  Prepare a power point presentation

Prepare the power point presentation for the case: Santa Fe Independent School District

  Information literacy is important in this environment

Information literacy is critically important in this contemporary environment

  Associative property of multiplication

Write a definition for associative property of multiplication.

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