ā¢
u/patrickSwayzeNU MS | Data Scientist | Healthcare Nov 24 '19
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
Nov 24 '19
the technical term for stirring is "hyper-parameter optimization"
25
29
u/UnrequitedReason Nov 24 '19
Grid search!
4
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
196
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
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
2
9
0
Nov 24 '19
[deleted]
1
Nov 24 '19
Yeah sorry phone autocorrected-tho a dirty squeegee might be used to torture some data :-p
72
133
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
2
0
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
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
8
4
Nov 24 '19
In Deep Learning, yes, but if you want to do something more interpretable then no
0
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
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
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
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
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
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
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
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
0
65
u/ragatmi Nov 24 '19
Source: xkcd. https://xkcd.com/1838/
OP: Please add source.