Using optimize parameters(Grid) on decision tree
Ben_Suen
New Altair Community Member
Hi,
I used optimize parameters(Grid) to determine the optimal parameters used in decision tree. The result give me something like maximal_depth=14, minimal leaf size=92. But when i look in the model, i found that there are some leafs containing only 1 sample. Do anyone know if i did something wrong?
I used optimize parameters(Grid) to determine the optimal parameters used in decision tree. The result give me something like maximal_depth=14, minimal leaf size=92. But when i look in the model, i found that there are some leafs containing only 1 sample. Do anyone know if i did something wrong?
Tagged:
0
Best Answer
-
Hi @Ben_Suen,did you use a validation scheme like cross-validation? This sounds a bit over-trained.Best,Martin2
Answers
-
Hi @Ben_Suen,did you use a validation scheme like cross-validation? This sounds a bit over-trained.Best,Martin2
-
Also did you actually optimize minimal leaf size parameter or minimal size for split? They work a bit differently.0
-
Hi @Telcontar120
I optimized minimal leaf size parameter. i think there should be at least 92 sample in each leaf after the optimize parameter operator give me these parameter. Do i misunderstand something here?0 -