jhofman/vbmod_python

Weave Code Problems

Opened this issue · 1 comments

Thanks for contributing your vbmod code.

After struggling with not making simple examples work, I uncommented the python code for Q updates used that instead of the weave (c) code. This was successful. I didn't completely debug the c code, but the weave version of updates appear to be independent of A doesn't give the same answer as the python version, so maybe something is missing?

I have done a few of your todos... breaking out vbmod as a module and separating tasks and the parts the require matplotlib and demonstrating with igraph as well as networkx. Take at look at my fork at https://github.com/DrSkippy/vbmod_python. I don't want to send a pull request unless you indicate since I made many changes to all parts of the code and removed the optimization code. (I am happy to add it back in if it can be debugged easily.)

Thanks again.

I think I have the weave section working. It just needed to have the "estep_inline" function return the new Q.

Also, a lot of the code after was using Qmat. so I made Qmat = mat(Q) after the "estep_inline" function. That seems to get things working for me.