Generalization of Deep Neural Networks for EEG Data Analysis