Coder Social home page Coder Social logo

upgmpp's People

Contributors

jotaraul avatar mintar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

upgmpp's Issues

master fails to build

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.

How to customize the size of weights?

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.