Closed
Description
Description of your problem
I have a big big model and would like to make pm.model_to_graphviz
plots of only some of the variables inside.
For example after adding gp.conditional
s and then only wanting to plot the nodes my new variable depends on.
My model also includes some ConstantData
variables I use to store indexing information.
They aren't relevant for model understanding and I'd like to hide them.
Proposal
The pm.model_to_graphviz
function could take additional kwargs to customize the plot:
var_names
(orvars
?) to plot only certain variables and their dependenciesshow_disconnected_data: bool
to hideConstantData
/MutableData
nodes that don't contribute to (selected) model variables
Implementation
Variable selection should be straightforward since it's already in the constructor, just not accessible via a kwarg:
Lines 33 to 36 in a3bab7d