Skip to main content

String Kernels

This package contains an implementation of the Polynomial String Kernel and a linear time String Kernel algorithm as described in our paper, High Resolution Ancestry Deconvolution for Next Generation Genomic Data.

It offers

  • Linear time computation of two effective string kernels.

  • Compatibility with Scikit-Learn's Support Vector Machines (easy plug-in).

  • Multithreading.

Usage

To install the package, execute from the command line

pip install string-kernels

And then you're all set!

Assuming you have Scikit-Learn already installed, you can use Lodhi's string kernel via

from sklearn import svm
from stringkernels.kernels import string_kernel
model = svm.SVC(kernel=string_kernel())

and the polynomial string kernel,

from sklearn import svm
from stringkernels.kernels import polynomial_string_kernel
model = svm.SVC(kernel=polynomial_string_kernel())

For morer information read the docs or take a look at the notebook example.ipynb for further demonstration of usage.

If you end up using this in your research we kindly ask you to cite us! :)

Metadata

Release files for string-kernels 1.1.2

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

Source distribution (sdist)

Source distribution for string-kernels 1.1.2
File Size Uploaded Provenance
string-kernels-1.1.2.tar.gz 4.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for string-kernels 1.1.2
File Interpreter ABI Platform
string_kernels-1.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 9.8 kB

Release files / string-kernels-1.1.2.tar.gz

Download URL string-kernels-1.1.2.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
d1786896ea02504721a3da5f578471bfabff326dc7fc8335b26bb0acc68407c6
BLAKE2b-256 checksum
How to use checksums
ffe704765217cdeced887f495c6833a93227d89f8342b1254f8979d294cb8874
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.12

Release files / string_kernels-1.1.2-py3-none-any.whl

Download URL string_kernels-1.1.2-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1e22f2d5d0f458e0bf68db8c6263975d873f7f71d49eee0d2424ecc4f0a49b99
BLAKE2b-256 checksum
How to use checksums
6d51db08a21ed6d8b364ba7d5fa264269930c7833fca33f46ee7c3fb77e6125d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.12

Security for string-kernels 1.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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