问题标签 [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.
c++ - 尝试从源代码运行 MLPack 时出错
操作系统:Linux
编译:NDK-Build
我尝试mlPack
从源代码编译时遇到错误。当我通过安装mlPack
及其依赖项(armadillo
,,,ensmallen
)运行代码时,代码运行良好boost
。但我正在尝试创建以下文件(,)和*.so
库的单个文件。并且在尝试时发生错误。*.a
mlpack_test.cpp
mlpack_test.hpp
mlPack
mlPack_test.hpp
mlPack_test.cpp
错误
每当我尝试使用创建*.so
or*.a
文件ndk-build
时,都会发生以下错误:
该Android.mk
文件如下:
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.
c++ - mlpack 的 csv 加载函数将所有内容映射为零
我正在使用 mlpack 的加载函数来加载 csv 文件并遇到问题。根据mlpack 的文档,我必须指定一个 DatasetInfo 变量才能加载包含分类特征的数据。尽管如此,所有矩阵条目的值都为零。
这是我用来加载数据集的代码:
我尝试加载的 csv 文件的前几行如下所示: