From the course: Artificial Intelligence Foundations: Neural Networks
Solution: Manually tune hyperparameters
From the course: Artificial Intelligence Foundations: Neural Networks
Solution: Manually tune hyperparameters
(upbeat music) - [Instructor] I hope you enjoyed solving that challenge. Now let's look at the solution. So first we're going to start by running all the cells, and while that's going, let's go ahead and open a table of contents and we're going to scroll down to the base model and we're going to look at the visualization from the model. So this is what the results are from our initial base model. Now let's go down to step three, where we're going to tune the neural network hyper parameters. So here I'm going to add an additional layer and I'm going to add or change from three to four neurons and then we're going to scroll down and change the number of epochs to 100, and they were going to run the cell. Okay, now that the cell is done executing and the number of epochs has been reached, we're going to simply see the visualization and take a look at our results. So if we compare this result to this result, ask yourself, is the model under fitting or overfitting with the parameters you've just modified? I encourage you to keep playing around with this base neural network model by adding more layers or changing the number of epochs or even adding early stopping or callback function that we covered earlier in the course. If you'd like to see more functionality, check out the extras file for this chapter.
Contents
-
-
-
-
-
-
-
Overfitting and underfitting: Two common ANN problems4m 54s
-
Hyperparameters and neural networks3m 24s
-
How do you improve model performance?3m 56s
-
Regularization techniques to improve overfitting models7m 40s
-
Challenge: Manually tune hyperparameters45s
-
Solution: Manually tune hyperparameters2m 4s
-
-