O'Reilly logo

TensorFlow Machine Learning Cookbook by Nick McClure

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required