Skip to main content

MKLpy

Documentation Status Build Status Coverage Status PyPI version License: GPL v3

MKLpy is a framework for Multiple Kernel Learning (MKL) inspired by the scikit-learn project.

This package contains:

  • the implementation of some MKL algorithms;
  • tools to operate on kernels, such as normalization, centering, summation, average...;
  • metrics, such as kernel_alignment, radius of Minimum Enclosing Ball, margin between classes, spectral ratio...;
  • kernel functions, including boolean kernels (disjunctive, conjunctive, DNF, CNF) and string kernels (spectrum, fixed length and all subsequences).

The main MKL algorithms implemented in this library are

Name Short description Status Source
AverageMKL Computes the simple average of base kernels Available -
EasyMKL Fast and memory efficient margin-based combination Available [1]
GRAM Radius/margin ratio optimization Available [2]
R-MKL Radius/margin ratio optimization Available [3]
MEMO Margin maximization and complexity minimization Available [4]
PWMK Heuristic based on individual kernels performance Avaible [5]
FHeuristic Heuristic based on kernels alignment Available [6]
CKA Centered kernel alignment optimization in closed form Available [7]
SimpleMKL Alternate margin maximization Work in progress [5]

The documentation of MKLpy is available on readthedocs.io!

Installation

MKLpy is also available on PyPI:

pip install MKLpy

MKLpy leverages multiple scientific libraries, that are numpy, scikit-learn, PyTorch, and CVXOPT.

Examples

The folder examples contains several scripts and snippets of codes to show the potentialities of MKLpy. The examples show how to train a classifier, how to process data, and how to use kernel functions.

Additionally, you may read our tutorials

Work in progress

MKLpy is under development! We are working to integrate several features, including:

  • additional MKL algorithms;
  • more kernels for structured data;
  • efficient optimization

Citing MKLpy

If you use MKLpy for a scientific purpose, please cite the following preprint.

@article{lauriola2020mklpy,
  title={MKLpy: a python-based framework for Multiple Kernel Learning},
  author={Lauriola, Ivano and Aiolli, Fabio},
  journal={arXiv preprint arXiv:2007.09982},
  year={2020}
}

Release files for MKLpy 0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for MKLpy 0.6
File Size Uploaded
MKLpy-0.6.tar.gz 22.5 kB Details

Release files / MKLpy-0.6.tar.gz

Download URL MKLpy-0.6.tar.gz
Size 22.5 kB
Tags Source
SHA-256 checksum
How to use checksums
95dbf83ad0d40b5e798ab1cff09aca41edbe05f41facfdc14d82ecc77c7bd5af
BLAKE2b-256 checksum
How to use checksums
ba21f3dc41cc62be50e6ccceb433dbc1ec17d6e685aa21231c10bee3d9081157
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.7

Release history Release notifications | RSS feed

This release

0.6 This release

1 release file

0.5.2

1 release file

0.5.1

1 release file

0.5

1 release file

0.4.3

1 release file

0.4.2

1 release file

0.4.1

1 release file

0.3.2

2 release files

0.3

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page