3
$\begingroup$

I am using Keras to create a CNN model, and I would to use K-fold cross-validation to train the dataset.

The dataset contains images and I am using flow_from_directory function.

Do you have any idea how to use K-fold cross-validation in Keras to create a CNN model??

$\endgroup$
  • $\begingroup$ Very expensive, this is why we use a validation set. $\endgroup$ – Bashar Haddad Sep 24 '18 at 6:33
  • $\begingroup$ Do you mean Cross-validation method is very expensive? $\endgroup$ – N.IT Sep 24 '18 at 12:09
  • $\begingroup$ Yes cross validation is considered expensive for dnn , because you have to do the training , testing k times $\endgroup$ – Bashar Haddad Sep 24 '18 at 14:52
  • $\begingroup$ I want to do cross validation, even if it is expensive $\endgroup$ – N.IT Oct 2 '18 at 5:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.