Data Science 101: Preventing Overfitting in Neural Networks
One of the major issues with artificial neural networks is that the models are quite complicated. For example, let's consider a neural network that's pulling data from an image from the MNIST database (28 by 28 pixels), feeds into two hidden layers with 30 neurons, and finally reaches a soft-max layer of 10 neurons. The total number of parameters in the network is nearly 25,000. This can be quite problematic, and to understand why, let's take a look at the example data in the figure below. Using the data, we train two different models - a linear model and a degree 12 polynomial.
Apr-29-2017, 16:27:40 GMT
- Technology: