Relative Content

Tag Archive for pythondeep-learningconv-neural-network

How to prevent overfitting in Deep learning?

I am trying to build a CNN model in which it would recognize whether it is my face or not my face for educational purposes. However, as soon as I ran model.fit() and saw the training process, I immidiately realized that the model is suffering from a severe overfitting issue (in this case accuracy was close to 1 but val_acc remained at 0.4849). I dont know whether it is my mistake in choosing the right learning rate, epochs and batch size, or the model is too complex, or i just dont have enough data.