February 2017
Intermediate to advanced
370 pages
8h 11m
English
For this example, we will create a linear separator from the iris data set. We know from prior chapters that the sepal length and petal width create a linear separable binary data set for predicting if a flower is I. setosa or not.
To implement a soft separable SVM in TensorFlow, we will implement the specific loss function, as follows:

Here, A is the vector of partial slopes, b is the intercept,
is a vector of inputs, is the actual class, (-1 or 1) and is the soft separability regularization parameter.
Read now
Unlock full access