Question: Use the code example provided in Week 7 about the Iris dataset and run the code on your machine to make sure the algorithm can
Use the code example provided in Week about the Iris dataset and run
the code on your machine to make sure the algorithm can classify Iris flowers into two species: Iris Setosa and
Iris Versicolour, using sepal and petal measurements. You must have the basic requirements in your notebook,
such as TensorFlow, Keras, and Scikitlearn
Specifically, you must:
a import all libraries
b Load and Prepare the Iris Dataset
c Split the dataset into training and test sets
d Scale Features
e Build the ANN Model Initialize the ANN model, add the input layer and a hidden layer, add the output layer,
compile the model, train the model
f Train the model on the training set
g Evaluate the model
i Evaluate the model on the test set
j In the last cell, enter only text to discuss the model's performance on the test set and report the accuracy.
k Also, after trying several scenarios, discuss how different hyperparameters like number of epochs, batch size,
and number of units in the hidden layer might affect the model's performance.
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
