kfoldAndGridSearch using kfold cross validation and grid search to determine best parameters in the previos deep learning model.