The algo works fine when i set max_depth 40 and max_leaf_nodes 40 but if i set max_depth as 15 and max_leaf_nodes as 40 then for some trees the max_leaf_nodes automatically changes to a very large number (around 3000-4000) and it takes long time to add that single tree
