Question: Use RSTUDIO AND PRESENTES CODES AND RESULTS. DATA SET https://drive.google.com/file/d/1kNDzawK606UOPFnS5uEojKMwXP6MddtG/view?usp=sharing 11.3 Car Sales. Consider the data on used cars (ToyotaCorolla.csv) with 1436 records and details

Use RSTUDIO AND PRESENTES CODES AND RESULTS. DATA SET https://drive.google.com/file/d/1kNDzawK606UOPFnS5uEojKMwXP6MddtG/view?usp=sharing

11.3 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.

1. 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. 2. 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}.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!