Example Use of 'mlpack' from C++ via R

A Minimal Example Package which demonstrates 'mlpack' use via C++ Code from R.


rcppmlpackexamples: Example of using mlpack via its C++ API from R

License Last Commit

About

mlpack has supported header-only compilation since the 4.0.0 release. It also contains an R package that has been part of CRAN for years. Its focus is on access from R at the R prompt: underlying mlpack functions are properly wrapped.

Sometimes, however, we would like to access the C++ API of mlpack from the C++ side of an R package. This package provides a working demonstration of how to do this.

Scope

Currently, the package contains two examples covering

  • linear regression (with optional regularization)
  • random forest classification of a multinomial response
  • loan default prediction using a decision tree

Installation

For now the package is available only at GitHub so please rely on remotes::install_github():

> remotes::install_github("eddelbuettel/rcppmlpack-examples")

Miscellaneous

We use the rcpp prefix to not conflate this repo with the existing mlpack examples repo.

Author

Dirk Eddelbuettel for this R package

The mlpack authors for all of mlpack

License

GPL (>= 2) for this package

MIT for mlpack

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("rcppmlpackexamples")

0.0.1 by Dirk Eddelbuettel, a year ago


https://github.com/eddelbuettel/rcppmlpack-examples


Report a bug at https://github.com/eddelbuettel/rcppmlpack-examples/issues


Browse source code at https://github.com/cran/rcppmlpackexamples


Authors: Dirk Eddelbuettel [aut, cre] , Authors of mlpack [aut] , Constantinos Giachalis [ctb]


Documentation:   PDF Manual  


GPL (>= 2) license


Imports Rcpp

Suggests tinytest

Linking to Rcpp, RcppArmadillo, RcppEnsmallen, mlpack


See at CRAN