Jamesflynn1 / pyRBM

A Python framework to build and simulate stochastic rules-based models.
GNU General Public License v3.0
3 stars 0 forks source link

[FEATURE] Add model/solver diagnostic plotting #13

Closed Jamesflynn1 closed 2 months ago

Jamesflynn1 commented 2 months ago

Is your feature request related to a problem? Please describe. Validating a model or solver can be time consuming to perform by hand, and in the absence of tests at the moment, we lack a quantitative way to do so. I want to check if my solver and model is performing as expected at a glance, particularly the iteration time, which rules are triggered, the value of the rule propensities over time.

Describe the solution you'd like We will track runtime data when the solver.debug = True. Specifically, which rules are triggered (with which index set), the total propensity over time. We will display these results graphically. We want a way to calculate statistics over multiple simulations or differentiate between different iterations.

Additionally, we will investigate the feasibility of making this a real-time plot.

Jamesflynn1 commented 2 months ago

Total propensity will form a separate issue and will lead to the creation of a LineGraph class

Jamesflynn1 commented 2 months ago

The frequency bar chart can be a realtime plot - will need to adjust settings to ensure it works in real time though