Question: A . Build a baseline model ( 5 marks ) Use the Keras library to build a neural network with the following: - One hidden
A Build a baseline model marks
Use the Keras library to build a neural network with the following:
One hidden layer of nodes, and a ReLU activation function
Use the adam optimizer and the mean squared error as the loss function.
Randomly split the data into a training and test sets by holding of the data for testing. You can use the traintestsplit
helper function from Scikitlearn.
Train the model on the training data using epochs.
Evaluate the model on the test data and compute the mean squared error between the predicted concrete strength and the actual concrete strength. You can use the meansquarederror function from Scikitlearn.
Repeat steps times, ie create a list of mean squared errors.
Report the mean and the standard deviation of the mean squared errors.
Submit your Jupyter Notebook with your code and comments.
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
