Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jeremiegince/learning_svm

Support vector machines (SVM) tutorial with classical and quantum kernels.
https://github.com/jeremiegince/learning_svm

kernel quantum-computing svm tutorial

Last synced: about 9 hours ago
JSON representation

Support vector machines (SVM) tutorial with classical and quantum kernels.

Awesome Lists containing this project

README

        

# Support vector machines (SVM)
## Introduction
Support vector machines (SVM) is a supervised machine learning algorithm which can be used for both classification or
regression challenges. However, it is mostly used in classification problems.

This repository contains the implementation of SVM algorithm from scratch in python and also using sklearn library.
## Table of contents
* [Introduction](#introduction)
* [Jupyter notebook](https://github.com/JeremieGince/Learning_SVM/blob/main/notebook.ipynb)
* [Google Colab](https://colab.research.google.com/github/JeremieGince/Learning_SVM/blob/main/notebook.ipynb)
* [Scripts](#Scripts)
* [Requirements](#requirements)
* [Slides](Prez_SVM.pdf)

## Scripts
* In the [main.py](main.py) file, you can find the training, testing and comparison of the SVMs
using the sklearn library, from scratch and with a classical and quantum kernel.
* In the [kernels.py](kernels.py) file, you can find the implementation of the classical and quantum kernels.
* In the [scratch.py](scratch.py) file, you can find the implementation of the SVM algorithm from scratch.
* In the [visualization.py](visualization.py) file, you can find the implementation of the visualization of the
decision boundary of the SVMs.

## Requirements
* Python 3.8 or higher
* Other requirements are in the [requirements.txt](requirements.txt) file. You can install them using the following
command:
```bash
pip install -r requirements.txt
```

## Note
This repository is currently under construction. More details will be added soon.