0
$\begingroup$

A question regarding Classify using the method DecisionTree.

From this post I learned how to access the structure of the generated tree; in the mentioned post it is done with c[[1, "Model", "Tree"]].

For a research project I need to know, for example, the depth of the tree, the number of leaves and inner nodes, etc. Can anyone show me a way to extract this information from the computed classifier? (ideally how to reconstruct the tree generated by Mathematica).

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.