Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Among the new objects in MMA 8 are <a href="http://reference.wolfram.com/mathematica/ref/TreeGraph.html" rel="nofollow noreferrer">TreeGraph</a>, <a href="http://reference.wolfram.com/mathematica/ref/CompleteKaryTree.html?q=CompleteKaryTree&amp;lang=en" rel="nofollow noreferrer">CompleteKaryTree</a>, and <a href="http://reference.wolfram.com/mathematica/ref/KaryTree.html?q=KaryTree&amp;lang=en" rel="nofollow noreferrer">KaryTree</a>. The latter two objects give binary trees by default. I don't know how efficient they are for intensive computation but they do seem well-suited for displaying classifications. And there are many predicates and options for manipulating and displaying them.</p> <p>Here's an example of a classification tree from [Breiman, L. Classification and Regression Trees: Chapman &amp; Hall/CRC, 1984.]. It concerns 3 questions to determine whether a cardiac patient is likely to die within 30 days if not treated.</p> <pre><code>KaryTree[9, 2, VertexLabels -&gt; {1 -&gt; "Blood pressure &gt; 91 ?", 2 -&gt; "Age &gt; 62.5?", 4 -&gt; "Sinus tachycardia ?", 8 -&gt; "&lt; 30 days"}, EdgeLabels -&gt; {1 \[UndirectedEdge] 2 -&gt; "yes", 1 \[UndirectedEdge] 3 -&gt; "no", 2 \[UndirectedEdge] 4 -&gt; "yes", 2 \[UndirectedEdge] 5 -&gt; "no", 4 \[UndirectedEdge] 8 -&gt; "yes", 4 \[UndirectedEdge] 9 -&gt; "no"}, ImagePadding -&gt; 20] </code></pre> <p><img src="https://i.stack.imgur.com/d3oLx.png" alt="Classification graph"></p> <p>I'd like to get rid of the two unused nodes on the right, but have not figured out a an elegant way to do it. So I think I'll post a simple question about that on SO.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload