From the course: Full-Stack Deep Learning with Python
Unlock this course with a free trial
Join today to access over 24,700 courses taught by industry experts.
Configuring and training the model using MLflow runs - Python Tutorial
From the course: Full-Stack Deep Learning with Python
Configuring and training the model using MLflow runs
- [Instructor] We can now set up our convolutional neural network for image classification. Once again, I import some PyTorch libraries and classes that we'll need to set up our network. And next we'll create a new experiment within which we'll have a training run for our cnn. I call mlflow.create.experiment. The name of the experiment is emnist_letters_prediction_using_cnn, and I also set this as the active experiment so that any run that we create will be within this experiment. Next, we set up a class that inherits from a lightning module where we'll define our convolutional neural network, as well as the training and validation steps for our model. As before, for our classification model, we'll use the cross entropy loss function. Next, we define our convolutional neural network with multiple blocks of convolutional and polling layers. On line 8, we have our first convolutional layer. It takes in a single channel…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
(Locked)
Preparing data for image classification using CNN4m 2s
-
(Locked)
Configuring and training the model using MLflow runs6m 19s
-
(Locked)
Visualizing charts, metrics, and parameters on MLflow6m 52s
-
(Locked)
Setting up the objective function for hyperparameter tuning5m 35s
-
(Locked)
Hyperparameter optimization with Hyperopt and MLflow6m 21s
-
(Locked)
Identifying the best model3m 39s
-
(Locked)
Registering a model with the MLflow registry3m 12s
-
(Locked)
-
-