Accenture / AmpliGraph

Python library for Representation Learning on Knowledge Graphs https://docs.ampligraph.org
Apache License 2.0
2.14k stars 251 forks source link

Undefined name ‘embs_labels’ in test.py #65

Closed cclauss closed 5 years ago

cclauss commented 5 years ago

https://github.com/Accenture/AmpliGraph/search?q=embs_labels

chanlevan commented 5 years ago

Hi @cclauss Thanks for opening this issue.

According to what I have seen in your test code, the embs_labels has not been declared before.

To get the embeddings, you need to fit the it first, as you did your test.py file. Second, you should assign the embs_labels with the interested embedding labels and put to the get_embeddings API.

For instance, we exemplify the get_embeddings in http://docs.ampligraph.org/en/1.0.1/examples.html#get-the-embeddings. After we fitted the dataset, we extract the embedding by sending an entity list ['f', 'e'] to the get_embeddings API. In this case, embs_labels = ['f', 'e']

Hope this help.

chanlevan commented 5 years ago

This file was there by mistake. It has been removed.