Skip to main content

kernel methods and classes

Project description

Kernel methods and classes

https://img.shields.io/pypi/v/kernelmethods.svg https://img.shields.io/travis/raamana/kernelmethods.svg

Docs: https://raamana.github.io/kernelmethods/

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 for kernel machines such as the SVM for seamless usage in the scikit-learn ecosystem.

Docs

https://raamana.github.io/kernelmethods/

Example notebooks, will be published shortly.

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

kernelmethods-0.1.2.tar.gz (49.8 kB view details)

Uploaded Source

Built Distribution

kernelmethods-0.1.2-py2.py3-none-any.whl (25.6 kB view details)

Uploaded Python 2Python 3

File details

Details for the file kernelmethods-0.1.2.tar.gz.

File metadata

  • Download URL: kernelmethods-0.1.2.tar.gz
  • Upload date:
  • Size: 49.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/38.2.3 requests-toolbelt/0.8.0 tqdm/4.19.9 CPython/3.6.1

File hashes

Hashes for kernelmethods-0.1.2.tar.gz
Algorithm Hash digest
SHA256 b7aa0568446b536af193f57aa7f7b7ebfb9e8d30356710ca659212554d2954e3
MD5 924112d3f2a0596c649c4a281ea933a9
BLAKE2b-256 a77f30cf24ba3da17b38af3419653190d64381de2d97b30366b03646484bbfb2

See more details on using hashes here.

File details

Details for the file kernelmethods-0.1.2-py2.py3-none-any.whl.

File metadata

  • Download URL: kernelmethods-0.1.2-py2.py3-none-any.whl
  • Upload date:
  • Size: 25.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/38.2.3 requests-toolbelt/0.8.0 tqdm/4.19.9 CPython/3.6.1

File hashes

Hashes for kernelmethods-0.1.2-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 1e8e8a6e09dd97eff347f5d009297b059e3bc5c84c22b5d227da7a2836212e90
MD5 c8dc7175eab9097d3ecfb96a4982e2eb
BLAKE2b-256 349aef9f434536228400f7c91bf33602a631fc97672bca32c602fb6a395042b3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page