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
1
vote
1 answer
mlpack nearest neighbor with cosine distance?
I'd like to use the NeighborSearch class in mlpack to perform KNN classification on some vectors representing documents.
I'd like to use Cosine Distance, but I'm having trouble. I think the way to do this is to use the inner-product metric…

chrismcc
- 311
- 3
- 4
1
vote
1 answer
How do I set up and reference mlpack libraries in Ubuntu?
I'm running Ubuntu 16.04, and I have to admit my Linux skills are weak and are probably the reason that I'm struggling here.
I've run the following commands successfully:
sudo apt-get install libmlpack-dev
sudo apt-get install mlpack-bin
What's…

chrismcc
- 311
- 3
- 4
1
vote
1 answer
I can't build mlpack?
I am working on mlpack library (C++ machine learning library). I followed the steps of keon here: building mlpack, but i got the following error in cmd ,when i reached the last step which is building mlpack:
-- Building for: Visual Studio 14 2015
--…

Ibraheem
- 25
- 1
- 8
1
vote
0 answers
Linking Boost 1.61 with mlpack on windows using cmake
So I've been following this blog to compile mlpack on windows. I've completed almost all the step except for the final compilation.
I installed cmake 3.7.1 for windows. I get the following error on running the cmake command
cmake -G "Visual Studio…

Ashutosh Baheti
- 410
- 4
- 20
1
vote
1 answer
mlpack error while building
I get the following error after I install libmlpack-dev, include it in my program and compile it.
/usr/include/mlpack/methods/kmeans/kmeans_impl.hpp: In member function ‘void mlpack::kmeans::KMeans

user2761431
- 925
- 2
- 11
- 26
1
vote
1 answer
mlpack : out of memory error
Currently I try to execute k-means clustering from mlpack, a scalable machine learning library.
But when I execute bin/kmeans at the command line, I always receive the error.
error: arma::memory::acquire(): out of memory
terminate called after…

Benben
- 1,355
- 5
- 18
- 31
1
vote
1 answer
Microsoft C++ Optimizing Compiler crashing constantly
I am trying to build MLPack 0.8, and be it Release or Debug, my C++ Optimizing Compiler is constantly crashing. I have tried closing every other software to provide maximum RAM to the compiler, but that did not help.
My setup:
VS2010
Windows 7…

SinisterMJ
- 3,425
- 2
- 33
- 53
1
vote
1 answer
mlpack sparse coding solution not found
I am trying to learn how to use the Sparse Coding algorithm with the mlpack library. When I call Encode() on my instance of mlpack::sparse_coding:SparseCoding, I get the error
[WARN] There are 63 inactive atoms. They will be reinitialized randomly.…

Josh
- 63
- 6
1
vote
2 answers
EXEC_BAD_ACCESS in MLPACK library with -std=c++11
I have encounter EXEC_BAD_ACCESS error in my local environment (Mac OS X 10.9.2, boost 1.55.0, mlpack 1.0.8, llvm 5.1 clang-503.0.38), and I have narrowed down the error in a very simple snippet:
#include…

Li Dong
- 1,088
- 2
- 16
- 27
0
votes
1 answer
Installation of mlpack on Ubuntu 22.04
I have performed a mlpack installation using the OS version of package manager (Ubuntu 22.04):
sudo apt install libmlpack-dev mlpack-bin libarmadillo-dev
Now I am trying to compile a simple program. However no file mlpack.hpp was installed in my…

Wojciech Artichowicz
- 201
- 1
- 5
0
votes
1 answer
Problem with Using RcppMLPACK in My Own R Package
I am trying to develop an R package using the kmeans functionality from RcppMLPACK.
I in including the header part below:
#include
#include
#include
#include
#include
#include…

noirritchandra
- 103
- 9
0
votes
0 answers
vcpkg cannot open source file errors with mlpack
im currently trying to install vcpkg and mlpack, i have bootstraped vcpkg and ive integrate the install and also installed mlpack but when i go on to visual studio and try and do #include i get the error that it cannot open source file…

caidenmarley
- 11
0
votes
1 answer
How to turn on optimizations ( O3 ) when invoking cmake?
I am trying to build mlpack from source,
So far I have compiled the library with the below command,
cmake -G "MinGW Makefiles" -DBoost_INCLUDE_DIR="C:\msys64\mingw64\include" -DBUILD_BINDINGS=OFF…

Shoyeb Sheikh
- 2,659
- 2
- 10
- 19
0
votes
0 answers
Problem with running mlpack sample program
I have installed mlpack via msys2.
Also I have installed gcc via msys2.
Made a simple program in c++ from the code on mlpack website
// This is an interactive demo, so feel free to change the code and click the 'Run' button.
// This simple program…

Shoyeb Sheikh
- 2,659
- 2
- 10
- 19
0
votes
1 answer
Can I set a default "Active Solution Platform" in Visual Studio?
The Question
In Visual Studio, in the "Configuration Manager" under the Build tab, there is an option called the "Active Solution Platform." This causes problems with one of my commonly used libraries. Is there a way to set this to default to x64?…

user589321
- 99
- 6