Working with a linear SVM

For this example, we will create a linear separator from the iris dataset. We know from prior chapters that the sepal length and petal width create a linear separable binary dataset for predicting whether a flower is I. setosa or not.

Get TensorFlow Machine Learning Cookbook - Second Edition 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.