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

二分类index error问题 #38

Closed
zhaollj opened this issue Mar 13, 2023 · 4 comments
Closed

二分类index error问题 #38

zhaollj opened this issue Mar 13, 2023 · 4 comments

Comments

@zhaollj
Copy link

zhaollj commented Mar 13, 2023

1

2

3

4

您好!我在进行二分类,可以确定输入的x和y都是没有问题的,请问为什么会出现index error呢?还有就是这个41712是在哪里出现的呢?
@tangypnuaa
Copy link
Collaborator

您好,可以提供下使用的alipy版本吗?如果可能也请提供下代码和数据方便我们复现问题,谢谢

@zhaollj
Copy link
Author

zhaollj commented Mar 15, 2023

使用的是alipy 1.2.5,代码和数据发您了,谢谢!
testcode.zip

@tangypnuaa
Copy link
Collaborator

我尝试运行了您的代码,没有出现问题。我建议您试试把代码目录下train_idx.txt, unlabel_idx.txt, test_idx.txt, label_idx.txt四个文件删除或改名再试试看。这可能是改了数据集而没有重新划分数据的原因,alipy检测到当前目录存在划分文件,所以读取了现有的数据划分而没有重新划分导致出错(这本来会输出warning信息,但是代码开头抑制了warning输出)

@zhaollj
Copy link
Author

zhaollj commented Mar 15, 2023

我把之前相关的文件删除了,问题解决了,谢谢您!这个问题困扰了好久了

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

2 participants