Answers.Body: <p>This question is very broad, so let me attempt to answer it using my own background in time series analysis.</p>
  
  <p>As an example, why would I continue using ARIMA to forecast a time series? Why not simply use an LSTM model by default, since this is a type of recurrent neural network that takes time-related dependencies into account?</p>
  
  <p>Well, an LSTM model is not good at modelling all time series. It is effective when it comes to modelling volatile data, but ARIMA still outperforms when it comes to forecasting trend data - LSTM tends to overemphasise volatile patterns in future predictions.</p>
  
  <p>Let's take an example of forecasting weekly hotel cancellations by potential customers. The second time series shows much more variability in the number of weekly hotel cancellations than the first:</p>
  
  <p><strong>H1 Time Series</strong></p>
  
  <p><a href="https://i.sstatic.net/pY5xJ.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/pY5xJ.png" alt="h1 time series"></a></p>
  
  <p><strong>H2 Time Series</strong></p>
  
  <p><a href="https://i.sstatic.net/Iz7Go.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/Iz7Go.png" alt="h2 time series"></a></p>
  
  <p>Based on <strong>MDA</strong> (mean directional accuracy), <strong>RMSE</strong> (root mean squared error), and <strong>MFE</strong> (mean forecast error) - ARIMA demonstrates superior performance overall for the first time series, while LSTM shows better performance for the second:</p>
  
  <p><a href="https://i.sstatic.net/jiuJV.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/jiuJV.png" alt="performance"></a></p>
  
  <p>On the basis of this example - which is quite specific given the broadness of your question - deep learning techniques are not always used because simpler models can perform better under certain circumstances. It is all about understanding the data you are working with and then choosing the model - not the other way around.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-01-15T13:23:40.073Z
Answers.LastActivityDate: 2020-03-02T16:55:09.053Z
Answers.LastEditDate: 2020-03-02T16:55:09.053Z
Answers.UserDisplayName: Michael Grogan
Answers.Body: <p>SVM is generally considered objectively better than deep learning for standard machine learning tasks.</p>
  
  <p>SVM or decision trees.</p>
  
  <p>Deep Learning is beneficial when there is structure in the data that can't be easily represented by some type of kernel.  </p>
  
  <p>I'm actually really interested in why decision trees haven't been used for computer vision in conjunction with deep learning feature extraction. </p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-03-02T21:36:40.007Z
Answers.LastActivityDate: 2020-03-02T21:36:40.007Z
Answers.UserDisplayName: FourierFlux
Answers.Body: <blockquote>
    <p>Why are still traditional machine learning (ML) models used over neural networks if neural networks seem to be superior to traditional ML models?</p>
  </blockquote>
  
  <p>Of course, the model that achieves state-of-the-art performance depends on the problem, available datasets, etc., so a comprehensive comparison between traditional ML models and deep neural networks is not appropriate for this website, because it requires a lot of time and space. However, there are certain disadvantages of deep neural networks compared to traditional machine learning models, such as k-nearest neighbors, linear regression, logistic regression, naive Bayes, Gaussian processes, support vector machines, hidden Markov models and decision trees.</p>
  
  <ul>
  <li><p>Often, traditional ML models are conceptually simpler (for example, k-NN or linear regression are much simpler than deep neural networks, such as LSTMs).</p></li>
  <li><p>Personally, I've noticed that traditional ML models can be used more easily compared to deep neural networks, given the existence of libraries, like scikit-learn, which really have a simple and intuitive API (even though you apparently do not agree with this).</p></li>
  <li><p>Deep neural networks usually require more data than traditional ML models in order not to overfit. Empirically, I've once observed that certain traditional ML models can achieve comparable performance to deep neural networks in the case of small training datasets.</p></li>
  <li><p>Even though there's already a new and promising area of study called Bayesian deep learning, most deep neural networks do not really provide any uncertainty guarantees, they only provide you a point estimate. This is a big limitation, because, in areas like healthcare, uncertainty measures are required. In those cases, Gaussian processes may be more appropriate.</p></li>
  </ul>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-01-14T22:46:23.693Z
Answers.LastActivityDate: 2020-01-14T22:52:22.413Z
Answers.LastEditDate: 2020-01-14T22:52:22.413Z
Answers.UserDisplayName: nbro
Body: <p>I'm still on my first steps in the Data Science field. I played with some DL frameworks, like TensorFlow (pure) and Keras (on top) before, and know a little bit of some "classic machine learning" algorithms like decision trees, k-nearest neighbors, etc.</p>
  
  <p>For example, image classification problems can be solved with deep learning, but some people also use the SVM.</p>
  
  <p>Why are traditional ML models still used over neural networks, if neural networks seem to be superior to traditional ML models? Keras is rather simple to use, so why don't people just use deep neural networks with Keras? What are the pros and cons of each approach (considering the same problem)?</p>
  
