.. _book_fig_chapter9_fig_rrlyrae_decisiontree: Decision Tree Classification of photometry ------------------------------------------ Figure 9.13 Decision tree applied to the RR Lyrae data (see caption of figure 9.3 for details). This example uses tree depths of 7 and 12. With all four colors,this decision tree achieves a completeness of 0.569 and a contamination of 0.386. .. image:: ../images/chapter9/fig_rrlyrae_decisiontree_1.png :scale: 100 :align: center .. raw:: html
**Code output:** .. raw:: html
.. literalinclude:: fig_rrlyrae_decisiontree.txt .. raw:: html
**Python source code:** .. raw:: html
.. literalinclude:: fig_rrlyrae_decisiontree.py :lines: 10- .. raw:: html
:download:`[download source: fig_rrlyrae_decisiontree.py] ` .. raw:: html