Question: 1 . A - Load the Dataset ints = at rend _ gevi'frent,onericte'? pritibts - inwet Atselasel ] ( 3 $ 3 % , 2
A Load the Dataset
ints at rendgevi'frent,onericte'?
pritibtsinwet
Atselasel
$
B Create Feature and Label Arrays
This dataset contains numerical features, two categorical features, and a single label. The frst columns of the dataset represent the
numerical features. The next two columns, named usldernessarea and sotype, represent the categorical features. The final column,
coverType, provides the integerencoded labels. We will ignore the categorical features for this assignment.
In the cell below, create a feature amay and a label array. The feature amay should contains only the numerical features.
The labels are encoded using integers but they need to be encoded using integers When creating the label array, please subtract
from all of the label values.
After creating the two arrays, print the shape of each array.
X datalocivalues
y a dataCoverType'
printx shase
printyshape
C Build and Train the Model
Use insequential to construct a neural network for use with this problem. You can use linear and Relu layers for this part You can select
any architecture you would lice, as long as you meet the goal described below. Wrap your network using the nuet class provided in the course
module.
After creating the model, call the trainnode method to train the model on the forest cover data. Set valselitae. and seede Select
values the epochs, batchsize, Ir and updates, parameters.
To Imit the number of lines of ouput displayed to fewer than please select a value for updates that is not less than epochs
Your goal is to reach a final validation accuracy of at least To show that your model is relatively stable, your validation accuracy should be
above this threshold for the last several training epochs. Adjust the training parameters untll this goal is met.
D Display the Training Curves
Call the trainingcurves method to display the training curves for your model.
Need help with C and D thank you
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
