Skip to content

TypeError: unhashable type: 'list'  #14

@VladJamir

Description

@VladJamir

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' 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions