Giter Site home page Giter Site logo

unixjunkie / orsvm-e1071 Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.0 0.0 65 KB

Access the Linear or RBF kernel SVM from OCaml using the R e1071 or svmpath packages

License: Other

R 10.87% Shell 0.32% OCaml 87.04% Makefile 1.77%
ocaml-library r svm rbf-kernel classification svmpath libsvm linear-kernel binary-classifier

orsvm-e1071's Introduction

orsvm-e1071

Access from OCaml SVMs provided by the R e1071 and svmpath packages.

OCaml functions to drive the RBF and linear kernel SVMs of the R e1071 package and the linear kernel SVM of the R svmpath package.

This is low level on purpose: we don't provide access to all functionalities offered by the R packages.

This is probably not high performance: data are exchanged between R and OCaml via ASCII files.

orsvm-e1071's People

Contributors

unixjunkie avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

orsvm-e1071's Issues

get rid of preprocessor

this is uggly and forces me to do some jbuilder programming via its jbuild file.
I have never programmed ocamlbuild, let's do the same with jbuilder.

Error on SVR cross-validation using tune

Hi there,

I am using the function tune to fit a support vector regression using a cross-validation. The independent variable is a sparse document-term matrix and I am trying to fit them on stock market and bond market returns.

When I run the cross-validation:

tune(svm, train_data, labels,
ranges = list(epsilon = seq(0,1,0.1), cost = 2^(2:9)))

I get following error:

Error in h(simpleError(msg, call)) :
error in evaluating the argument 'x' in selecting a method for function 't': error in evaluating the argument 'x' in selecting a method for function 't': Subscripts out of bound

This error depends on the label that I use (sometimes it works and sometimes in doesn’t). Do you have an idea where does this come from? I could provide an example if needed.

Thanks!

support sparse data

both the R package and libsvm (that it uses underneath) support that

  • we need to know how to store such data in a txt file
  • we need to know how to tell R to read in such a file

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.