.DataNodes">[docs]</a><span class="k">class</span> <span class="nc">DataNodes</span><span class="p">:</span>
    <span class="sd">&quot;&quot;&quot;This is a bag used to create and contain the different types of the</span>
<span class="sd">    tree nodes. The functions `terminal`, `chance`, and `decision` are used</span>
<span class="sd">    to create the nodes.</span>
<span class="sd">    &quot;&quot;&quot;</span>

    <span class="k">def</span> <span class="fm">__init__</span><span class="p">(</span><span