Demonstrating SVMs

In this section, we will run an SVM model and see how it works.

First of all, get your dataset just the way you did for neural networks, partition the dataset into a training and testing dataset, and create a scenario such as this:

Let's see how to run SVMs:

  1. Go to the Modeling palette and connect the partition node to SVM:

  1. Go to the Expert tab and select the Expert option in Mode. Remember, whenever you run an SVM model, you must always run it in Expert mode because this is a model that requires constant changes on the default values based on the status of your model. The Expert mode will enable us to change the values easily when required:

Let's discuss these options in detail:

Here is a summary of the values that we have selected for the Expert tab:

  1. Click on the Analyze tab. Let's see what this tab includes:
  1. Click on Run. You will see a model built like this:

  1. Now, connect the generated model to the table to see the results:

  1. Click on Table and then click Run. If you scroll to the end, you will find predictions under $S-Status and $SP-Status:

You can also see that we have got results for both the training and testing datasets, even though the model was built on the testing dataset.

  1. You can now close the table's window, and click on the model, Status, to check the summary and model settings. Click on OK.

The model is currently like a black box. We don't know how we got the results and how it predicted the values. Let's find out.