()
| 341 | |
| 342 | @image_comparison(baseline_images=["logo"], extensions=["png"]) |
| 343 | def test_logo(): |
| 344 | pgm = daft.PGM() |
| 345 | pgm.add_node("d", r"$D$", 0.5, 0.5) |
| 346 | pgm.add_node("a", r"$a$", 1.5, 0.5, observed=True) |
| 347 | pgm.add_node("f", r"$f$", 2.5, 0.5) |
| 348 | pgm.add_node("t", r"$t$", 3.5, 0.5) |
| 349 | pgm.add_edge("d", "a") |
| 350 | pgm.add_edge("a", "f") |
| 351 | pgm.add_edge("f", "t") |
| 352 | pgm.render() |
| 353 | |
| 354 | |
| 355 | @image_comparison(baseline_images=["mrf"], extensions=["png"]) |