4 ms·
Nice write-up, thanks for sharing. One possible typo I noticed: > Maximum depth of tree (vertical depth) The maximum depth of trees. It is used to control over
by 6502nerdface 9y ago
Nice write-up, thanks for sharing. One possible typo I noticed:
> Maximum depth of tree (vertical depth) The maximum depth of trees. It is used to control over-fitting, higher values prevent a model from learning relations which might be highly specific to the particular sample.
Shouldn't it be lower values, i.e., shallower trees, that control over-fitting?
- sadanand4singh 9y agoThanks for pointing. Yes it should be lower value to prevent over-fitting.
- Bishonen88 9y agodf_train_set.Income.value_counts() should be df_test_set probably in the part where it's comparing both.