Equation Model

The front end.
Post Reply
cpm827
Posts: 3
Joined: Mon Apr 05, 2021 1:03 pm

Equation Model

Post by cpm827 »

Hello! I have an equation model which i will like to convert into a dynamic Bayesian network, is this possible in GeNIe ?
marek [BayesFusion]
Site Admin
Posts: 450
Joined: Tue Dec 11, 2007 4:24 pm

Re: Equation Model

Post by marek [BayesFusion] »

Not quite yet but please stay tuned -- we should have it later this year. At the moment, what you can do is create a static hybrid model (i.e., with equation nodes) that has variables at time t and then t-1 (assuming links of the first order). Once you have that, you can use your static model for generation of CPTs for your DBN. Please find enclosed two models that I used to implement a discrete dynamic predator-prey model involving Lotka-Volterra equations. I generated the CPTs in the static model and just copied and pasted them into the DBN. I hope this helps. If you give us some months, we will have DBNs that have equation nodes within them.
Cheers,

Marek
Attachments
Foxes Rabbits DBN 20.xdsl
Dynamic model with the CPTs from the static model
(335.83 KiB) Downloaded 653 times
Foxes Rabbits Equations.xdsl
Static hybrid model for the generation of discrete CPTs.
(6.13 KiB) Downloaded 639 times
ccorreaf
Posts: 1
Joined: Sun Oct 05, 2025 1:15 pm

Re: Equation Model

Post by ccorreaf »

Hello,

I would like to confirm whether temporal nodes can be defined using equations in PySmile. For illustration:
b{0} = a
b{t+1} = b{t} + c{t} + d{t}, where a, c, and d follow Uniform distributions.

While developing a model, I noted the function:
set_node_temporal_equations(node: int | str, equations: List[str])

During execution, an error occurred. Could you clarify the format in which these temporal equations should be provided? In Genie, a new line is added for each temporal equation

Is there an example available for reference?

Thank you very much.
Attachments
Example_Temporal_Equation.png
Example_Temporal_Equation.png (97.75 KiB) Viewed 1889 times
Post Reply