Decision Tree Pruning explained (Pre-Pruning and Post-Pruning)

Sdílet
Vložit
  • čas přidán 20. 07. 2024
  • In this video, we are going to cover how decision tree pruning works. Hereby, we are first going to answer the question why we even need to prune trees. Then, we will go over two pre-pruning techniques. And finally, we will see how post-pruning works.
    Links:
    - Corresponding blog post: www.sebastian-mantey.com/theo...
    - Post-Pruning from Scratch: • Post-Pruning from Scra...
    - Decision Tree Algorithm explained: Intuition • What is Machine Learni...
    - Decision Tree Algorithm explained: Entropy • What is Machine Learni...
    - Decision Tree Algorithm explained: Regression • Coding a Decision Tree...
    Timestamps:
    00:00 - Why do we need to prune trees?
    01:57 - Overfitting example
    04:44 - Pre-Pruning: Min-Samples approach
    07:08 - Pre-Pruning: Max-Depth approach
    10:18 - Post-Pruning

Komentáře • 26

  • @izb1275
    @izb1275 Před měsícem

    Thanks for the tutorial finally I understand pre-pruning and post-pruning!

  • @mansoorbaig9232
    @mansoorbaig9232 Před 4 lety +2

    Great blog post Sebastian. I am glad I figured this.

  • @AndrewCodeDev
    @AndrewCodeDev Před 4 lety +4

    Thank you very much for making these tutorials. Your visual presentation and general descriptions are great. I'll be watching out for future content!

  • @wennie2939
    @wennie2939 Před 3 lety +2

    The BEST explanation and code EVER! Thank you so much, Sebastian!

  • @redforestx7371
    @redforestx7371 Před rokem

    SUPERB EXPLANATION! THANK YOU!

  • @gautamdawar5067
    @gautamdawar5067 Před 3 lety +2

    Great tutorial and so structured! Amazing!

  • @eladiomendez8226
    @eladiomendez8226 Před 9 měsíci

    Great explanation!

  • @madhurir9646
    @madhurir9646 Před 2 lety +1

    Very Informative video. Thank you for sharing it helped to solve my machine learning assignment. Waiting for more conceptual videos.

  • @maximebelloable
    @maximebelloable Před 3 lety +2

    Thank you so much! Great tutorial, it really helped me out for an exam

  • @rohan_b_ra
    @rohan_b_ra Před 3 lety

    nice explanation ..thanks!!!

  • @minakshimathpal8698
    @minakshimathpal8698 Před 3 lety

    thank you for this video

  • @AA-yk8zi
    @AA-yk8zi Před 3 lety

    Thank you!!

  • @AkshayRaman97
    @AkshayRaman97 Před 2 lety

    Great explanation! Earned a sub

  • @xiujiesong3095
    @xiujiesong3095 Před 3 lety

    brilliant!

  • @syasyazuhaimi
    @syasyazuhaimi Před 2 lety

    may i know the difference between testing data and validation data?

  • @juanete69
    @juanete69 Před 2 lety

    Do you do it with cross-validation?
    How? What happens if at each k-fold you get a different model?

    • @SebastianMantey
      @SebastianMantey  Před 2 lety

      I’m assuming that you are referring to post-pruning:
      In this video, I just focus on the most basic use case of post-pruning where you build the tree with the training data, prune it with the validation data and then test it with the testing data.
      K-fold cross-validation is another technique on its own. It doesn’t really have something specifically to do with post-pruning. However, I think, you could also use it with post-pruning if you wanted to.

  • @hopelesssuprem1867
    @hopelesssuprem1867 Před rokem

    could you pls explain what type of pruning is it i.e. is it cost complexity pruning like in CART or something another and why did you decide to use this method?

    • @SebastianMantey
      @SebastianMantey  Před rokem +1

      I am assuming you are referring to post-pruning: As I mention at 14:44, the process is called “Reduced Error Pruning”. And I used it simply because that’s the process that was described in the book I was using, namely “Fundamentals of Machine Learning for predictive data analytics”.

    • @hopelesssuprem1867
      @hopelesssuprem1867 Před rokem

      @@SebastianMantey oo, thanks. Now I've understood everything.