-
Notifications
You must be signed in to change notification settings - Fork 2
Python Hierarchy Implementation #16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…subscript in vector/list conversions
The Running after a
Also, it would be nice to have a notebook comparing the C++ implementation of the NNIG/laplace hierarchies with the Python ones, to make sure that the code is correct (same density estimate) and show the performance loss |
We've updated the README (we tried to install from 0 on a virtual machine following the updated README, so we are sure it works), please try again. |
docs/examples/README.md
Outdated
1) Clone the repository | ||
```shell | ||
git clone --recurse-submodule [email protected]:bayesmix-dev/pybmix.git | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the installation should be part of the main Readme
I still get the same exact error. Removing the last |
Do you think this is OS dependent error? Because it works fine for us, also on VM's, but we're all using Linux. |
Seems its working without that also for us. We check better and update it. |
Also, installation is not clear for me at the moment. E.g.,
and then running
|
Were you inside the repository directory when that error occurred? |
In the end it did not work. |
To run the notebook we included the lines
before importing anything in the pybmix folder. We did not push this since it is not present in the other notebooks and when the pip install command will work it will not be needed anymore. Should we add it? (And in case should we add it also to the other notebooks?) |
I'm at the root folder of
the first line of the output comes from |
But when |
This is the full output when calling
It seems that SCRIPT_DIR = /Users/marioberaha/dev/tests/pybmix/.. |
Does it work if instead we define SCRIPT_DIR as
? It works for me |
yes works for me as well |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything looks good. Please move the installation instruction to the main REAME.md file then merge at will
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've had a quick look at the C++ code. I have not followed the development closely, so this is just an external check for major mishaps. Everything looks fine, I have only noted a small amount of observations.
Also, one last thing: what's up with the empty file pybmix/core/pybmixcpp/tmp.hpp
?
If everything has been addressed, you can merge the PR! |
Hi.
In this PR we present the implementation of the python hierarchy.
Note that, the states and hypers now are stored in std::vectors for the sake of generalization; there is an internal 'switcher' implemented for the user to change between different hierarchy implementations in python dynamically (in runtime).
*The documentation and styling of the code are not yet done.
We would like to mention that we did try using the 'make opaque' technique to pass by reference between c++ and python, but that surprisingly didn't improve the performance.
To build the library:
To run an example using the python implementations:
$ python3 docs/examples/test_run.py
We would like to hear your comments to improve the code.