保留Weka中交叉验证的订单 [英] Preserve Order for Cross Validation in Weka
问题描述
我正在使用Weka GUI对传感器数据进行分类。
我有10个人的度量,数据已排序。因此,前10%对应于参与者1,第二10%对应于参与者2,等等。
我想使用10倍交叉验证在9位参与者上建立模型并在其余的参与者上进行测试。就我而言,我相信我可以通过简单地不随机化数据拆分来实现这一目标。
我该如何最好地做到这一点? div class = h2_lin>解决方案
我不知道如何在资源管理器中执行此操作。
在 KnowledgeFlow中 GUI,有一个 CrossValidationFoldMaker 用于创建交叉验证折叠。它具有保留实例顺序的选项,该选项表示保留实例的顺序而不是随机重排。
有一段视频描述了KnowledgeFlow界面:
https://www.youtube.com / watch?v = sHSgoVX9z-8& t = 7s
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?
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
这篇关于保留Weka中交叉验证的订单的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!