Mlpack
mlpack is a free, open-source and header-only software library for machine learning and artificial intelligence written in C++, built on top of the Armadillo library and the ensmallen numerical optimization library. mlpack has an 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. mlpack has also a light deployment infrastructure with minimum dependencies, making it perfect for embedded systems and low resource devices. Its intended target users are scientists and engineers. It is open-source software distributed under the BSD license, making it useful for developing both open source and proprietary software. Releases 1.0.11 and before were released under the LGPL license. The project is supported by the Georgia Institute of Technology and contributions from around the world.
mlpack is a free, open-source and header-only software library for machine learning and artificial intelligence written in C++, built on top of the Armadillo library and the ensmallen numerical optimization library. mlpack has an 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. mlpack has also a light deployment infrastructure with minimum dependencies, making it perfect for embedded systems and low resource devices. Its intended target users are scientists and engineers. It is open-source software distributed under the BSD license, making it useful for developing both open source and proprietary software. Releases 1.0.11 and before were released under the LGPL license. The project is supported by the Georgia Institute of Technology and contributions from around the world. import ; import import std; using arma::Mat; using arma::Row; using arma::fill; using mlpack::DecisionTree; // Train a decision tree on random numeric data and predict labels on test data: // All data and labels are uniform random; 10 dimensional data, 5 classes. // Replace with a data::Load() call or similar for a real application. Mat dataset(10, 1000, fill::randu); // 1000 points. Row labels = arma::randi >(1000, arma::distr_param(0, 4)); Mat testDataset(10, 500, fill::randu); // 500 test points. DecisionTree tree; // Step 1: create model. tree.Train(dataset, labels, 5); // Step 2: train model. Row predictions; tree.Classify(testDataset, predictions); // Step 3: classify points. // Print some information about the test predictions. std::println("{} test points classified as class 2.", arma::accu(predictions == 2)); The above example demonstrate the simplicity behind the API design, which makes it similar to popular Python based machine learning kit (scikit-learn). Our objective is to simplify for the user the API and the main machine learning functions such as Classify and Predict. More complex examples are located in the examples repository, including documentations for the methods import ; using arma::Mat; Mat X; Mat Y; X.randu(10, 15); Y.randu(10, 10); Mat Z = 2 * arma::norm(Y) * (X * X.t() - Y); import ; using coot::Mat; Mat X; Mat Y; X.randu(10, 15); Y.randu(10, 10); Mat Z = 2 * coot::norm(Y) * (X * X.t() - Y); ==See also== Armadillo (C++ library) Comparison of machine learning software List of numerical analysis software List of numerical libraries Numerical linear algebra Scientific computing ==References== ==External links==
References
- The ensmallen library for flexible numerical optimization · retrieved 2026-11-17 · rev 1367681994
Cite this reference
MLA "The ensmallen library for flexible numerical optimization." Ryan Curtin; et al. 2026-11-17. https://jmlr.org/papers/v22/20-416.html. Accessed 24 November 2026.
Chicago "The ensmallen library for flexible numerical optimization." Ryan Curtin; et al. 2026-11-17. https://jmlr.org/papers/v22/20-416.html.
APA Ryan Curtin; et al. (2026). The ensmallen library for flexible numerical optimization. Retrieved November 24, 2026, from https://jmlr.org/papers/v22/20-416.html
- mlpack 4: a fast, header-only C++ machine learning library · retrieved 2026-11-17 · rev 1367681994
Cite this reference
MLA "mlpack 4: a fast, header-only C++ machine learning library." Ryan Curtin; et al. 2026-11-17. https://joss.theoj.org/papers/10.21105/joss.05026. Accessed 24 November 2026.
Chicago "mlpack 4: a fast, header-only C++ machine learning library." Ryan Curtin; et al. 2026-11-17. https://joss.theoj.org/papers/10.21105/joss.05026.
APA Ryan Curtin; et al. (2026). mlpack 4: a fast, header-only C++ machine learning library. Retrieved November 24, 2026, from https://joss.theoj.org/papers/10.21105/joss.05026
- Mlpack/Mlpack.jl · retrieved 2026-11-17 · rev 1367681994
Cite this reference
MLA "Mlpack/Mlpack.jl." "Mlpack/Mlpack. 2026-11-17. https://github.com/mlpack/mlpack.jl. Accessed 24 November 2026.
Chicago "Mlpack/Mlpack.jl." "Mlpack/Mlpack. 2026-11-17. https://github.com/mlpack/mlpack.jl.
APA "Mlpack/Mlpack. (2026). Mlpack/Mlpack.jl. Retrieved November 24, 2026, from https://github.com/mlpack/mlpack.jl
- C++ library for GPU accelerated linear algebra · retrieved 2024-08-11 · rev 1367681994
Cite this reference
MLA "C++ library for GPU accelerated linear algebra." 2024-08-11. https://coot.sourceforge.io/. Accessed 24 November 2026.
Chicago "C++ library for GPU accelerated linear algebra." 2024-08-11. https://coot.sourceforge.io/.
APA encyclopegia.org. (2024). C++ library for GPU accelerated linear algebra. Retrieved November 24, 2026, from https://coot.sourceforge.io/
- Home · retrieved 2024-08-11 · rev 1367681994
Cite this reference
MLA "Home." 2024-08-11. https://ensmallen.org/. Accessed 24 November 2026.
Chicago "Home." 2024-08-11. https://ensmallen.org/.
APA encyclopegia.org. (2024). Home. Retrieved November 24, 2026, from https://ensmallen.org/
- Initial checkin of the regression package to be released · mlpack/mlpack · retrieved 2026-11-17 · rev 1367681994
Cite this reference
MLA "Initial checkin of the regression package to be released · mlpack/mlpack." 2026-11-17. https://github.com/mlpack/mlpack/commit/6f0a3f7db2b4b30e208a89bf93dc2328294e4176. Accessed 24 November 2026.
Chicago "Initial checkin of the regression package to be released · mlpack/mlpack." 2026-11-17. https://github.com/mlpack/mlpack/commit/6f0a3f7db2b4b30e208a89bf93dc2328294e4176.
APA encyclopegia.org. (2026). Initial checkin of the regression package to be released · mlpack/mlpack. Retrieved November 24, 2026, from https://github.com/mlpack/mlpack/commit/6f0a3f7db2b4b30e208a89bf93dc2328294e4176
- Release 4.8.0 · retrieved 2026-11-17 · rev 1367681994
Cite this reference
MLA "Release 4.8.0." "Release 4. 2026-11-17. https://github.com/mlpack/mlpack/releases/tag/4.8.0. Accessed 24 November 2026.
Chicago "Release 4.8.0." "Release 4. 2026-11-17. https://github.com/mlpack/mlpack/releases/tag/4.8.0.
APA "Release 4. (2026). Release 4.8.0. Retrieved November 24, 2026, from https://github.com/mlpack/mlpack/releases/tag/4.8.0
Cite this article
MLA
"Mlpack." encyclopegia.org, 2026, https://encyclopegia.org/wiki/mlpack. Accessed 24 November 2026.
Chicago
"Mlpack." encyclopegia.org. Accessed November 24, 2026. https://encyclopegia.org/wiki/mlpack.
APA
encyclopegia.org. (2026). Mlpack. Retrieved November 24, 2026, from https://encyclopegia.org/wiki/mlpack
Accessed November 24, 2026 · CC BY-SA 4.0 · citation page · JSON