question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Inner and shaded nodes in same graph

See original GitHub issue

Lee & Wagenmakers (2014) propose to add inner circles for deterministic nodes and shaded for observed nodes. However, I have to choose in daft.PGM(observed_style='shaded').

For now, my workaround is to add another “empty” scaled down node, but the spaces between the two are not equal for ellipses for which the scaling changes more in one direction than another. So it is not satisfactory.

pgm.add_node(daft.Node('det', '$node$', 0, 0, aspect=2))  # Deterministic
pgm.add_node(daft.Node('none', '', 0, 0, scale=0.85, aspect=2))  # Inner ellipse on deterministic
pgm.add_node(daft.Node('obs', '$obs$', 1, 1, observed=True))  # Shaded observed

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
dsfulfcommented, Jan 6, 2019

Added this as an option to #106.

0reactions
dsfulfcommented, Sep 4, 2019

This should integrate with #69, in a future version enhance to allow multiple node types set via a dict of some kinds rather than several boolean arguments.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Chapter 4. Pathfinding and Graph Search Algorithms - O'Reilly
Pathfinding algorithms build on top of graph search algorithms and explore routes between nodes, starting at one node and traversing through relationships ...
Read more >
Navigating Inside the Node Graph - Foundry Learn
To center certain selected nodes, press F with the Node Graph in focus. Note: Pressing F without selecting any nodes produces the same...
Read more >
shading area between nodes - tikz pgf - LaTeX Stack Exchange
The first problem I get is with the curve (in red). Before the curve no problems, the second segment starts in 3 at...
Read more >
How To Use Every Node in Unity Shader Graph - Daniel Ilett
Base Color (Block). Shader Graph uses the same Color window as other parts of Unity. ... We just write the integer directly inside...
Read more >
Mari for Beginners - 05: Nodes and The Node Graph - YouTube
In this fifth part we go through Mari's Node Graph, a fundamental part of the software you need to know to be able...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found