Decision Tree Regression: Avoiding Overfitting in Training Data

In summary, the conversation was discussing the topic of effective communication. The speakers talked about the importance of active listening, using clear and concise language, and asking clarifying questions. They also emphasized the need to be aware of nonverbal cues and to practice empathy in communication. Overall, the conversation highlighted the key elements of effective communication and how it can improve relationships and understanding.
  • #1
falyusuf
35
3
Homework Statement
Remove the overfitting in the following example.
Relevant Equations
-
The decision tree in the following curve is too fine details of the training data and learn from the noise, (overfitting).
overfitting.png

Ref: https://scikit-learn.org/stable/aut...lr-auto-examples-tree-plot-tree-regression-py

I tried to remove the overfitting but not sure about the result, can someone confirm my answer? Here's what I got:
result.png
 
Physics news on Phys.org
  • #2
From your graph, it appears that you trained to 5 outliers at max=5, vs the 7 outliers in the original graph. What parameter did you adjust?
 

Similar threads

  • Set Theory, Logic, Probability, Statistics
Replies
5
Views
816
  • MATLAB, Maple, Mathematica, LaTeX
Replies
9
Views
1K
  • Set Theory, Logic, Probability, Statistics
Replies
4
Views
1K
  • Set Theory, Logic, Probability, Statistics
Replies
13
Views
2K
Replies
10
Views
2K
  • Art, Music, History, and Linguistics
Replies
1
Views
1K
  • STEM Academic Advising
Replies
13
Views
4K
  • General Discussion
Replies
4
Views
7K
  • Special and General Relativity
Replies
13
Views
2K
Back
Top