Chapter 5. Classification (II) – Neural Network and SVM

In this chapter, we will cover the following recipes:

  • Classifying data with a support vector machine
  • Choosing the cost of a support vector machine
  • Visualizing an SVM fit
  • Predicting labels based on a model trained by a support vector machine
  • Tuning a support vector machine
  • Training a neural network with neuralnet
  • Visualizing a neural network trained by neuralnet
  • Predicting labels based on a model trained by neuralnet
  • Training a neural network with nnet
  • Predicting labels based on a model trained by nnet

Introduction

Most research has shown that support vector machines (SVM) and neural networks (NN) are powerful classification tools, which can be applied to several different areas. Unlike tree-based or ...

Get R: Recipes for Analysis, Visualization and Machine Learning 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.