Applying the support vector machine to new data

Now that we have our trained support vector machine, we can actually apply the support vector machine to new data that hasn't been seen and see that our digit classifier is actually working.

After the cell has executed successfully and if everything worked correctly, we should see the following output:

This is just the output from creating the support vector classifier. This just gives information about the metadata parameters that we used; we used what's known as a radial basis function kernel, and fitting the data did not produce any error messages. So, that means the code has worked. So, now ...

Get Computer Vision Projects with OpenCV and Python 3 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.