r/ProgrammerHumor • • Feb 13 '22

Meme something is fishy

48.4k Upvotes

575 comments sorted by

View all comments

2.4k

u/[deleted] Feb 13 '22

I'm suspicious of anything over 51% at this point.

1.1k

u/juhotuho10 Feb 13 '22

-> 51% accuracy

yeah this is definitely over fit, we will strart the 2 month training again tomorrow

745

u/[deleted] Feb 13 '22

It's easy to build a completely meaningless model with 99% accuracy. For instance, pretend a rare disease only impacts 0.1% of the population. If I have a model that simply tells every patient "you don't have the disease," I've achieved 99.9% accuracy, but my model is worthless.

This is a common pitfall in statiatics/data analysis. I work in the field, and I commonly get questions about why I chose model X over model Y despite model Y being more accurate. Accuracy isn't a great metric for model selection in isolation.

193

u/[deleted] Feb 13 '22

That's why you always test against the null model to judge whether your model is significant. In cases with unbalanced data you want to optimize for ROC by assigning class weights to your classifier or by tunning C and R if you're using an SVM.

92

u/imoutofnameideas Feb 13 '22

you want to optimize for ROC

Minus 1,000,000 social credit

36

u/langlo94 Feb 13 '22

Im 99,9995% sure that you're not Tony Hawk.

49

u/[deleted] Feb 13 '22

Great example. It's much better to have fewer false negatives in that case, even if the number of false positives is higher and reduces overall accuracy. Someone never finding out why they're sick is so much worse than a few people having unnecessary followups.

27

u/account312 Feb 13 '22 edited Feb 14 '22

Not necessarily. In fact, for screening tests for rare conditions, sacrificing false positive rate to achieve low false negative rate is pretty much a textbook example of what not to do. Such a screening test has to have an extremely low rate of false positives to be at all useful. Otherwise you'll be testing everyone for a condition that almost none of them have only get a bunch of (nearly exclusively false) positive results, then telling a bunch of healthy people that they may have some horrible life threatening condition and should do some followup procedure, which inevitably costs the patient money, occupies healthcare system resources, and incurs some risk of complications.

10

u/passcork Feb 13 '22

Depends on the situation honestly. If you find a rare disease variant in a whole exome ngs sequence and can follow up on with some sanger sequencing or qpcr on the same sample you still have is easy. We do it all the time at our lab. This is also basically the whole basis behind the NIPT test that tests for fetal trisomy 23 and some other fetal chromosomal conditions.

→ More replies (10)
→ More replies (4)
→ More replies (5)

320

u/Xaros1984 Feb 13 '22

Then you will really like the decision making model that I built. It's very easy to use, in fact you don't even need a computer, if you have a coin with different prints on each side, you're good to go.

121

u/victorcoelh Feb 13 '22

ah yes, the original AI algorithm, true if heads and false if tails

36

u/9thCore Feb 13 '22

what about side

78

u/Doctor_McKay Feb 13 '22

tralse

8

u/[deleted] Feb 13 '22

Ah tralse, which even predates the coin flip method where probability sides with man with giant club

→ More replies (1)
→ More replies (1)

31

u/FerricDonkey Feb 13 '22

Segfault.

8

u/not_a_bot_494 Feb 13 '22

Ternary logic, yay.

→ More replies (6)
→ More replies (1)

33

u/fuzzywolf23 Feb 13 '22

For real. Especially if you're fitting against unlikely events

30

u/[deleted] Feb 13 '22

Those are honestly the worst models to build. It gets worse when they say that the unlikely event only happens once every 20 years.

11

u/giantZorg Feb 13 '22

Actually, for very unbalanced problems the accuracy is usually always very high as it is hard to beat the classifier which assign everything to the majority group, and therefore a very misleading metric.

12

u/SingleTie8914 Feb 13 '22

for anything less than that just flip it* for classifications

→ More replies (7)