5
$\begingroup$

I'm worrying that my neural network has become too complex. I don't want to end up with half of the neural network doing nothing but just take up space and resources.

So, what are the techniques for detecting and preventing overfitting, to avoid such problems?

$\endgroup$
1
  • $\begingroup$ This question seems to be a superset of this. $\endgroup$
    – nbro
    Commented Dec 25, 2021 at 18:23

1 Answer 1

4
$\begingroup$
  1. Usually you keep track of training loss and validation loss and apply proper regularization technique (such as L1, L2, dropout, DropConnect, etc.).

  2. The more interesting technique is to observe your validation loss with respect to the number of parameters in the network (often controlled by the number of layers/feature maps). If the validation starts dropping with raising your model's complexity, then your optimization might be bad or simply the model remembers all of the training samples and overfits badly.

$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .