Answers.Body: <p>There are several pitfalls or issues that require your attention when or before training or using neural networks. I will list some of them below, along with some questions you need to ask yourself before or while using neural networks.</p>
  
  <ul>
  <li><p>Over-fitting and under-fitting problems, and the related generalization problem. Is your neural network generalizing to unseen data?</p></li>
  <li><p>Availability of training and test data</p>
  
  <ul>
  <li>Do you have enough data to train your neural network so that it generalizes well (i.e. it neither over-fits or under-fits)?</li>
  <li>Is your test dataset big enough to assess the generalization ability of your neural network?</li>
  <li>Is your data representative of the problem you are trying to solve?</li>
  <li>Do you need to augment or normalize your data?</li>
  <li>Do you need to use cross-validation?</li>
  <li>Is your data independent and identically distributed (i.i.d.)? If your data is correlated, training could be unstable. Shuffling your data may be a feasible solution when your data is initially correlated.</li>
  </ul></li>
  <li><p>Do you have enough computational resources (i.e. GPUs) for training and testing your neural network?</p></li>
  <li><p>Are you solving a regression or classification problem? The type of the outputs and the loss function will typically be different in both cases</p></li>
  <li><p>Do you need explainability and transparency? If yes, neural networks aren't probably the best model to use, as the connections between the neurons are quite obscure and don't really represent any meaningful interaction. That's why neural networks are called black-boxes.</p></li>
  <li><p>Do you need uncertainty estimation? If yes, you may want to try Bayesian neural networks. Typical neural networks are not very appropriate for uncertainty estimation!</p></li>
  <li><p>If you use a neural network for function approximation (e.g. in reinforcement learning), you will lose certain convergence guarantees.</p></li>
  </ul>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-05-04T20:42:36.983Z
Answers.LastActivityDate: 2020-05-04T20:49:06.963Z
Answers.LastEditDate: 2020-05-04T20:49:06.963Z
Answers.UserDisplayName: nbro
Answers.Body: <p>I can't say that it is the biggest problem of deep neural network but it is one of the big problem with deep neural network.</p>
  
  <p>Other issue which happens a lot is overfitting on the training data hence network behaves badly on test set which can be solved using regression. So you have to make sure that network is generalised enough.</p>
  
  <p>If the network is trying to have a classification then if the outputs are mutually inclusive or exclusive, depending upon that you define your loss function which will be categorical cross entropy for mutually inclusive output and binary cross entropy for mutually exclusive.</p>
  
  <p>Other thing which I can think is about <code>all zero initialization.</code> Initializing the network weights as zero can lead to same gradient computation and due to which network does not learn most of the times.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-05-04T20:58:16.557Z
Answers.Text: The question wasn't about what causes the VGP or how to solve it. So, I suggest you edit your answer so that it mainly addresses the main question.  Also, I suggest you do not provide a link to external resources. In your words, describe the issues that are mentioned in the linked article!
Answers.UserDisplayName: nbro
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-05-04T15:45:18.797Z
Answers.LastActivityDate: 2020-05-04T21:14:44.880Z
Answers.LastEditDate: 2020-05-04T21:14:44.880Z
Answers.UserDisplayName: overflow95
Body: <p>Apart from the vanishing or exploding gradient problems, what are other problems or pitfalls that we could face when training neural networks?</p>
  
Tags: <neural-networks><vanishing-gradient-problem><exploding-gradient-problem>
Title: What are the common pitfalls that we could face when training neural networks?
UserDisplayName: pjoter
ThreadText: # What are the common pitfalls that we could face when training neural networks?
  
  (Asked by: username_0 on 2020-05-04)
  
  Apart from the vanishing or exploding gradient problems, what are other problems or pitfalls that we could face when training neural networks?
  
  **Tags:** neural-networks, vanishing-gradient-problem, exploding-gradient-problem
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2020-05-04. Score: 2
  
  There are several pitfalls or issues that require your attention when or before training or using neural networks. I will list some of them below, along with some questions you need to ask yourself before or while using neural networks.
  
  * Over-fitting and under-fitting problems, and the related generalization problem. Is your neural network generalizing to unseen data?
  * Availability of training and test data
  
    + Do you have enough data to train your neural network so that it generalizes well (i.e. it neither over-fits or under-fits)?
    + Is your test dataset big enough to assess the generalization ability of your neural network?
    + Is your data representative of the problem you are trying to solve?
    + Do you need to augment or normalize your data?
    + Do you need to use cross-validation?
    + Is your data independent and identically distributed (i.i.d.)? If your data is correlated, training could be unstable. Shuffling your data may be a feasible solution when your data is initially correlated.
  * Do you have enough computational resources (i.e. GPUs) for training and testing your neural network?
  * Are you solving a regression or classification problem? The type of the outputs and the loss function will typically be different in both cases
  * Do you need explainability and transparency? If yes, neural networks aren't probably the best model to use, as the connections between the neurons are quite obscure and don't really represent any meaningful interaction. That's why neural networks are called black-boxes.
  * Do you need uncertainty estimation? If yes, you may want to try Bayesian neural networks. Typical neural networks are not very appropriate for uncertainty estimation!
  * If you use a neural network for function approximation (e.g. in reinforcement learning), you will lose certain convergence guarantees.
  
  
  ---
  
  ### Answer by username_2 on 2020-05-04. Score: 2
  
  I can't say that it is the biggest problem of deep neural network but it is one of the big problem with deep neural network.
  
  Other issue which happens a lot is overfitting on the training data hence network behaves badly on test set which can be solved using regression. So you have to make sure that network is generalised enough.
  
  If the network is trying to have a classification then if the outputs are mutually inclusive or exclusive, depending upon that you define your loss function which will be categorical cross entropy for mutually inclusive output and binary cross entropy for mutually exclusive.
  
  Other thing which I can think is about `all zero initialization.` Initializing the network weights as zero can lead to same gradient computation and due to which network does not learn most of the times.
  
  > **Comments:**
  > **username_1**: The question wasn't about what causes the VGP or how to solve it. So, I suggest you edit your answer so that it mainly addresses the main question.  Also, I suggest you do not provide a link to external resources. In your words, describe the issues that are mentioned in the linked article!  
  
  ---
  
  