...

/

SVM Implementation Steps: 1 to 7

SVM Implementation Steps: 1 to 7

This lesson will cover the implementation steps (1-7) of support vector machines.

1) Import libraries

You will be using SVC (Support Vector Classifier) from the Scikit-learn library to implement this model and evaluating the predictions using a classification report and confusion matrix. You will later optimize the model using grid search.

Press + to interact
main.py
advertising.csv
#1- Import libraries
import pandas as pd
from sklearn.model_selection import train_test_split
from sklearn.svm import SVC
from sklearn.metrics import classification_report, confusion_matrix
from sklearn.model_selection import GridSearchCV

Note: ...

Access this course and 1400+ top-rated courses and projects.