r/learnmachinelearning • u/TheCodingBug • Jan 19 '21
Discussion Not every problem needs Deep Learning. But how to be sure when to use traditional machine learning algorithms and when to switch to the deep learning side?
205
Jan 19 '21
Gotta get that extra 0.5% correct on the Titanic Disaster
19
Jan 20 '21
To OP’s question- if he/she has a decent amount of domain knowledge, I’d almost always recommend Bayesian ML.
It’s so underrepresented in today’s DL hype train
8
16
u/CartographerSeth Jan 20 '21 edited Jan 20 '21
A useful rule of thumb: if the data is tabular (spreadsheets, pandas dataframes) use methods other than deep learning. If the data isn’t tabular (text, images, video, graphs, etc.), then deep learning may be a good candidate.
Edit: this is because the main purpose of most DL models is to find a good vector representation of something that isn’t intuitive for a human to do, such as an image, or a sentence. The last layer of a deep learning model is usually just performing linear or logistic regression on the newly learned vector representation. However, if data is tabular, each row is essentially a vector representation that is already pretty good, so not a huge need for a fancy shmancy DL model, just go straight to other models w/ perhaps some data preprocessing.
8
Jan 20 '21
The last layer of a deep learning model is usually just performing linear or logistic regression on the newly learned vector representation.
This is such a good sentence to clear up a lot of confusion people have with deep learning, the hidden layers (convolutional, feed-fowards, etc) try to bring the input data to as good a representation as possible for the last layer which is almost always a basic layer that does regression.
2
1
u/JorgeMiralles Mar 20 '21
You can also use ML with text, for example the Naïve Bayes Classifier is used to do SPAM filtering, text sentiment analysis, document classification, etc.
12
9
u/tuvar_hiede Jan 19 '21
Damn dude, where can I get a sword like that?
I'm by no means an expert, but since this is a learning sub reddit I'll throw this out there. AI/ML/DL/Tomorrows Buzz Word are being throw around like candy at the Macy's Thanksgiving Parade (Just not in 2020). If we are honest, here in I.T. we kind of like to complicate things especially when it comes to the flavor of the month.
2
7
Jan 19 '21
To me, this always boils down to a cost-benefit analysis of additional model complexity. Some software generates millions (sometimes billions) of additional revenue for each .1% gain, whereas others can actually generate no additional revenue at all.
Lots of projects in the financial industry don't actually care how good a model is, only that it's statistically defensible. Simple regressions and functionally useless simulation models still get used to price crazy expensive options contracts just because there's no point to additional complexity.
1
u/parsethepeas Jan 20 '21
Absolutely, and explainability and transparency are closed linked to this. If a model makes a bad decision about whether someone is credit worthy or committing fraud, the bank needs to be able to provide transparency to the regulators about what went into that decision.
5
u/sk2977 Jan 19 '21
You can replace “deep learning” with quite a few SaaS tools these days, in the context of this image 😅
2
Jan 20 '21
A good rule of thumb: Tabular data = non-deep learning. Unstructured data (images, text) = deep learning.
Edit: you could encode categorical variables of tabular data in embeddings, which use neural networks.
3
3
u/Quantum_Whip Jan 19 '21
I'm quite happy with my deep learning calculator.
1 + 1 = 1.99999
(only a sith deals in absolutes)
2
1
1
1
u/EarlyDead Jan 20 '21
Im new to the field (coming from bioinformatics).
In my limited experience, classical ML beats deep learning in analyzing "tabular" data, at least without a massive time investment.
0
Jan 19 '21
[deleted]
2
Jan 20 '21
If it is terabytes of data that's in a simple format then I don't see why using DL would be better, more data does not mean complex data.
You can sample the dataset, train an adaboost or xgboost model with a fraction of the dataset, then test it on an even bigger test set from the dataset.
1
u/msg45f Jan 20 '21
I think it's valid if time-to-market is a big deal for the company. A good EDA is going to take longer than just throwing all the data in a roughly appropriate DL model and training it until you get some decent results. I don't feel like that's as high of a priority in the data science field as it is in more typical development, but it's certainly possible.
105
u/bananapeeler5 Jan 19 '21
Is your domain knowledge stronger or your data? A lot of data enables deep learning. A lot of domain knowledge will help to outperform deep learning using e.g. feature engineering. Holds true especially in cases that require significant generalization.
In standard vision tasks, a deep learning component will probably help you pretty fast using transfer learning.
What are you more experienced with? This is always an important question when dealing with tech. The better tool might be worse if you have to learn to use it first.