shenweichen/DeepCTR-Torch

IndexError: index out of range in self

zoey-zy998 opened this issue · 2 comments

image

用了一批新数据,去测试就报错,用原先训练的数据测试没问题

I got the same error, thank you for rising this issue.

可以检查SparseFeat列的最大索引值在训练数据和测试数据中是否一致,可能出现在训练数据中最大索引值为100,但在测试数据中同一列数据的最大索引值为105的情况,这个时候就会报错。以下是我的出错示例:
image