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

ValueError: too many values to unpack (expected 3) #5

Open
Threekiii opened this issue Nov 20, 2020 · 1 comment
Open

ValueError: too many values to unpack (expected 3) #5

Threekiii opened this issue Nov 20, 2020 · 1 comment

Comments

@Threekiii
Copy link

Traceback (most recent call last):
File "CaRe_main.py", line 211, in
main(args)
File "CaRe_main.py", line 86, in main
data = load_data(args)
File "/root/CaRE/CaRe(B=TransE)/data.py", line 10, in init
self.fetch_data()
File "/root/CaRE/CaRe(B=TransE)/data.py", line 130, in fetch_data
self.entid2clustid)
ValueError: too many values to unpack (expected 3)

@anindyasdas
Copy link

The code has multiple errors, typos, for TransE algorithm self.get_train_triples only returns one argument. Hence this error!

Solution:
Comment out
#self.train_trips,self.rel2id,self.label_graph = self.get_train_triples(self.data_files["train_trip_path"],
self.entid2clustid)

self.train_trips= self.get_train_triples(self.data_files["train_trip_path"], self.entid2clustid)

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