kernel methods and classes
Project description
Kernel methods and classes
Docs: https://raamana.github.io/kernelmethods/
Demo notebooks:
kernelmethods
kernelmethods is a pure python library defining modular classes that provides basic kernel methods, such as computing various kernel functions on a given sample (N points of dimension p) as well as provides an intuitive interface for advanced functionality such as composite and hyper kernels. This library fills an important void in the ever-growing python-based machine learning ecosystem, where users can only use predefined kernels and are not able to customize or extend them for their own applications, that demand great flexibility owing to their diversity and need for better performing kernel. This library defines the KernelMatrix class that is central to all the kernel methods and machines. As the KernelMatrix class is a key bridge between input data and the various kernel learning algorithms, it is designed to be highly usable and extensible to different applications and data types. Besides being able to apply basic kernels on a given sample (to produce a KernelMatrix), this library provides various kernel operations, such as normalization, centering, product, alignment evaluation, linear combination and ranking (by various performance metrics) of kernel matrices.
In addition, we provide several convenient classes, such as KernelSet and KernelBucket for easy management of a large collection of kernels. Dealing with a diverse configuration of kernels is necessary for automatic kernel selection and optimization in applications such as Multiple Kernel Learning (MKL) and the like.
In addition to the common numerical kernels such as the Gaussian and Polynomial kernels, we designed this library to make it easy to develop categorical, string and graph kernels, with the same attractive properties of intuitive and highly-testable API. In addition to providing native implementation of non-numerical kernels, we aim to provide a deeply and easily extensible framework for arbitrary input data types, such as sequences, trees and graphs etc, via data structures such as pyradigm.
Moreover, drop-in Estimator classes are provided, called KernelMachine, offering the power of SVM for seamless usage in the scikit-learn ecosystem. Another useful class is called OptimalKernelSVR which finds the most optimal kernel func for a given sample, and trains the SVM using the optimal kernel.
Docs
https://raamana.github.io/kernelmethods/
Demo notebooks:
Note
The software is beta. All types of contributions are greatly welcome.
History
0.0.1 (2018-12-26)
First release on PyPI.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file kernelmethods-0.2.tar.gz
.
File metadata
- Download URL: kernelmethods-0.2.tar.gz
- Upload date:
- Size: 546.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ab036e5ed05523462883e316ef7cd312554e35c469843dd1408949f3d6a90ffd |
|
MD5 | 154ea06c759391a026552c2ff7ac4195 |
|
BLAKE2b-256 | 3337f98195d564f96fc022298bbd1eef6a38ca1aeb73b33637083f81373bdd23 |
File details
Details for the file kernelmethods-0.2-py2.py3-none-any.whl
.
File metadata
- Download URL: kernelmethods-0.2-py2.py3-none-any.whl
- Upload date:
- Size: 27.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a11cd3375e64b51d62023ec0b5e3926c5dd71abf621a787cd091f7594870e20a |
|
MD5 | 7151164fef53908e6cda8ac867bca30c |
|
BLAKE2b-256 | b9dfb73fbe7ad6cf51a26894ad6b79ef0fb1ef48d0d7b3e2665b32a4ced038e7 |