Files
mlpack/doc/index.md
T

9.7 KiB

Documentation for mlpack

A fast, flexible machine learning library

mlpack is an intuitive, fast, and flexible header-only C++ machine learning library with bindings to other languages. It aims to provide fast, lightweight implementations of both common and cutting-edge machine learning algorithms.

mlpack's lightweight C++ implementation makes it ideal for deployment, and it can also be used for interactive prototyping via C++ notebooks (these can be seen in action on mlpack's homepage).

In addition to its powerful C++ interface, mlpack also provides command-line programs, and bindings to the Python, R, Julia, and Go languages.

If you use mlpack, please cite the software.

mlpack basics

Installing mlpack can be done using the instructions in the README; or the Windows build guide. The following basic guides are highly recommended before using mlpack.

mlpack algorithm documentation

Documentation for each machine learning algorithm that mlpack implements is detailed in the sections below.

Classification algorithms

Classify points as discrete labels (0, 1, 2, ...).

Regression algorithms

Predict continuous values.

Clustering algorithms

NOTE: this documentation is still under construction and so some algorithms that mlpack implements are not yet listed here. For now, see the mlpack/methods directory for a full list of algorithms.

Group points into clusters.

  • MeanShift: clustering with the density-based mean shift algorithm

Geometric algorithms

NOTE: this documentation is still under construction and so no geometric algorithms in mlpack are documented yet. For now, see the mlpack/methods directory for a full list of algorithms.

Computations based on distance metrics.

Preprocessing utilities

Prepare data for machine learning algorithms.

NOTE: this documentation is still under construction and so not all preprocessing utilities in mlpack are documented yet. See also the mlpack/methods/preprocess directory for a full list of algorithms.

Transformations

NOTE: this documentation is still under construction and so some algorithms that mlpack implements are not yet listed here. For now, see the mlpack/methods directory for a full list of algorithms.

Transform data from one space to another.

  • AMF: alternating matrix factorization
  • LocalCoordinateCoding: local coordinate coding with dictionary learning
  • LMNN: large margin nearest neighbor (distance metric learning)
  • NCA: neighborhood components analysis (distance metric learning)
  • NMF: non-negative matrix factorization
  • PCA: principal components analysis
  • RADICAL: robust, accurate, direct independent components analysis (ICA) algorithm
  • SparseCoding: sparse coding with dictionary learning

Modeling utilities

Tools for assembling a full data science pipeline.

Bindings to other languages

mlpack's bindings to other languages have less complete functionality than mlpack in C++, but almost all the same algorithms are available.

| Python | -- | quickstart | -- | reference | | Julia | -- | quickstart | -- | reference | | R | -- | quickstart | -- | reference | Command-line programs | -- | quickstart | -- | reference | | Go | -- | quickstart | -- | reference |

mlpack on embedded systems

mlpack is well suited for embedded systems due to the fact that it is written in C++ and it is header-only with minimal dependencies. In the following, we are adding a set of tutorials to allow you to experiment mlpack on various types of these systems.

Examples and further documentation

For additional documentation beyond what is covered in all the resources above, the source code should be consulted. Each method is fully documented.

Developer documentation

The following general documentation can be useful if you are interested in contributing to mlpack:

Throughout the codebase, mlpack uses some common template parameter policies. These are documented below.

In addition, the following documentation may be useful when developing bindings for other languages:

Changelog

For a list of changes in each version of mlpack, see the changelog.