Skip to content

Commit f87b8b2

Browse files
twieckicanyon289
authored andcommitted
Revert "Adding an example for model to graphviz"
This reverts commit 2b79b85.
1 parent 2b79b85 commit f87b8b2

File tree

3 files changed

+0
-30
lines changed

3 files changed

+0
-30
lines changed

docs/source/api/model_graph.rst

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,3 @@ Graphing Models
44
.. currentmodule:: pymc.model_graph
55
.. automodule:: pymc.model_graph
66
:members:
7-
8-
.. image:: ../images/model_to_graphviz.png
9-
:width: 1000px
10-
11-
-31.6 KB
Binary file not shown.

pymc/model_graph.py

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -233,31 +233,6 @@ def model_to_graphviz(model=None, *, formatting: str = "plain"):
233233
The model to plot. Not required when called from inside a modelcontext.
234234
formatting : str
235235
one of { "plain" }
236-
237-
Examples
238-
--------
239-
How to plot the graph of the model.
240-
241-
.. code-block:: python
242-
243-
import numpy as np
244-
from pymc3 import HalfCauchy, Model, Normal, model_to_graphviz
245-
246-
J = 8
247-
y = np.array([28, 8, -3, 7, -1, 1, 18, 12])
248-
sigma = np.array([15, 10, 16, 11, 9, 11, 10, 18])
249-
250-
with Model() as schools:
251-
252-
eta = Normal("eta", 0, 1, shape=J)
253-
mu = Normal("mu", 0, sigma=1e6)
254-
tau = HalfCauchy("tau", 25)
255-
256-
theta = mu + tau * eta
257-
258-
obs = Normal("obs", theta, sigma=sigma, observed=y)
259-
260-
model_to_graphviz(schools)
261236
"""
262237
if not "plain" in formatting:
263238
raise ValueError(f"Unsupported formatting for graph nodes: '{formatting}'. See docstring.")

0 commit comments

Comments
 (0)