Mlpack

Uses your system voice; voice and rate in settings.

Snapshot

≈ 4 min read

Names in other languages

No names in other languages are held for this entry yet.

Article bodies are English and are not machine-translated. A name in another language is not a translation of the article.

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

Text derived from https://en.wikipedia.org/w/index.php?oldid=1367681994 under CC BY-SA 4.0; modifications have been made.

Sources cited in this revision

6 named source(s) extracted from the cited revision. A source with no author is shown by its publication; nothing is invented.