Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IndexError: index out of range in self #295

Open
zoey-zy998 opened this issue Jun 6, 2024 · 2 comments
Open

IndexError: index out of range in self #295

zoey-zy998 opened this issue Jun 6, 2024 · 2 comments

Comments

@zoey-zy998
Copy link

zoey-zy998 commented Jun 6, 2024

image

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

@FuatOgme
Copy link

FuatOgme commented Jun 7, 2024

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

@hanxu49
Copy link

hanxu49 commented Jul 16, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants