This repository contains a Python implementation of the Least Squares Support Vector Machine (LSSVM) model for both CPU and GPU. You can find theory and usage examples in the LSSVC.ipynb Jupyter notebook.
For a better viewing experience of the notebook: https://nbviewer.jupyter.org/github/RomuloDrumond/LSSVM/blob/main/LSSVC.ipynb
To use LSSVM in your project, install it from PyPI (when available):
# Install from PyPI (when available)
pip install lssvmAlternatively, you can install it directly from the source:
git clone https://github.com/RomuloDrumond/LSSVM.git
cd LSSVM
pip install .Contributions are welcome! We use modern Python development practices with a focus on code quality and comprehensive testing.
- Fork and clone the repository.
- Set up the development environment. This project uses uv for dependency management.
# If you don't have uv, install it first make install-uv # Install dependencies make install-dev
- Create a new branch for your feature or bug fix.
- Implement your changes. Make sure to add tests for any new functionality.
- Run checks before committing. This ensures your changes meet our quality standards.
make pre-commit
- Submit a pull request.
The Makefile contains several commands to streamline development. Run make help to see all options.
make check: Run linting and type checking.make test: Run all tests.make test-fast: Run fast unit and integration tests.make test-slow: Run slow benchmark and complex dataset tests.