caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] [ANN] first release of orsvm-e1071 (SVM from R usable from OCaml)
@ 2018-02-26  6:07 Francois BERENGER
  2018-03-19  1:33 ` [Caml-list] [ANN] first release of orxgboost (gradient-boosted trees from R usable in OCaml) Francois BERENGER
  0 siblings, 1 reply; 2+ messages in thread
From: Francois BERENGER @ 2018-02-26  6:07 UTC (permalink / raw)
  To: caml-list

Hello,

I created a thin OCaml wrapper to drive two famous SVM packages for R:
e1071 and svmpath.

The code is here:
https://github.com/UnixJunkie/orsvm-e1071

This package provides two modules:
- Svm: this one provides access to a Support Vector Machine
       with a Radial Basis Function (RBF) or a linear kernel.
       This is a binary classifier.
---
type gamma = float
type kernel = RBF of gamma
            | Linear
type filename = string

val train: ?debug:bool ->
  cost:float -> kernel -> filename -> filename -> Result.t
val predict: ?debug:bool -> Result.t -> filename -> Result.t
val read_predictions: Result.t -> float list
---

- Svmpath: this one provides only access to a SVM with a linear
           kernel, but it allows to quickly find all values
           that need to be tested to obtain the best classifier.
           This is also a binary classifier.
---
type filename = string

val train: ?debug:bool -> filename -> filename -> Result.t
val read_lambdas: ?debug:bool -> Result.t -> float list
val predict: ?debug:bool ->
  lambda:float -> Result.t -> filename -> Result.t
val read_predictions: Result.t -> float list
---

The file src/test.ml is a working example of all functionalities.

There are example data and label files under data/.

I don't claim the package is super efficient.
For example, data are exchanged via text files.
However, it is a proof of concept on how to quickly access
some functionality provided by an R package.

If you want the package to be more efficient or provide access to more
functionalities of the underlying R packages, your help is welcome.

Thanks to Ronan Lehy for help with understanding how to use the svmpath
package.

The corresponding package should appear soon in opam.

Regards,
F.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Caml-list] [ANN] first release of orxgboost (gradient-boosted trees from R usable in OCaml)
  2018-02-26  6:07 [Caml-list] [ANN] first release of orsvm-e1071 (SVM from R usable from OCaml) Francois BERENGER
@ 2018-03-19  1:33 ` Francois BERENGER
  0 siblings, 0 replies; 2+ messages in thread
From: Francois BERENGER @ 2018-03-19  1:33 UTC (permalink / raw)
  To: caml-list

Hello,

I created a thin wrapper around the xgboost R package.

The code is here:
https://github.com/UnixJunkie/orxgboost

The interface is close to my precedent SVM package (orsvm-e1071).

Background:
https://en.wikipedia.org/wiki/Gradient_boosting

Paper:
Chen, Tianqi, and Carlos Guestrin.
"Xgboost: A scalable tree boosting system."
Proceedings of KDD'16. ACM, 2016.
DOI: 10.1145/2939672.2939785.

Regards,
F.

-- 
Caml-list mailing list.  Subscription management and archives:
https://sympa.inria.fr/sympa/arc/caml-list
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-03-19  1:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-02-26  6:07 [Caml-list] [ANN] first release of orsvm-e1071 (SVM from R usable from OCaml) Francois BERENGER
2018-03-19  1:33 ` [Caml-list] [ANN] first release of orxgboost (gradient-boosted trees from R usable in OCaml) Francois BERENGER

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).