MCPcopy Create free account
hub / github.com/daft-dev/daft / test_bca

Function test_bca

test/test_examples.py:10–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8
9@image_comparison(baseline_images=["bca"], extensions=["png"])
10def test_bca():
11 pgm = daft.PGM()
12 pgm.add_node("a", r"$a$", 1, 5)
13 pgm.add_node("b", r"$b$", 1, 4)
14 pgm.add_node("c", r"$c_n$", 1, 3, observed=True)
15 pgm.add_plate([0.5, 2.25, 1, 1.25], label=r"data $n$")
16 pgm.add_edge("a", "b")
17 pgm.add_edge("b", "c")
18 pgm.render()
19
20
21@image_comparison(baseline_images=["classic"], extensions=["png"])

Callers

nothing calls this directly

Calls 4

add_nodeMethod · 0.95
add_plateMethod · 0.95
add_edgeMethod · 0.95
renderMethod · 0.95

Tested by

no test coverage detected