April 2016
Beginner to intermediate
384 pages
8h 36m
English
Support Vector Machines (SVMs) have gained popularity over the years. These very powerful models use kernel tricks to model even the most complicated relationships between the dependent and independent variables.
In this recipe, using artificially generated data, we will show the real power of SVMs.
To execute this recipe, you will need pandas, NumPy, Scikit, and Matplotlib. No other prerequisites are required.
In this recipe, we will test SVM for regression with four different kernels (the regression_svm.py file):
import sys sys.path.append('..') # the rest of the imports import helper as hlp import pandas as pd import numpy as np import sklearn.svm as sv ...Read now
Unlock full access