"how to read the event count in decision tree"

happydust
happydust New Altair Community Member
edited November 5 in Community Q&A
Hi Guys:
i am new to Rapidmnier, and i have a question:
for the decision trees, once i got a treeModel, is there a way i can read the event count? (on the leave node, like how many cases are predicted in this node)

Thanks!

best
Happydust

Answers

  • land
    land New Altair Community Member
    Hi,
    this is either shown in the Text View of the model or by a tool tip if you position the mouse over the tree view.

    Greetings,
      Sebastian
  • happydust
    happydust New Altair Community Member
    Sebastian
    Thanks!
    However, what i am doing now, is doing a JAVA application, so i want to be able to read the count from java-- meaning in the code instead of going to rapidminer and find the count manually . Do you know how to do that?

    Really appreciate your help!

    Happydust
  • land
    land New Altair Community Member
    Hi,
    of course, I wrote the thing at least partially. I would suggest taking a look at the Java Doc of the TreeNode. You will find a suitable method there.

    Greetings,
      Sebastian