This repository has been archived by the owner on Dec 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Moving to a functional interface (#88)
* Compile wiring with individual factors * Use ordered dict for keys to factors * Rename keys to variables; Simplify * Store variables to factors for factor graph * Simplify messages manipulation * Shorten name * Don't run ci for regular push * Rough outline for log potentials * Log potentials manipulation * Change Messages to BPState * Allow log potentials for individual factors * Make BPState independent of factor graph * New classes for functional interface * Get rid of default modes * Functional updates functions * Functional BP interface * Remove old implementation * Use functions for setitem * Implement decode map states * Make Ising model example run again * Updated ising model notebook * Make RBM example run again * Implement flatten/unflatten for variable groups * Use flatten in evidence updates * flatten/unflatten for factor groups * Use flatten in log potentials updates * Simplify decode map states * Fix flatten/unflatten * Get rid of copy in unflatten * Update notebooks * Fix all notebooks * Add examples for batching and gradients * Separate out decode_map_states * Make test_pgmax pass * New test groups * Fix test groups * New test nodes * Pass test graph * Full coverage of graph * Support default log_potential_matrix for pairwise factor groups * Full coverage * Docstrings * Docstrings * Separate add factor functions to clarify * Update examples * Fix tests * Change key to name * More renaming * Try to avoid memory leaks * functools.partial * Small fixes * Add raises * Fix mypy error * Raises * Comments * Fix tests
- Loading branch information
1 parent
57afe77
commit e4f7208
Showing
13 changed files
with
1,992 additions
and
1,033 deletions.
There are no files selected for viewing
This file contains 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,6 @@ | ||
name: continuous-integration | ||
|
||
on: | ||
push: | ||
branches: | ||
- '*' | ||
pull_request: | ||
branches: | ||
- master | ||
|
This file contains 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 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 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.