pdollar / toolbox

Piotr's Image & Video Matlab Toolbox
850 stars 499 forks source link

Change the number of nodes (internal and leaf). #19

Closed niuzhiheng closed 8 years ago

niuzhiheng commented 8 years ago

It did not cause problem before the fix. It simply allocated more than what you need.

pdollar commented 8 years ago

actually, if the maxDepth=inf then the tree can have maximum number of nodes proportional to the amount of training data, hence the current setup. you are right tho, most of the time it's overkill. still, the memory usage is negligible, so i'm inclined to leave it as is.