Data Challenge from Kaggle for the course Kernel Methods for Machine Learning from the M2-MVA (ENS-Paris Saclay).
- Carlos Cuevas Villarmin
- Javier Alejandro Lopetegui González
This repository contains our implementations for the 2024 Data Challenge for Kernel Methods course at ENS-Paris Saclay.
The challenge consists in an image classification task using CIFAR-10 dataset using kernels methods approaches.
Kernels implemented(kernels.py):
- Linear Kernel
- Polynomial kernel
- RBF Kernel
- Laplacian RBF Kernel
Feature extractor approaches(utils.py):
- Histogram of gradients
- SIFT
- Daysi
For the feature extractors we used the python package scikit-image.
Classifier implemented for the taks (classifiers.py):
- Kernel SVC One vs All (MulticlassKernelSVC)
- Kernel SVC One vs One (OneVsOneKernelSVC)
- Multivariate Kernel Ridge Classifier
The file start.py contains the code to run a complete pipeline for the classification task. Particularly, it is configured for running by default the code for the las submission we made during the challenge with a public score of 0.644, the 4-th among all the participants.
To run the start.py file, follow these steps:
- Make sure you have Python installed on your system.
- Open a terminal or command prompt.
- Navigate to the project directory
- Run the following command:
python start.py. - The application will start running and you will see the output in the terminal.
Note: Make sure you have all the necessary dependencies installed before running the start.py file. You can install the dependencies by running pip install -r requirements.txt in the project directory.