Question: Use r studio for this question and present the code and results with the corresponding question. data set data set: https://drive.google.com/file/d/1kNDzawK606UOPFnS5uEojKMwXP6MddtG/view?usp=sharing Car Sales. Consider the
Use r studio for this question and present the code and results with the corresponding question.
data set data set: https://drive.google.com/file/d/1kNDzawK606UOPFnS5uEojKMwXP6MddtG/view?usp=sharing
Car Sales. Consider the data on used cars (ToyotaCorolla.csv) with 1436 records and details on 38 attributes, including Price, Age, KM, HP, and other specifications. The goal is to predict the price of a used Toyota Corolla based on its specifications. a. Fit a neural network model to the data. Use a single hidden layer with 2 nodes. Use predictors Age_08_04, KM, Fuel_Type, HP, Automatic, Doors, Quarterly_Tax, Mfr_Guarantee, Guarantee_Period, Airco, Automatic_airco, CD_Player, Powered_Windows, Sport_Model, and Tow_Bar. Remember to first scale the numerical predictor and outcome variables to a 0-1 scale (use function preprocess() with method = "range"see Chapter 7) and convert categorical predictors to dummies. b. Record the RMS error for the training data and the validation data. Repeat the process, changing the number of hidden layers and nodes to {single layer with 5 nodes}, {two layers, 5 nodes in each layer}. i. What happens to the RMS error for the training data as the number of layers and nodes increases? ii. What happens to the RMS error for the validation data? iii. Comment on the appropriate number of layers and nodes for this application.
tis the complete question
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
