I am new into neural networks, I want to use K-fold cross-validation to train my neural network. I want to use 5 folds 50 epochs and a batch size of 64 I found a function in scikit for k-fold cross validation
model_selection.cross_val_score(model_kfold, x_train, y_train, cv=5)
and my code without cross validation is
history = alexNet_model.fit(x_train, y_train, batch_size=batch_size, epochs=epochs, verbose=1,validation_data=(x_validation, y_validation))
I don't know how to implement this with batch size and epochs in python using keras and scikit. any idea?