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

TypeError: unhashable type: 'list' #14

Open
VladJamir opened this issue May 15, 2019 · 1 comment
Open

TypeError: unhashable type: 'list' #14

VladJamir opened this issue May 15, 2019 · 1 comment

Comments

@VladJamir
Copy link

I encountered an error

Traceback (most recent call last):                                                                                      
File "example.py", line 11, in <module> 
  model.train(ckpt_dir='ckpt')                                                                                        
File "/home/deepest/ORGAN/organ/__init__.py", line 813, in train        
   batch_reward, self.LAMBDA)                                                                                          
File "/home/deepest/ORGAN/organ/rollout.py", line 119, in get_reward                   
   rew = reward_fn(generated_seqs)                                                                                     
File "/home/deepest/ORGAN/organ/__init__.py", line 786, in batch_reward          
   pct_unique = len(list(set(decoded))) / float(len(decoded))                                   
TypeError: unhashable type: 'list' 
@ghost
Copy link

ghost commented Oct 24, 2019

Did you solve this?

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

1 participant