-
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
Merged
Merged
Changes from 127 commits
Commits
Show all changes
130 commits
Select commit
Hold shift + click to select a range
ae3022d
changed bayesmix submodule to forked
taguhiM d544420
test commit to check submodules - done
taguhiM c1ece8c
check submodule behaviour
taguhiM e6381e2
adding lib/math submodule
taguhiM 09b080e
Python hierarchy in external main
EnricoPaglia 09dd210
update .gitignore
taguhiM 13296ec
migrate compute_posterior_hypers : running super slow
taguhiM 2220011
migrate summary_statistics methods
taguhiM b4dd38d
change append to subscript (faster)
taguhiM 9404c84
fixed numerical mistakes in compute_posterior_hypers, from append to …
taguhiM 4b32c0a
declare as global vars all fun.attr methods
taguhiM b015840
submodule update
taguhiM 8107d0c
added namespace for python global variables (attr)
taguhiM d674670
modified to use pybind11 built-in type conversions (stl, eigen)
taguhiM 7b673b3
modify summary statistics to be stored in a vector
taguhiM 59d2b6c
initial trials to run from python
taguhiM d7c91e5
update bayesmix - modified tbb in cmake
taguhiM e6ba3d3
Merge branch 'bayesmix-dev:master' into master
taguhiM 8e7d10a
build with cmake instead of setup
taguhiM c377845
update submodules
taguhiM 846a99b
Merge branch 'master' into build_cmake
taguhiM b2cd9ca
Merge branch 'py_hier' into build_cmake
taguhiM b73cc75
first working run from python, yay!
taguhiM 0acfa82
add cmake in the bash script
taguhiM 9b8247f
Implementing pythonhierarchy int Python
EnricoPaglia 9e5aea5
Compiles, no core dumped, python hierarchy not found
EnricoPaglia ac43c0b
update submodule pybind11
taguhiM 689b446
update structure
taguhiM e77819d
add empty readme
taguhiM 54706a3
renamed bayesmix_ to bayesmix
taguhiM 493db9d
update submodule PATH
taguhiM 2da95e6
add py_hier directory
taguhiM 43c74cc
updates to new structure | partially working
taguhiM 2d10546
critical | forgot to add in the last commit
taguhiM 0cb3a6d
py_hier works, algorithm runs, can see plots but core_dumped in the e…
taguhiM 839eca2
modified bounds for python
taguhiM 25eec2c
add executable permission
taguhiM a7a0450
added draft implementations of non-conjugate python hierarchy
taguhiM 94e326f
added more draft implementations
taguhiM 907e9de
modified inheritance to base
taguhiM a96d42e
fixes in hypers
taguhiM f13e0e6
removed broken submodules, added new ones
taguhiM 5369421
fixed broken submodules
taguhiM 94fabef
removed old incorrect gitmodule
taguhiM 6c774d8
merging fixes
taguhiM 47ce8fa
Commented plot_mcmc and run_mcmc out of target_sources
gbpollam d2a3d40
modified gitignore
taguhiM c7fffaa
Merge non conjugate and mixing draft
EnricoPaglia 10f4190
Submodules update
EnricoPaglia 5b521d2
Submodules update
EnricoPaglia d9bc6b3
restore convert_proto.sh
EnricoPaglia 7969bca
NonConjugate Hierarchy modifications - bugfixing needed
gbpollam a065fd6
mixing implementation to be tested, non_conjugate_hier commented
EnricoPaglia 7142e76
Mixing draft, first working implementation
EnricoPaglia 4c93598
Same as previous commit
EnricoPaglia da12ff5
Implementation of LapNIG in python
EnricoPaglia a27fbe2
added missing implementations for py mixing, commented unnecessary me…
taguhiM 1a4da88
Renaming fun, deleting commented code
EnricoPaglia fc01b61
Mixing changer implementation
EnricoPaglia ddd1ea0
removed some comments, updated submodules
taguhiM f1b219d
preserved only py hier implementation for the pr
taguhiM dc91b7c
removed lib/math submodule
taguhiM 16b47a9
PythonHierarchy inheriting from AbstractHierarchy instead of BaseHier…
EnricoPaglia ff70e8c
Cleanup
EnricoPaglia c4f8cbb
Working Python Hierarchy with updated bayesmix
EnricoPaglia 6817914
Cleaning old code
EnricoPaglia 061130a
Refactoring hierarchy.py
EnricoPaglia 6bd673c
Renaming and removing old files
EnricoPaglia 9db9f1f
Renaming and cleanup
EnricoPaglia 9ea4163
Minor correction
EnricoPaglia 15e934c
Moving the implementation of Python Hierarchis in the docs/examples f…
EnricoPaglia 9a8145e
Extented to conjugate implementation example
EnricoPaglia 8901341
Removing unnecessary static_casts
EnricoPaglia b180f6d
Removed submodule
EnricoPaglia c305194
Removing external bayesmix
EnricoPaglia f61069b
New Structure
EnricoPaglia 0ebf0a6
Chane of structure final implementation
EnricoPaglia 2779d6a
Removing examples, docs, tests and benchmarks folders
EnricoPaglia 54c0477
Moving initialization of pybind objects and modules in the initialize…
EnricoPaglia c4c86fc
Changer in c++ instead of python
EnricoPaglia 810fe15
Reordering python_hierarchy part 1
EnricoPaglia ab91e3e
Reordering part 2
EnricoPaglia cf11117
Reordering PythonHierarchy
EnricoPaglia 57e2ed8
Update test_run.py
EnricoPaglia 4cee826
Changing example files
EnricoPaglia d59420c
refactored
taguhiM 1075dc7
added argument build
taguhiM 23f80dd
implemented update_hypers
gbpollam 315cf9f
Refactoring
gbpollam 6642f0c
Changing where the hier_implementation file name is given
EnricoPaglia 7fa80bc
Pass no longer needed when implementing python hierarchies
EnricoPaglia 26285e3
total reformatting of .py files with pycharm
taguhiM fcd9d6e
total reformatting of c++ files with clion
taguhiM 9d4320f
more reformatting
taguhiM 288e5c4
Compiling with c++17
EnricoPaglia c03a026
Correcting implementation of NNIG Hierarchies
EnricoPaglia e8a4fea
Small changes in hier implementations
EnricoPaglia 11ee715
reformatting back the clion mess
taguhiM 65c1c35
Small changes in test_run
EnricoPaglia e168d47
Deleting old files
EnricoPaglia 48e6825
Adding documentation of LapNIG_Hierarchy.py
EnricoPaglia 428711e
Clear_summary_statistics back to c++
EnricoPaglia 75cc2b3
Adding docs for NNIG implementations
EnricoPaglia 8cf576a
Changing change_module to change_hier in algorithm wrapper
EnricoPaglia 12f52d7
change in how cluster_data_values is emptied
EnricoPaglia 629df75
Change hier_change name and new documentation style
EnricoPaglia 3b87cc7
Adding docs and clean up
EnricoPaglia 3f559e9
Adding docs
EnricoPaglia 40f94f8
Fix of last commits
EnricoPaglia a21cebf
updated docs to NumPy style
gbpollam f5eaf50
Renaming
EnricoPaglia 718e865
style
EnricoPaglia e1f2ba5
style
EnricoPaglia 9b78e4e
Added readme file
EnricoPaglia 6172d7f
removed find_package pybind11, was not needed
EnricoPaglia dc0cc66
change convert proto to conda prefix
EnricoPaglia 47a3d0c
swichted back to original bayesmix submodule
taguhiM 5c0c239
updated submodules
taguhiM 54ff21c
small modifications
taguhiM 7a5a626
refactoring
taguhiM 912b083
added notebook for python hierarchy
taguhiM b45ee2d
Adding examples to notebooks
EnricoPaglia 0748829
fixed path in the notebook
taguhiM aa27008
fixed 2to3 path
taguhiM 71f1474
updated README
taguhiM a2b571a
pwd in convert proto
EnricoPaglia 2646232
path in the notebooks
EnricoPaglia 57f3ade
moving installation in main README
EnricoPaglia a993822
minor changes
EnricoPaglia a78ef71
change header guards
EnricoPaglia File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -130,3 +130,9 @@ dmypy.json | |
|
||
# Pyre type checker | ||
.pyre/ | ||
|
||
# PyCharm | ||
.idea/ | ||
|
||
# 2to3 path | ||
convert_proto.sh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
[submodule "pybmix/src/bayesmix"] | ||
path = pybmix/core/pybmixcpp/bayesmix | ||
url = https://github.com/bayesmix-dev/bayesmix.git | ||
depth = 1 | ||
update = merge | ||
[submodule "lib/pybind11"] | ||
path = lib/pybind11 | ||
depth = 1 | ||
url = https://github.com/pybind/pybind11.git | ||
[submodule "pybmix/core/pybmixcpp/bayesmix"] | ||
path = pybmix/core/pybmixcpp/bayesmix | ||
url = https://github.com/bayesmix-dev/bayesmix.git | ||
depth = 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/usr/bin/env bash | ||
brunoguindani marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
if [ -z "$1" ]; then | ||
cd build/ || exit | ||
cmake .. -DDISABLE_DOCS=ON -DDISABLE_BENCHMARKS=ON -DDISABLE_TESTS=ON -DDISABLE_EXAMPLES=ON | ||
make pybmixcpp | ||
make generate_protos | ||
make two_to_three | ||
else | ||
if [[ $1 == build ]]; then | ||
rm -rf $1 | ||
mkdir $1 | ||
cd $1 || exit | ||
cmake .. -DDISABLE_DOCS=ON -DDISABLE_BENCHMARKS=ON -DDISABLE_TESTS=ON -DDISABLE_EXAMPLES=ON | ||
make pybmixcpp | ||
make generate_protos | ||
make two_to_three | ||
else | ||
echo "wrong argument, pass build" | ||
fi | ||
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
SCRIPT_DIR=$(pwd)/.. | ||
|
||
# 2to3 must be in the path (e.g. export PYTHONPATH="path/to/2to3/") | ||
2to3 --output-dir=$SCRIPT_DIR/pybmix/proto -W -n $SCRIPT_DIR/pybmix/proto |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.