Holding entire devices out with GroupKFold

GroupKFold holds a group’s rows together in each split and tests each group once.

GroupKFold in practice

To estimate performance on unseen machines, group by serial number. Random row splitting can expose machine-specific offsets during training.

中文

同一设备的测量怎样拆分训练和测试?

分组 K 折让同一组的全部记录在一轮里位于同一侧,每组恰好进入一次测试折。

GroupKFold 应用实例

要估计对新设备的效果,就以设备序列号为组。随机拆行会让训练集提前看到同一设备的固定偏差。

References / 参考来源

Keep reading / 继续阅读