mlpack is set of tools for machine learning written in C++, and designed to be scalable, fast, and extensible. mlpack has an easy-to-use API which enables novice users to implement machine learning.
Questions tagged [mlpack]
67 questions
0
votes
0 answers
Strange linking error while compiling mlpack
mlpack was perfectly compiling on my systems a few days back. I don't know what I did that's causing the following strange linking error:
[ 37%] Linking CXX shared library ../../lib/libmlpack.so
/usr/bin/ld:…

Anwaar Khalid
- 23
- 4
0
votes
0 answers
Android: How to include mlpack c++ library into android project?
I trying to include mlpack c++ library into my android project
but getting an error when using some function of mlpack like:
NeighborSearch nn(data);
Error:
> undefined reference to `mlpack::Log::Assert(bool,…

Monir Zzaman
- 459
- 4
- 7
0
votes
1 answer
MLPACK | Compile Time Issue | Linux
I have followed this documentation to set up mlpack on my pc.
I have compiled the Covariance Computation code.
g++ covariance.cc -o a -fopenmp -std=c++11
After compiling I got the following errors.
What should I do?

Naman Jain
- 195
- 2
- 15
0
votes
1 answer
VSCode 'cannot open source file "boost/serialization/serialization.hpp" (dependency of "mlpack/core.hpp")' when trying to include mlpack
I am trying to use mlpack in VSCode. I have installed the library using brew, and have included the path in c_cpp_properties.json:
{
"configurations": [
{
"name": "Mac",
"includePath": [
…

Jr795
- 691
- 1
- 8
- 15
0
votes
0 answers
Can not compile mlpack C++ program on Ubuntu
i downloaded mlpack and its dependencies from ubuntu repos as described in the docs using :
sudo apt-get install libmlpack-dev libmlpack-bin and then i ran :
pkg-config --cflags mlpack
And pkg-config --libs mlpack
And pkg-config --modversion…

Karim Fadi
- 1
- 2
0
votes
1 answer
Fill boost::unordered_set quickly
I am trying to construct as quick as possible a set of elements based on the result of an image classification.
In the details, I would like to store in this set all the (r, g, b) pixels which belong to a certain class. The problem has 2 classes, I…

Gigioz
- 367
- 5
- 19
0
votes
1 answer
Armadillo Exception Thrown when using mlpack
I'm using the mlpack library which runs on top of the Armadillo linear algebra library. An exception has been thrown referring to the line in the debug.hpp file as shown below:
//! if state is true, abort program
template

dex
- 3
- 1
0
votes
1 answer
How to constuct the HamerlyKmeans object for mlpack's kmeans
I'm new to mlpack and using 3.3.1. I want to do some KMeans clustering. I can use the naiveKMeans class just fine, but I want to use another method, for example the HamelyKMeans class.
From the manual, it seems I need to construct my own local…

Shantanu K. Karve
- 21
- 1
- 4
0
votes
0 answers
Problem with Embedding Layer definition in C++ (mlpack lib)
I face the following problem. I want to build an LSTM model to make Sentiment Analysis. In C++, I use the mlpack library. Firstly, to understand the architecture I approached the problem via python and Keras advised from some tutorials. This…

Ilias Balampanis
- 1
- 4
0
votes
1 answer
How do I include a library in C++ that had been built from source code? [LINUX]
I have cloned a C++ library repo called 'mlpack'. I built the library using cmake and now I want to include it to my C++ file. I am using ubuntu 19.04. I tried to run the command:
g++ -std=c++11 test.cpp -I/home/koushik/Documents/'Git…

Koushik Sahu
- 99
- 1
- 1
- 9
0
votes
0 answers
mlpack Armadillo Dependency setting by cmake,error:The source directory "C:/mlpack/armadillo/build" does not appear to contain CMakeLists.txt
Build Environment:win10 vs 16 2019
When I used cMake to set Armadillo Dependency like this:
cmake -G "Visual Studio 16 2019" -A x64 -DBLAS_LIBRARY:FILEPATH="C:/mlpack/mlpack/packages/OpenBLAS.0.2.14.1/lib/native/lib/x64/libopenblas.dll.a"…

WayneDrem
- 1
- 1
0
votes
1 answer
Building MLPack from C++ source using CMake: is Julia required?
I am trying to build MLPack from its C++ source using CMake, and for some reason it is complaining that it can't find Julia.
CMake Error at /usr/local/Cellar/cmake/3.14.5/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:137 (message):
…

Amine
- 134
- 11
0
votes
1 answer
Windows Installation
I'm trying to setup mlpack on my Windows 10 machine for development. The instructions seem to be pretty old. The mlpack version currently available is mlpack-3.2.2.
The folder structure seems totally different in this version. For example, there's…

donguy76
- 610
- 3
- 12
- 33
0
votes
0 answers
Adding mlpack to gem5 results in build error
I try to add the mlpack library to gem5 in order to conduct an experiment. I have installed successfully the mlpack library on my Ubuntu 18.04 system. Then added the following includes in one of my modules:
#include…

ddleon
- 63
- 7