t is far from perfect. However, as we can see in the
ROC table, a logistic regression (LR) would not perform much better, and
CART performed even worse than Tree #1.</p>
<p>Now let’s inspect the performance of the same tree on the
<em>test</em> data:</p>
<div class="sourceCode" id="cb13"><pre class="downlit sourceCode r">
<code class="sourceCode R"><span><span class="co"># print(titanic.pred.fft, data = "test", tree = 1)</span></span>
<span><span class="fu"><a href="https://rdrr.io/r/graphics/plot.defa