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 librariesimport pandas as pdfrom sklearn.model_selection import train_test_splitfrom sklearn.svm import SVCfrom sklearn.metrics import classification_report, confusion_matrixfrom sklearn.model_selection import GridSearchCV
Note: ...
Access this course and 1400+ top-rated courses and projects.