Currently, I have trained a Mask-RCNN model on a dataset(train and Val)and chosen the final model by considering the minimum validation loss. Now I need to evaluate the model performance. So to do that I need to know how to perform k-fold cross-validation. According to my knowledge, I know during the k-fold cross validation if I chose the k as 10 then there will be (k-1)train folds and 1 test fold during an iteration. Then I read that we need to take the average value of all iterations while calculating the evaluation metrics like map(Mean average precision), recall, and precision.

I am having the following doubts.

1) if I am performing the k-fold cross validation should I stick with the same parameters that I use during the training as the number of epochs, steps per epoch, etc. Let's say I got the final model during the training at the 10th epoch so should I use this as the number of epoch counts during the k-fold validation?.

2) When it comes to the calculation of validation metrics, should I need to calculate the above mentioned metrics at the end of each iteration which is at the 10th epoch and take the average of them as the final value for each metric(In here since I have chosen the epoch count as 10, an iteration will be over after 10 epochs)?

3) So if the epoch count is 10 does the whole process take 50 epochs to complete(Explanation:1 iteration = 10 epochs ,5 iterations = 50 epochs)?

4)Then in a case of epoch count became 100 (If the final model got during the 100th epoch) , does the process take 500 epochs to complete(Explanation:1 iteration = 100 epochs,5 iterations = 500 epochs)?

More Hasindu Yahamapth Dias Dahanayake's questions See All
Similar questions and discussions