Skip to content

Close #210 - #213

Merged
Benjamin-Lee merged 5 commits into
masterfrom
new-overfitting-figure
Oct 1, 2020
Merged

Benjamin-Lee merged 5 commits into
masterfrom
new-overfitting-figure

Conversation

@Benjamin-Lee

Copy link
Copy Markdown
Owner

Did you add yourself as a contributor if this is your first contribution?

  • Yes, I added myself or am already a contributor

Any more details?

@rasbt Can you take a look? I was just rereading your Python Machine Learning book and really liked your figure on overfitting, so what are your thoughts on #210 and this figure?

@Benjamin-Lee
Benjamin-Lee requested review from agitter, cgreene and rasbt June 5, 2020 09:55
@Benjamin-Lee Benjamin-Lee linked an issue Jun 5, 2020 that may be closed by this pull request
@agitter

agitter commented Jun 5, 2020

Copy link
Copy Markdown
Collaborator

From #210

One thing that is bothering me is that the testing data is different (in a separate range) from the training data. Would it make more sense to have them be in the same range?

I thought this was an important point. Having the testing points from a different range is more like illustrating a dataset shift, or training and testing points that are drawn from different distributions. I actually think that is also a very important concept to convey. But it may be better illustrated in a second conceptual figure like this so that one figure can highlight overfitting and another can highlight dataset shift.

I do like the stylistic changes here, and the xkcd style plotting in general.

@rasbt

rasbt commented Jun 5, 2020

Copy link
Copy Markdown
Collaborator

You mean this one?

Screen Shot 2020-06-05 at 8 42 41 AM

It looks kind of old to me, but well, I have probably seen it too many times in the last 6 years :P. Regarding the discussion in the other thread (#210), we may have to figure out whether we want to convey overfitting & out-of-training-range issues in the same figure, or whether we want to have two separate illustrations. Let's resolve this discussion in the other thread first and then revisit this one.

Spontaneously, I would suggest using the other figure as illustration of the out-of-range issue, and this one (modified with XKCD style) can be used as illustration of just overfitting.

@Benjamin-Lee

Copy link
Copy Markdown
Owner Author

Just pushed a new version that only shows lack of generalization to out of training set data, which fits with the example in the text of the chest x-rays from different hospitals breaking the DL model.

@Benjamin-Lee

Copy link
Copy Markdown
Owner Author

image

It also features fewer points than before which prevents the peaks of the polynomial from going out of the y range.

@Benjamin-Lee Benjamin-Lee mentioned this pull request Sep 29, 2020
10 tasks done
@Benjamin-Lee
Benjamin-Lee requested a review from pstew October 1, 2020 01:34
@Benjamin-Lee
Benjamin-Lee merged commit 15bdeae into master Oct 1, 2020
@Benjamin-Lee
Benjamin-Lee deleted the new-overfitting-figure branch October 1, 2020 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Should we change the overfitting figure?

5 participants