Giter Club home page Giter Club logo

rcppmlpack2's Introduction

RcppMLPACK2 Build Status License

Rcpp bindings for mlpack 2.*

Experimental

This is a more experimental version derived off Qiang Kou's excellent RcppMLPACK package which is also on CRAN as RcppMLPACK. That version is based on mlpack 1.0.6 and embeds it, ensuring builds on all platforms CRAN cares about.

Here, we are trying to build something lighter-weight and more current. We will use external (system) libraries for mlpack instead of bundling them inside the R package. See below for more detailed installation notes.

What is mlpack?

Quoting from the main page:

mlpack is a scalable machine learning library, written in C++, that aims to provide fast, extensible implementations of cutting-edge machine learning algorithms. mlpack provides these algorithms as simple command-line programs and C++ classes which can then be integrated into larger-scale machine learning solutions.

and the about page:

mlpack is a C++ machine learning library with emphasis on scalability, speed, and ease-of-use. Its aim is to make machine learning possible for novice users by means of a simple, consistent API, while simultaneously exploiting C++ language features to provide maximum performance and maximum flexibility for expert users. This is done by providing a set of command-line executables which can be used as black boxes, and a modular C++ API for expert users and researchers to easily make changes to the internals of the algorithms.

As a result of this approach, mlpack outperforms competing machine learning libraries by large margins; see the BigLearning workshop paper and the benchmarks for details.

An alphabetical list of currently implemented methods in mlpack is shown below, see here for links to papers, API documentation, tutorials and other references:

  • Collaborative filtering (with many decomposition techniques)
  • Decision stumps (one-level decision trees)
  • Density estimation trees
  • Euclidean minimum spanning tree calculation
  • Gaussian mixture models
  • Hidden Markov models
  • Kernel Principal Components Analysis (optionally with sampling)
  • k-Means clustering (with several accelerated algorithms)
  • Least-angle regression (LARS/LASSO)
  • Linear regression (simple least-squares)
  • Local coordinate coding
  • Locality-sensitive hashing for approximate nearest neighbor search
  • Logistic regression
  • Max-kernel search
  • Naive Bayes classifier
  • Nearest neighbor search with dual-tree algorithms
  • Neighborhood components analysis
  • Non-negative matrix factorization
  • Perceptrons
  • Principal components analysis (PCA)
  • RADICAL (independent components analysis)
  • Range search with dual-tree algorithms
  • Rank-approximate nearest neighbor search
  • Sparse coding with dictionary learning

Installation

As mentioned above, the official RcppMLPACK CRAN package with its GitHub repo includes the source code from the mlpack library (version 1.*). Thus users do not need to install mlpack itself in order to use RcppMLPACK.

This package, however, uses the external mlpack library (version 2.* or later), so below for detailed instructions.

Debian

Thanks to Barak Pearlmutter, there is an excellent Debian package and its versions 2.1.0 or later will do nicely. Just do sudo apt-get install libmlpack-dev (provided you point to Debian sid (aka 'unstable') or stretch (aka 'testing') as these packages are not yet in a stable Debian release).

Ubuntu

Unofficial packages for trusty (14.04) and xenial (16.04) are available in my PPA, and used by the Travis CI integration. They are based on Barak's Debian packages. Via the standard Debian-to-Ubuntu package transition, these should also appear in Ubuntu 17.04 and later.

OS X / Brew

James Balamuta has kindly prepared a pull request which has been submitted and merged to update the version of mlpack in brew. However, I hear that there are issue between the brew compiler stack and what is used for R. So this may be in flux.

Others

You may have to install from source. Let me know how it goes.

Important one-line patch

The R CMD check command may complain about std::cout when using mlpack 2.1.0. Use this one-line change which is also part of the mlpack 2.1.1 release.

Authors

Qiang Kou for the main RcppMLPACK package.

James Balamuta for various builds tricks and tests, in particular on OS X.

Dirk Eddelbuettel for most of the remainder of this experiment.

License

GPL (>= 2)

rcppmlpack2's People

Contributors

eddelbuettel avatar mhenderson avatar

Watchers

 avatar  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.