r/datascience • • Nov 23 '19

How much real is it?? šŸ˜‚šŸ˜…

Post image
1.3k Upvotes

50 comments sorted by

65

u/ragatmi Nov 24 '19

Source: xkcd. https://xkcd.com/1838/

OP: Please add source.

6

u/themthatwas Nov 24 '19

Let's be fair, since there's even a xkcd style for matplotlib, I think pretty much everyone that's come to this thread knows the picture is from xkcd. That's not to say you shouldn't include source, just it's understandable that one might forget. It's like talking about data science to someone that is interested in it and not explaining what regression is - generally people already know.

9

u/ragatmi Nov 24 '19

The author wants attribution anytime his image is cited.

From xkcd website itself (https://xkcd.com/license.html):

This work is licensed under a Creative Commons Attribution-NonCommercial 2.5 License.

This means that you are free to copy and reuse any of my drawings (noncommercially) as long as you tell people where they're from.

That is, you don't need my permission to post these pictures on your website (and hotlinking with <img> is fine); just include a link back to this page. Or you can make Livejournal icons from them, but -- if possible -- put xkcd.com in the comment field. You can use them freely (with some kind of link) in not-for-profit publications, and I'm also okay with people reprinting occasional comics (with clear attribution) in publications like books, blogs, newsletters, and presentations. If you're not sure whether your use is noncommercial, feel free to email me and ask (if you're not sure, it's probably okay).

1

u/themthatwas Nov 24 '19

Right of course you should source... but I was just saying that just seeing the art style is enough to understand that it's xkcd, for most people the source being explicitly stated is unnecessary because they already know it's xkcd.

-50

u/Osiris_R Nov 24 '19

I forgot it, I just thought that the joke was good and I decided to post it, but next time I'll do it šŸ‘

1

u/patrickSwayzeNU MS | Data Scientist | Healthcare Nov 24 '19

You can still edit your post.

1

u/Osiris_R Nov 24 '19

The post don't provide me the edit option. I tried...

•

u/patrickSwayzeNU MS | Data Scientist | Healthcare Nov 24 '19

OC: https://xkcd.com/1838/

Keep in mind ā€œwe don’t do memes hereā€

This had a good response before we saw it so it can stay (we aren’t monsters)

1

u/Osiris_R Nov 25 '19

I'll keep I'm mind for the future. It could be a good idea to add a "no memes" policy to avoid things like this again.

213

u/[deleted] Nov 24 '19

the technical term for stirring is "hyper-parameter optimization"

25

u/maxisrichtofen Nov 24 '19

In other words

A giant frickin For loop

29

u/UnrequitedReason Nov 24 '19

Grid search!

4

u/thatsmesasha Nov 24 '19

Intuition search!

5

u/ai_math Nov 25 '19

Graduate student descent.

2

u/and1984 Mar 01 '20

Graduate student descent into madness

9

u/Radiatin Nov 24 '19 edited Nov 24 '19

Hyper-parameters are a trap.

You haven’t scienced properly until you’ve done a truly random search.

.

3

u/Razorwindsg Nov 24 '19

Curve fitting

196

u/[deleted] Nov 24 '19 edited Nov 24 '19

There’s an old quote that applies - ā€œIf you torture the data long enough, it will confessā€, warned Nobel Prize winning economist, Ronald H Coase

Edit - name

100

u/[deleted] Nov 24 '19

The actual quote is ā€œIf you torture data long enough, it will confess to anythingā€.

3

u/b14cksh4d0w369 Nov 24 '19

What does it mean?

47

u/TracerBullet2016 Nov 24 '19

It’s a sight variation of the quote ā€œIf you torture a man long enough, he will confess to anythingā€, meaning that torture does not work because the person being tortured will say whatever they can to make the pain stop, true or not.

A similar principle is being applied to data: if you manipulate it enough, it will eventually tell you what you want to hear, even if it’s not correct/true/accurate.

8

u/b14cksh4d0w369 Nov 24 '19

Whoa no it makes sense thanks.

2

u/RoyalJackalSib Nov 27 '19

I believe that’s called p–hacking.

9

u/krandaddy Nov 24 '19

I posted this all around my department like a week ago.

0

u/[deleted] Nov 24 '19

[deleted]

1

u/[deleted] Nov 24 '19

Yeah sorry phone autocorrected-tho a dirty squeegee might be used to torture some data :-p

72

u/AltPapaya Nov 24 '19

ā—‰ I'm in this photo and I don't like it.

133

u/[deleted] Nov 23 '19 edited Nov 23 '19

It exactly captures the difference between good ol' statistical modeling and machine learning.

The nature of computational thinking is that you invent a way to check the result and then shake the box until the result looks approximately right and there it is. Because implementing box shaking is easy and you can just shake the box really fast, it's a valid approach to solve problems.

How to check the result is the complex part with no "one right way" to do it and the reason you get paid 120k. It's also use-case specific due to "no free lunch" theorem.

So the whole focus on ML research is more effective and different box shaking mechanisms and what is left for the practitioner is to figure out how to pour things in the box and how to interpret what comes out.

In contrast, the field of statistics is focused on carefully crafted recipes which is pretty much a manual process and doesn't scale well when you need a new recipe every hour to keep up with the newest trends of millenials but works fairly well when whatever you're trying to model is not too complicated and doesn't change regularly.

8

u/jackspicerii Nov 24 '19

This is actually a very good answer.

2

u/coffeecoffeecoffeee MS | Data Scientist Nov 24 '19

I really like this answer.

0

u/[deleted] Nov 24 '19

[deleted]

11

u/Cazzah Nov 24 '19

You know that training data and test data is a thing in statistic model fitting and regression too right?

0

u/[deleted] Nov 24 '19

[deleted]

5

u/poopyheadthrowaway Nov 24 '19

You still need to control for overfitting when building generative models. If your generative model doesn't generalize to other datasets well, it's useless at explaining anything.

13

u/neurone214 Nov 24 '19

ā€œBig pile of linear algebraā€. I literally LOL’d

8

u/triavatar Nov 24 '19

Seriously how I feel about all the winners on kaggle.

1

u/genofon Nov 24 '19

I would say almost all Kaggle

4

u/[deleted] Nov 24 '19

In Deep Learning, yes, but if you want to do something more interpretable then no

0

u/[deleted] Nov 24 '19

[deleted]

6

u/maizeq Nov 24 '19

Interpretability isn't about the level of maths. It is about being able to see how changes in your input features relates to changes in your predictions. It just so happens that this is easier in low variance linear models than high variance non-linear models.

2

u/tangomonstor Nov 24 '19

I'm grateful that my managers are technical. They don't encourage this kind of "data science"

1

u/[deleted] Nov 24 '19

My direct supervisor is not only non-technical but I feel like he actively tries to not learn even the very basics. Makes communication rather difficult. I overheard him explaining my work to his boss and I'm fairly certain if I could explain it to the director directly I could save my firm hundreds of man hours.

But alas I cannot because irrelevant office politics has a greater effect on my career than my work šŸ™„

3

u/diggitydata Nov 24 '19

Can it be my turn to post this next week?

1

u/twi3k Nov 24 '19

As long as your way to validate the answers is correct you can stir as much as you want.

0

u/[deleted] Nov 24 '19

[deleted]

2

u/twi3k Nov 24 '19

If there is a way in which you can overfit over your validation, that means that your way to validate the model (ie. check how well your model generalizes) is flawed and therefore my comment doesn't apply.

3

u/patrickSwayzeNU MS | Data Scientist | Healthcare Nov 24 '19

Yes. It’s the reason nested cross validation exists

1

u/twi3k Nov 25 '19

Precisely!!! A good way to validate the model is as important as the model itself.

0

u/[deleted] Nov 24 '19

[deleted]

1

u/twi3k Nov 24 '19

Then, you would need almost infinite amount of time to find the hyperparameters that cause this "overfitting' on the validation.

0

u/[deleted] Nov 24 '19

[deleted]

1

u/twi3k Nov 24 '19 edited Nov 24 '19

When I use my real-life data (biological data) I stir until the output looks ok and it seems that the model generalizes (Which is what the cartoon says). As soon as I encounter new samples that suggest me that my model was overfitted, I create a new one including the new samples. What do you do with your real-life data? What kind of data is it? Do you do any heperparameter search at all?

1

u/[deleted] Nov 24 '19

As soon as I encounter new samples that suggest me that my model was overfitted, I create a new one including the new samples.

I'm not the guy your arguing with but I'm curious what kind of metrics and processes you have to check for overfitting on new samples? I have a use case that essentially can't be generalized due to the nature of the data and have a solution similar to yours but I'm trying to come up with ways to automate the training process.

1

u/twi3k Nov 24 '19 edited Nov 24 '19

The other guy said that if you look enough you would find a model generalizing bad but performing good in the validation. He literally said "you will end up overfitting on your validation set" (sic). Despite I think it is at least misleading to say that you can overfit on your validation set I used his words to explain how I do my analysis.

Regarding your question.... What I am basically doing right now is to create a classifier that predicts microscopy images. I validate some of them experimentally to see how well the model generalizes. I use F1 and accuracy as metrics. As a tip, the more idependent the validation set is from the training set are, the better

1

u/[deleted] Nov 24 '19 edited Nov 24 '19

All of my observations are manually curated daily and will be for the foreseeable future using a computer assisted process I developed, but I'm a bit concerned about just setting up a training schedule and forgetting it. Certain types of misclassifications cause our curators life to be difficult so I want to build the model as robust as possible. Our curators are skilled professionals so misclassifications are expensive when they have to spend time fixing them.

It's a NLP problem where most observations use very similar similar language so I'm worried about overtraining my model into oblivion. Specific words and phrases could cause it to predict certain classes with weights disproportionately strong compared to other features if I just blindly feed the model new data.

Also I come from an unrelated engineering background so I feel like just feeding it new data could cause problems I don't even know about.

1

u/LLLMMMa Feb 22 '20

That’s called the real world

0

u/[deleted] Nov 24 '19

[deleted]

1

u/patrickSwayzeNU MS | Data Scientist | Healthcare Nov 24 '19

Depends on where you work.