{"id":61642,"library":"mlpack","title":"mlpack","description":"mlpack is an intuitive, fast, and flexible header-only C++ machine learning library with bindings to other languages.","status":"active","version":"4.7.0","language":"cpp","source_language":null,"source_url":null,"tags":["machine-learning","header-only","nearest-neighbor","data-mining"],"install":[{"cmd":"vcpkg install mlpack","lang":"bash","label":"vcpkg"},{"cmd":"# CMakeLists.txt\nfind_package(mlpack CONFIG REQUIRED)\ntarget_link_libraries(main PRIVATE mlpack::mlpack)","lang":"cmake","label":"CMake"}],"dependencies":[],"imports":[{"symbol":"mlpack/core.hpp","correct":"#include <mlpack/core.hpp>"}],"quickstart":{"code":"#include <mlpack/core.hpp>\n#include <mlpack/methods/neighbor_search/neighbor_search.hpp>\nint main() {\n    arma::mat data = arma::randu<arma::mat>(3, 100);\n    mlpack::neighbor::NeighborSearch<mlpack::neighbor::NearestNeighborSort> nn(data);\n    arma::Mat<size_t> neighbors;\n    arma::mat distances;\n    nn.Search(5, neighbors, distances);\n    return 0;\n}","lang":"cpp","description":"Perform nearest neighbor search on random data."},"warnings":[{"fix":"Ensure all dependencies are properly linked via CMake target.","message":"mlpack is header-only but requires Armadillo and other dependencies; linking may be complex.","severity":"gotcha","affected_versions":"*"}],"env_vars":null,"search_vec":"'bind':17 'c':12 'data':31 'data-min':30 'fast':6 'flexibl':8 'header':10,25 'header-on':9,24 'intuit':5 'languag':20 'learn':14,23 'librari':15 'machin':13,22 'machine-learn':21 'mine':32 'mlpack':1,2 'nearest':28 'nearest-neighbor':27 'neighbor':29","created_at":"2026-06-17T04:59:14.296305+00:00","updated_at":"2026-06-17T04:59:14.296305+00:00","problems":[],"ecosystem":"vcpkg","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["other"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}