Skip to main content
2 of 2
edited tags
Wishmaster
  • 111
  • 1
  • 2

Get probability distribution from decision tree

I'm implementing decision tree based on CART algorithm and I have a question. Now I can classify data, but my task is not only classify data. I want have a probability of right classification in end nodes.
For example. I have dataset that contains data of classes A and B. When I put an instance of some class to my tree I want see with what probability the instance belongs to class A and class B. How can I improve CART to have probability distribution in the end nodes?

Wishmaster
  • 111
  • 1
  • 2