Comments (1)
Try to use the reverse compiler from the compiled SPE m
to an SPPL program source with equivalent semantics and then append it to the original program. Below is a sketch
m = ...
from sppl.compilers import spe_to_sppl
source_m = spe_to_sppl(m) # return type is io.StringIO
source_m_str = source_m.getvalue()
source_joint = '%s\n\n%s' % (source_m_str, source)
model = SPPL_compiler(source_joint).execute_module().model
from sppl.
Related Issues (20)
- Make graphviz optional HOT 1
- Expunge x >> dict notation; prefer instead x >> choice(dict).
- Change interface of logpdf to take a Python dict not Event
- Support SPPL functions with exogenous parameters for modeling GLMs
- Remove frechet_r and frechet_l which are deprecated in some scipy versions
- install numpy==1.16.6 causing weird issues through pip HOT 4
- .constrain without Identity silently fails for ProductSPN
- Implement command line interface?
- Add size() for spe HOT 1
- Memory error for big discrete Bayesian networks HOT 7
- Strange scale parameters to Normal in the fairness-income-model HOT 2
- Rename get_symbols to scope and add to SPE API
- Implement logpdf__ for AtomicLeaf
- Fix typo in spe.memoize event_factor_to_event -> event_factor
- `scipy == 1.4.1` fails to build on `osx` HOT 1
- Fix equality checking for instances of `rv_discrete`
- Fix relying on `.name` attribute of `rv_discrete`
- Possibility of using locked semantic versioned dependencies? HOT 1
- SPPL compiler replaces `==` and `in` with `<<` incorrectly at times
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sppl.