Comments (2)
@flyingkukri Based on a quick look, the error may stem from a define/macro conflict. I suspect there may be a #define As
somewhere within your codebase, along these lines of `#define As cl_as_aux".
It may be possible to counteract this by undefining the As macro before including mlpack.hpp and ensmallen.hpp
Please try the following:
#undef As
#undef Any
#include <mlpack.hpp>
from mlpack.
@flyingkukri The bug seems to be caused by Class Library for Numbers - CLN (https://www.ginac.de/CLN/), which is probably included (directly or indirectly) within your project.
See lines 269 and 274 in the following file, which define a macro named As
https://www.ginac.de/CLN/cln.git/?p=cln.git;a=blob;f=include/cln/number.h;h=67f68899a6926eca49722f012d0a20d159162c57;hb=HEAD#l269
I suggest filing a bug report with the developers of CLN. It's strongly recommended that all macros have a unique prefix, in order to avoid clashes like this. For example, the macro "As" should be defined as "CLN_As".
Alternatively, CLN should clean up after itself, so that all internal macros are undefined at the last point. In other words, there should be an #undef As
as the last thing done within the CLN header files.
from mlpack.
Related Issues (20)
- Inconsistent use of the "input" parameter to the Backward method in ANNs HOT 11
- Add accuracy measure for mlpack_logistic_regression ? HOT 7
- Error in use of preprocess_split() in LinearRegression. HOT 2
- Proposal for New Supervised Learning Data Simulation Classes in C++ for MLPACK Library HOT 9
- Build fail for project using MLPack, M_SQRT2 undeclared identifier HOT 4
- MPLACK failed build in x86 mode HOT 1
- msvc round in core/math/round.hpp HOT 2
- Multihead attention layer HOT 1
- Multi-head output network HOT 1
- How to configure mlpack_test?
- How to configure mlpack test case HOT 1
- RADICAL number of components HOT 2
- Documentation should make types clearer when using non-default `MatType`s
- in ver 4.3.0 I can`t import linear_svm HOT 5
- Is it possible to get the distance calculations as one of the return types in Kmeans clustering HOT 4
- mlpack / opencv namespace ambiguity? HOT 3
- benchmark results HOT 1
- make install taking a lot of time in arm low end processor (1.5 GHz clock cycle) HOT 2
- Problem in reading csv data (inconsistent dimensions) HOT 4
- Mlpack4.2.1 for Windows is having issue in training RandomForest over ~7M samples with larger number of trees (ex: 600 trees) HOT 13
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mlpack.