SPFlow
SPFlow copied to clipboard
Sum Product Flow: An Easy and Extensible Library for Sum-Product Networks
Work in Progress (*please don't merge yet*) - Added basic Edge/Node abstraction to compute the SPN layerwise - Added basic network architecture from TorchSPN to convert the spn structure to...
### What did you expect to happen? the example code does not execute ### What actually happened? the example code does not execute - ImportError: cannot import name 'from_numpy_matrix' from...
### Describe your request SPNs with some probabilities left undefined as parameters (e.g., p, 1-p). This would allow for the creation of SPNs where nodes are defined with parameters instead...
Make sure, that we are not regressing in terms of performance.
See also: https://github.com/SPFlow/SPFlow/actions/runs/7448060524/job/20261594330?pr=170#step:3:210
The current `tests` dir contains new tests written from scratch. The old tests (with tensorly) where moved to `tests_old` for the sake of keeping the code until the tests are...
The current conditioning on the `child_lls` is wrong: (a) log-space is missing and (b) the posterior is not normalized. https://github.com/SPFlow/SPFlow/blob/794a8dde145db4b50d4f02527d0a16aa76a71a3c/spflow/modules/node/sum.py#L320