Git Product home page Git Product logo

svm-light-tk-docker's Introduction

svm-light-tk-docker

SVM-LIGHT-TK is a library providing implementations of tree kernels (SubSet Tree kernel and Subtree kernel) for machine learning within SVM-light. This repository allows you to install the software in a docker container with one simple command.

Installation

docker build -t treekernel https://github.com/nlpdocker/svm-light-tk-docker.git

Usage

# run the container and make your /tmp directory available to it
docker run -v /tmp:/tmp -ti treekernel

# train a model on Moschitti's example data
$ ./svm_learn example-data/arg0.train 
Scanning examples...done
Reading examples into memory...100..OK. (113 examples read)

Number of examples: 113, linear space size: 21479

estimating ...
Setting default regularization parameter C=0.1330
Optimizing..........................................done. (68 iterations)
Optimization finished (14 misclassified, maxdiff=0.00047).
Runtime in cpu-seconds: 0.00
Number of SV: 78 (including 35 at upper bound)
L1 loss: loss=26.64432
Norm of weight vector: |w|=1.83103
Norm of longest example vector: |x|=2.82843
Estimated VCdim of classifier: VCdim<=27.82150
Computing XiAlpha-estimates...done
Runtime for XiAlpha-estimates in cpu-seconds: 0.00
XiAlpha-estimate of the error: error<=32.74% (rho=1.00,depth=0)
XiAlpha-estimate of the recall: recall=>69.64% (rho=1.00,depth=0)
XiAlpha-estimate of the precision: precision=>66.10% (rho=1.00,depth=0)
Number of kernel evaluations: 5049
Writing model file...done


# test your model
$ ./svm_classify example-data/arg0.test svm_model output.txt       
Reading model...OK. (78 support vectors read)
Classifying test examples..100..done
Runtime (without IO) in cpu-seconds: 0.00
Accuracy on test set: 77.68% (87 correct, 25 incorrect, 112 total)
Precision/recall on test set: 78.18%/76.79%

svm-light-tk-docker's People

Contributors

arne-cl 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.