jotaraul / upgmpp Goto Github PK
View Code? Open in Web Editor NEWUndirected Probailistic Graphical Modes for C++
License: GNU General Public License v3.0
Undirected Probailistic Graphical Modes for C++
License: GNU General Public License v3.0
Hi Raul,
I just noticed that the current master doesn't build, at least not on Ubuntu 14.04. This is the error I'm getting:
[ 23%] Built target base
Linking CXX shared library ../libUPGMplusplus-inference.so
CMakeFiles/inference.dir/decoding.o: In function `decodeExactRec(UPGMpp::CGraph&, std::map<unsigned long, std::vector<unsigned long, std::allocator<unsigned long> >, std::less<unsigned long>, std::allocator<std::pair<unsigned long const, std::vector<unsigned long, std::allocator<unsigned long> > > > > const&, unsigned long, std::map<unsigned long, unsigned long, std::less<unsigned long>, std::allocator<std::pair<unsigned long const, unsigned long> > >&, std::map<unsigned long, unsigned long, std::less<unsigned long>, std::allocator<std::pair<unsigned long const, unsigned long> > >&, double&, bool)':
decoding.cpp:(.text+0x1290): multiple definition of `decodeExactRec(UPGMpp::CGraph&, std::map<unsigned long, std::vector<unsigned long, std::allocator<unsigned long> >, std::less<unsigned long>, std::allocator<std::pair<unsigned long const, std::vector<unsigned long, std::allocator<unsigned long> > > > > const&, unsigned long, std::map<unsigned long, unsigned long, std::less<unsigned long>, std::allocator<std::pair<unsigned long const, unsigned long> > >&, std::map<unsigned long, unsigned long, std::less<unsigned long>, std::allocator<std::pair<unsigned long const, unsigned long> > >&, double&, bool)'
CMakeFiles/inference.dir/inference_MAP.o:inference_MAP.cpp:(.text+0x13d7): first defined here
CMakeFiles/inference.dir/decoding.o: In function `updateResults(std::map<unsigned long, unsigned long, std::less<unsigned long>, std::allocator<std::pair<unsigned long const, unsigned long> > >&, std::map<unsigned long, std::vector<unsigned long, std::allocator<unsigned long> >, std::less<unsigned long>, std::allocator<std::pair<unsigned long const, std::vector<unsigned long, std::allocator<unsigned long> > > > >&)':
decoding.cpp:(.text+0x6d68): multiple definition of `updateResults(std::map<unsigned long, unsigned long, std::less<unsigned long>, std::allocator<std::pair<unsigned long const, unsigned long> > >&, std::map<unsigned long, std::vector<unsigned long, std::allocator<unsigned long> >, std::less<unsigned long>, std::allocator<std::pair<unsigned long const, std::vector<unsigned long, std::allocator<unsigned long> > > > >&)'
CMakeFiles/inference.dir/inference_MAP.o:inference_MAP.cpp:(.text+0x7135): first defined here
collect2: error: ld returned 1 exit status
make[2]: *** [libs/libUPGMplusplus-inference.so] Error 1
make[1]: *** [libs/inference/CMakeFiles/inference.dir/all] Error 2
make: *** [all] Error 2
This bug was introduced in 934dbf2; the commit before builds just fine.
I found that, the size of weights for both unary factor are fixed, whose size of row should be number of class and size of column should be number of features for unary case. It's the same case for the pairwise.
I can understand the size of one dimension of weights should be equal to the dimension of features. But another dimension should not be fixed to number of class. This would induce large number of weights if the number of class is high such as more than 50 or 100.
Therefore my question would be, is it possible to customize the size of weights in this library? Because I have also looked into the code, the dimension of weights whose size is number of class is also used in the following learning phase and even inference phase. If I want to define weights with size like 1*(number of feature dimension), what should I do? Would it be troublesome to do it?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.