Chapter 4. Support Vector Machines
This chapter will cover some important recipes regarding how to use, implement, and evaluate support vector machines (SVM) in TensorFlow. The following areas will be covered:
- Working with a Linear SVM
- Reduction to Linear Regression
- Working with Kernels in TensorFlow
- Implementing a Non-Linear SVM
- Implementing a Multi-Class SVM
Note
Note that both the prior covered logistic regression and most of the SVMs in this chapter are binary predictors. While logistic regression tries to find any separating line that maximizes the distance (probabilistically), SVMs also try to minimize the error while maximizing the margin between classes. In general, if the problem has a large number of features compared to training examples, try logistic regression or a linear SVM. If the number of training examples is larger, or the data is not linearly separable, a SVM with a Gaussian kernel may be used.
Also remember that all the code for this chapter is available online at...