Questions tagged [mlpack]

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.

Homepage

67 questions
10
votes
1 answer

Conversion between cv::Mat and arma::mat

I am using OpenCV and also want to add some of cool functions from mlpack, which is using Armadillo matrices. Is there an easy way to convet between cv::Mat and arms::mat? Thanks!
wking
  • 1,293
  • 1
  • 16
  • 27
6
votes
3 answers

Linking to Armadillo libraries with CMake

I am trying to install MLPack on windows 8. I configure the CMakeLists.txt file with: set(ARMADILLO_LIBRARY "C:\\Program Files (x86)\\armadillo\\lib") set(ARMADILLO_INCLUDE_DIR "C:\\Program Files (x86)\\armadillo\\include") Then when I ran CMake I…
Vince
  • 3,979
  • 10
  • 41
  • 69
3
votes
0 answers

Boost causing errors during compilation

I have recently added MLPack to my software, and I tried to compile the MLPack as coming from CMake. MLPack itself builds just fine with Visual Studio 2012, and then I wanted to integrate it into my own software. I have not even done one line of…
SinisterMJ
  • 3,425
  • 2
  • 33
  • 53
2
votes
1 answer

can't create dynamic relocation R_AARCH64_ADD_ABS_LO12_NC against symbol

OS: Ubuntu 20.04 MlPack(branch): master I am trying to build a program which is dependent on mlpack for android. For that I am using ndk-build. To make the library compatible for arm64 architecture, I have used buildroot environment 2020.08.1 to…
Niaz Palak
  • 175
  • 1
  • 13
2
votes
0 answers

While training throws up a huge compile time error which says TLS init function undefined reference to arma::mt19937_64_instance

The undefined reference is generally a linker error. I feel like the error is because of my compilation of mlpack rather than code but I do not know how to track it down or if my assumption is correct. Or if it is a bug and there is a work around. I…
Tarun Maganti
  • 3,076
  • 2
  • 35
  • 64
2
votes
0 answers

How do I link Armadillo with nvblas on windows

So I want to use mlpack (https://github.com/mlpack/mlpack) with nvblas. Now mlpack uses armadillo. I been looking online for a guide that will explain to me how to setup armadillo and mlpack with nvblas and I can't find one (especially one that…
NacOJerk
  • 73
  • 11
2
votes
1 answer

undefined symbol in Cython module when using mlpack

I met the problem "undefined symbol" when using mlpack in Cython. Here is my test case: cdef extern from "" namespace "arma": ctypedef unsigned uword cdef cppclass vec: vec() vec(uword) cdef cppclass…
NORTMP
  • 27
  • 4
1
vote
1 answer

How to use mlpack in my Rcpp code in macOS

I am trying to build an R package using mlpack. As suggested in this link I am using the following cpp function #include #include // Two include directories adjusted for my use of mlpack 3.4.2 on Ubuntu #include…
1
vote
0 answers

How to build MLPack library as a static library using NDK-build?

Can I build a library like mlpack which has only .hpp file as a shared library using NDK-Build? I am trying to build an API using ndk-build from linux for android arm64 and armeabi-v7a. But my API has a dependency on mlpack. But I can't use the…
Niaz Palak
  • 175
  • 1
  • 13
1
vote
1 answer

Error while trying to run MLPack from source

OS:Linux Compile: NDK-Build I am facing error while I try to compile mlPack from source. The code works fine when I run by installing the mlPackand it's dependencies(armadillo, ensmallen, boost). But I am trying to create a single *.so and *.a file…
Niaz Palak
  • 175
  • 1
  • 13
1
vote
1 answer

Error while trying to use the boost::variant - "No matching function for call"

I'm continuously getting errors saying "No matching call for function" while using boost::variant. Below is my code snippet. struct Output { int a; float b; } typedef boost::variant, ClassA<>> ClassAGeneric; class…
Ambi
  • 423
  • 3
  • 7
  • 17
1
vote
0 answers

mlpack train weighted DecisionTree using sample frequency

Following the example from the official documentation, I am at this point in training a DecisionTree classifier: arma::rowvec weights = arma::randu(1, labels.size()); size_t numClasses = 2; KFoldCV, Accuracy> cv2(5, data,…
Gigioz
  • 367
  • 5
  • 19
1
vote
1 answer

Cmake Mlpack Ubuntu Issue

I'm using cmake in VSC on Ubuntu for a simple data cluster algorithm. For this I want to use the already existing Mlpack library. If I try to run my code I receive errors like…
s kop
  • 196
  • 4
  • 18
1
vote
1 answer

mlpack : index out of bounds in FFN<>

I have this code : #include #include #include int main(int argc, char** argv){ assert(argc==3); arma::mat data_in, data_out; mlpack::data::Load(argv[1],…
1
vote
0 answers

pyMIC Offload MLPACK Code -> Error: Could not load library on device 0

We are trying to compile some code (a modified mlpack knn_example.cpp) that uses the mlpack and Armadillo c++ libraries. Compilation is successful but when running the pymic code we are getting an error: pymic.offload_error.OffloadError: Could…
Chris Njuguna
  • 335
  • 1
  • 3
  • 12
1
2 3 4 5