GithubHelp home page GithubHelp logo

weekend37 / string-kernels Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 0.0 379 KB

Implementation of the Polynomial String Kernel and linear time String Kernel implementation. Compatible and ready for easy plug-in to Scikit-Learn's Support Vector Machines and supports multithreading.

License: Other

Python 100.00%
machine-learning multithreading genomics sequence-analysis algorithms kernelsvm

string-kernels's Introduction

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! :)

string-kernels's People

Contributors

weekend37 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.