K fold cross validation Tensorflow Object Detection

百般思念 提交于 2020-03-03 13:57:46

问题


I want to evaluate my model using K-Fold Cross Validation (k=5). This means that dataset must be split in 5 parts: p1,p2,p3,p4,p5 and then:

(run1) Test: p1,p2,p3,p4 Eval: p5

(run2) Test: p1,p2,p3,p4 Eval: p4

(run3) Test: p1,p2,p4,p5 Eval: p3

(run4) Test: p1,p3,p4,p5 Eval: p2

(run5) Test: p2,p3,p4,p5 Eval: p1

At the end, I calculate the average mean among all the evaluations.

This is essentially K-Fold Cross validation. Right now, what I am doing is to regenerate .tf records each time and then to run the evaluation phase for each one of these combinations. Is there a way to automatize all this procedure? Please note that there is no specific code. In fact, each time I regenerate the tf records. This is what should be automatized as well.

来源:https://stackoverflow.com/questions/51989259/k-fold-cross-validation-tensorflow-object-detection

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!