Validate computer vision deep learning models
Compare inference results with ground truth test data to continuously evaluate model accuracy
This code pattern is part of the Getting started with IBM Visual Insights learning path.
|100||Introduction to computer vision||Article|
|101||Introduction to IBM Visual Insights||Article|
|201||Build and deploy an IBM Visual Insights model and use it in an iOS app||Tutorial|
|202||Locate and count items with object detection||Code pattern|
|203||Object tracking in video with OpenCV and Deep Learning||Code pattern|
|301||Validate computer vision deep learning models||Code pattern|
|302||Develop analytical dashboards for AI projects with IBM Visual Insights||Code pattern|
|303||Automate visual recognition model training||Code pattern|
|304||Load IBM Visual Insights inference results in a dashboard||Code pattern|
|305||Build an object detection model to identify license plates from images of cars||Code pattern|
After a deep learning computer vision model is trained and deployed, it is often necessary to periodically (or continuously) evaluate the model with new test data. This developer code pattern provides a Jupyter Notebook that will take test images with known “ground-truth” categories and evaluate the inference results versus the truth.
We will use a Jupyter Notebook to evaluate an IBM Visual Insights image classification model. You can train a model using the provided example or test your own deployed model. The notebook will use test images, which are separated into directories to indicate the expected category classifications. These expected classifications are considered the “ground truth.” The deployed model’s API endpoint will be called to collect the inference results for each image. The collected results are then used to evaluate the actual model performance. Model accuracy is demonstrated by showing a confusion matrix and calculating a variety of the most common statistics used to measure the accuracy of a model.
When you have completed this code pattern, you will understand how to:
- Train and deploy an image classification model with IBM Visual Insights
- Run a Jupyter Notebook
- Evaluate the results using a variety of accuracy statistics
- Validate existing deployed models with new test data sets
The steps will show you how to:
- Create a data set.
- Train a model for image classification.
- Deploy it to a REST API endpoint.
- Validate the model with new data.
Find the detailed steps for this pattern in the README file. Learn how to:
- Clone the repo.
- Log in to IBM Visual Insights.
- Create a data set.
- Assign categories to images.
- Train the model.
- Deploy and test.
- Run the notebook.
- Analyze the results.
This code pattern used a Jupyter Notebook to evaluate an IBM Visual Insights image classification model by taking test images with known “ground-truth” categories and evaluating the inference results versus the truth. The code pattern is part of the Getting started with IBM Visual Insights learning path. To continue the series and learn about more IBM Visual Insights features, take a look at the next code pattern, Develop analytical dashboards for AI projects with IBM Visual Insights.