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

Type error! #14

Open
wgmg165 opened this issue May 17, 2017 · 1 comment
Open

Type error! #14

wgmg165 opened this issue May 17, 2017 · 1 comment

Comments

@wgmg165
Copy link

wgmg165 commented May 17, 2017

when I run the ladder.py, I get this error:

File "E:\DL_test\semi-supervised\ladder-master\input_data.py", line 158, in init
i = indices[y==c][:n_from_each_class]

TypeError: slice indices must be integers or None or have an index method

Could someone help me? many thanks!

@rinuboney
Copy link
Owner

Can you try
i = indices[y==c][:int(n_from_each_class)]

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