From the course: Full-Stack Deep Learning with Python
Unlock this course with a free trial
Join today to access over 24,400 courses taught by industry experts.
Training a model within an MLflow run - Python Tutorial
From the course: Full-Stack Deep Learning with Python
Training a model within an MLflow run
- [Instructor] With our model configured, now it's time for us to train the model and track the metrics, parameters, and artifacts of this model using ML Flow. Notice the imports on lines one, two, and three. These are imports that have to do with logging all of the details of the model, including the model signature, the schema, and tensor specifications for the tensors that we feed into the model. I instantiate the model on line five. That is our emnist_model. And on line seven, I instantiate the CSVLogger. The CSVLogger is what we use to log our details of the training process to our local machine. The actual training process will be run using the pytorch lightning trainer, that I instantiate on line nine. We'll train for a maximum of 10 epochs. And notice, I pass in the CSV logger as an input argument, so that the trainer can use that logger to log out details during training. Now, ML Flow can track parameters and…
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
-
-
-
-
Loading and exploring the EMNIST dataset4m 53s
-
(Locked)
Logging metrics, parameters, and artifacts in MLflow6m 6s
-
(Locked)
Set up the dataset and data loader3m 47s
-
(Locked)
Configuring the image classification DNN model4m 56s
-
(Locked)
Training a model within an MLflow run4m 6s
-
(Locked)
Exploring parameters and metrics in MLflow4m 19s
-
(Locked)
Making predictions using MLflow artifacts5m 21s
-
-
-
-