Preserve Order for Cross Validation in Weka

岁酱吖の 提交于 2019-12-11 14:08:58

问题


I am using the Weka GUI for classifying sensor data.

I have measures of 10 people, the data is sorted. So the first 10% correspond to participant 1, the second 10% to participant 2 etc.

I would like to use 10 fold cross validation to build a model on 9 participants and test it on the remaining participant. In my case I believe I could accomplish this by simply not randomizing the data splits.

How would I best go about doing this?


回答1:


I don't know how to do this in the Explorer.

In the KnowledgeFlow GUI, there is a CrossValidationFoldMaker used to create cross-validation folds. This has an option to Preserve instances order, which says it preserves the order of instances rather than randomly shuffling.

There's a video describing the KnowledgeFlow interface here: https://www.youtube.com/watch?v=sHSgoVX9z-8&t=7s



来源:https://stackoverflow.com/questions/47683638/preserve-order-for-cross-validation-in-weka

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