Tags: <machine-learning><deep-learning><keras><comparison>
Title: Why are traditional ML models still used over deep neural networks?
UserDisplayName: Douglas Ferreira
ThreadText: # Why are traditional ML models still used over deep neural networks?
  
  (Asked by: username_0 on 2020-01-14)
  
  I'm still on my first steps in the Data Science field. I played with some DL frameworks, like TensorFlow (pure) and Keras (on top) before, and know a little bit of some "classic machine learning" algorithms like decision trees, k-nearest neighbors, etc.
  
  For example, image classification problems can be solved with deep learning, but some people also use the SVM.
  
  Why are traditional ML models still used over neural networks, if neural networks seem to be superior to traditional ML models? Keras is rather simple to use, so why don't people just use deep neural networks with Keras? What are the pros and cons of each approach (considering the same problem)?
  
  **Tags:** machine-learning, deep-learning, keras, comparison
  
  ---
  
  ## 3 answers
  
  ### Answer by username_3 on 2020-01-14. Score: 4 | Accepted answer
  
  > Why are still traditional machine learning (ML) models used over neural networks if neural networks seem to be superior to traditional ML models?
  
  Of course, the model that achieves state-of-the-art performance depends on the problem, available datasets, etc., so a comprehensive comparison between traditional ML models and deep neural networks is not appropriate for this website, because it requires a lot of time and space. However, there are certain disadvantages of deep neural networks compared to traditional machine learning models, such as k-nearest neighbors, linear regression, logistic regression, naive Bayes, Gaussian processes, support vector machines, hidden Markov models and decision trees.
  
  * Often, traditional ML models are conceptually simpler (for example, k-NN or linear regression are much simpler than deep neural networks, such as LSTMs).
  * Personally, I've noticed that traditional ML models can be used more easily compared to deep neural networks, given the existence of libraries, like scikit-learn, which really have a simple and intuitive API (even though you apparently do not agree with this).
  * Deep neural networks usually require more data than traditional ML models in order not to overfit. Empirically, I've once observed that certain traditional ML models can achieve comparable performance to deep neural networks in the case of small training datasets.
  * Even though there's already a new and promising area of study called Bayesian deep learning, most deep neural networks do not really provide any uncertainty guarantees, they only provide you a point estimate. This is a big limitation, because, in areas like healthcare, uncertainty measures are required. In those cases, Gaussian processes may be more appropriate.
  
  
  ---
  
  ### Answer by username_1 on 2020-01-15. Score: 3
  
  This question is very broad, so let me attempt to answer it using my own background in time series analysis.
  
  As an example, why would I continue using ARIMA to forecast a time series? Why not simply use an LSTM model by default, since this is a type of recurrent neural network that takes time-related dependencies into account?
  
  Well, an LSTM model is not good at modelling all time series. It is effective when it comes to modelling volatile data, but ARIMA still outperforms when it comes to forecasting trend data - LSTM tends to overemphasise volatile patterns in future predictions.
  
  Let's take an example of forecasting weekly hotel cancellations by potential customers. The second time series shows much more variability in the number of weekly hotel cancellations than the first:
  
  **H1 Time Series**
  
  [![h1 time series](https://i.sstatic.net/pY5xJ.png)](https://i.sstatic.net/pY5xJ.png)
  
  **H2 Time Series**
  
  [![h2 time series](https://i.sstatic.net/Iz7Go.png)](https://i.sstatic.net/Iz7Go.png)
  
  Based on **MDA** (mean directional accuracy), **RMSE** (root mean squared error), and **MFE** (mean forecast error) - ARIMA demonstrates superior performance overall for the first time series, while LSTM shows better performance for the second:
  
  [![performance](https://i.sstatic.net/jiuJV.png)](https://i.sstatic.net/jiuJV.png)
  
  On the basis of this example - which is quite specific given the broadness of your question - deep learning techniques are not always used because simpler models can perform better under certain circumstances. It is all about understanding the data you are working with and then choosing the model - not the other way around.
  
  
  ---
  
  ### Answer by username_2 on 2020-03-02. Score: -1
  
  SVM is generally considered objectively better than deep learning for standard machine learning tasks.
  
  SVM or decision trees.
  
  Deep Learning is beneficial when there is structure in the data that can't be easily represented by some type of kernel.
  
  I'm actually really interested in why decision trees haven't been used for computer vision in conjunction with deep learning feature extraction.
  
  
  ---
  
  