()
| 8 | |
| 9 | @image_comparison(baseline_images=["bca"], extensions=["png"]) |
| 10 | def 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"]) |