Support Vector Machines
Again, using the creditcard.csv dataset
Start by importing the necessary libraries

Import the data, specify the dependent (target) and independent variables

Split the dataset into a training and testing dataset. This way we can test the accuracy of the model later on. Also center and scale the variables. Needed for SVM

Create the Support Vector Machine Model

Finally, create a confusion matrix

We correctly classified 66 instances of fraud out of 113 correctly (58%)

