Machine learning. The algorithm: random forest for the regression.

asked 2013-10-12 16:54:33 -0600

updated 2013-10-13 02:08:54 -0600

berak gravatar image

Hello everyone. Please tell me how I can find out what examples from the training set are defined in a specific node of a tree? I need this to get a probability distribution. For example I have 3 types of classes, and I took a tree out of the forest someTree = rtree-> get_tree (i); If I use indResult = someTree-> predict (test_sample, Mat ()) -> value; then get the value that gave the evaluation function, but I need to get out of the desired node probability distribution (class 0: 0.5, Class 1: 0.25, Class 2 : 0.25) P.S sorry for my bad english :)

edit retag flag offensive close merge delete