I have a model for semantic segmentation based on U-net, the code of loading the data and training is available here : segmentation_unet.java · GitHub, which works very well. Now i want to apply k-fold cross-validation for this model in DL4J. Please any help.
Dear @agibsonccc Please have you any idea about this question.
@AbdelmajidB hmm…kfold is just about splitting things in to batches and averaging the results from the folds. If you have the base calculation for each batch (something like the counts of the number of object labels in each picture and what is/isn’t correct) averaging across all batches should be fine.
How are you calculating the error for each split?
@agibsonccc thank you very much for your reply. I perform image segmentation using U-net, i have about 4600 image for training and testing. i splitted the data into training and testing and it works, segmentation_unet.java · GitHub this is my code. Now, i want to use KFoldIterator to split data into k folds to perform cross validation but i didn’t find any example. Please how can i modify my code to use KFoldIterator .