This lab code basic Support Vector Machines with Python.
Here is an example of the plots that classify data with three different kernels (linear, polynomial, RBF).
Open the directory using the terminal, then run main.py using the command python main.py
.
The plot will be displayed and save into the project folder as "svmplot.pdf". The PDF file is overwrited at every run. To save a plot PDF, just change its name, or move it to another directory.
Read through the code and edit the file to change some parameters. Try to change the kernel (initially set to linear), the kernel degrees, or the data points. Some indications are given in comments.
This project was done using Python 3.7.16.
Libraries used: numpy, scipy, sklearn, seaborn, jupyter, matplotlib, pyqt.
I had this lab with one classmate.