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

Bug Report #1

Closed
adam4096 opened this issue Mar 5, 2021 · 2 comments
Closed

Bug Report #1

adam4096 opened this issue Mar 5, 2021 · 2 comments

Comments

@adam4096
Copy link

adam4096 commented Mar 5, 2021

Hello Litian,

When I run bash run_fashion_a1_50_ditto_lam1.sh I found a bug:
flearn/trainers_MTL/ditto.py", line 53, in train
c.train_data['y'][i] = np.random.randint(0, 10, len(c.train_data['y']))
UnboundLocalError: local variable 'i' referenced before assignment
Could you tell me how to fix it? Thank you!

@adam4096
Copy link
Author

adam4096 commented Mar 5, 2021

Hello Litian,

When I run bash run_fashion_a1_50_ditto_lam1.sh I found a bug:
flearn/trainers_MTL/ditto.py", line 53, in train
c.train_data['y'][i] = np.random.randint(0, 10, len(c.train_data['y']))
UnboundLocalError: local variable 'i' referenced before assignment
Could you tell me how to fix it? Thank you!

Does "i" means "idx"?

@litian96
Copy link
Owner

litian96 commented Mar 5, 2021

thanks for pointing it out. There shouldn't be 'i' there, just fixed.

@litian96 litian96 closed this as completed Mar 6, 2021
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