问题标签 [mlpack]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
0 回答
20 浏览

android - Android:如何将 mlpack c++ 库包含到 android 项目中?

我试图将mlpack c++库包含到我的 android 项目中,但是在使用 mlpack 的某些功能时出现错误,例如:

错误:

你能帮我一步一步解决这个问题吗?

0 投票
1 回答
25 浏览

c++ - 尝试从源代码运行 MLPack 时出错

操作系统:Linux

编译:NDK-Build

我尝试mlPack从源代码编译时遇到错误。当我通过安装mlPack及其依赖项(armadillo,,,ensmallen)运行代码时,代码运行良好boost。但我正在尝试创建以下文件(,)和*.so库的单个文件。并且在尝试时发生错误。*.amlpack_test.cppmlpack_test.hppmlPack

mlPack_test.hpp

mlPack_test.cpp

错误

每当我尝试使用创建*.soor*.a文件ndk-build时,都会发生以下错误:

在此处输入图像描述 在此处输入图像描述

Android.mk文件如下:

包括库文件夹在内的所有文件都在LOCAL_PATH在此处输入图像描述

0 投票
0 回答
9 浏览

c++ - 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 libmlpack.so that I have built in my development environment as it was built in my desktop linux environment.

So, I was wondering if I could build the libmlpack.so for arm64 by using the library's source files. The following is the git repo for mlpack:

https://github.com/mlpack/mlpack

I was able to build boost library for android using the following git repo which seems to work fine.

https://github.com/moritz-wundke/Boost-for-Android

0 投票
0 回答
11 浏览

c++ - mlpack 的 csv 加载函数将所有内容映射为零

我正在使用 mlpack 的加载函数来加载 csv 文件并遇到问题。根据mlpack 的文档,我必须指定一个 DatasetInfo 变量才能加载包含分类特征的数据。尽管如此,所有矩阵条目的值都为零。

这是我用来加载数据集的代码:

我尝试加载的 csv 文件的前几行如下所示: