From the course: Deep Learning with Python: Convolutional Neural Networks
Unlock this course with a free trial
Join today to access over 25,300 courses taught by industry experts.
Training a CNN in Python - Python Tutorial
From the course: Deep Learning with Python: Convolutional Neural Networks
Training a CNN in Python
- [Instructor] This video is the third in a sequence of three videos where we walk through the process of building a Convolutional Neural Network in Python using Keras. If you haven't done so already, I suggest that you watch the previous two videos to understand how to pre-process or prepare your data and define the CNN model before we get to the point where we build the model itself. So, because of how much time it takes to actually train the model, I've pre-run the code for this tutorial. So in the previous videos, as I mentioned, we went through the process of importing and pre-processing the data. Then, in the last video, we defined the model architecture layer by layer, and now in this video, which is the next step, is we're going to compile and train the model. To compile the model we have to specify a few things. The first is the "Optimizer", so we're going to use the "Adam Optimizer", and we're also going to specify a "Loss Function". Because our data is one-hot encoded and…