uma-pi1 / kge

LibKGE - A knowledge graph embedding library for reproducible research
MIT License
776 stars 124 forks source link

Error in tie-handling. The scores assigned to a triple by the SPO and SP_/_PO #237

Closed jwzhi closed 3 years ago

jwzhi commented 3 years ago

Hi,

I am trying to implement gcn as a embedder for the kge models. And during training time, I sometimes get Error in tie-handling. The scores assigned to a triple by the SPO and SP_/_PO. Verify the model's scoring implementations or consider increasing tie-handling. But I do not change anything for the score functions. I wonder if this can because of some discrepancies in my use-defined embedder or should I just increase the tolerance level?

Thanks,

rgemulla commented 3 years ago

@jwzhi Generally, this means that the scores computed by the model are not consistent, which (if there is no bug) is due to limited numerical precision. You may try increasing the the tolerance level.

@AdrianKs The message is not really helpful. Perhaps we should also print out the triple in question + the scores that have been assigned to it.

jwzhi commented 3 years ago

Alright, I figured out the problem. It's because some misunderstanding of the ConvE implementation. If I assign 128 as the dimension for entity_embedder.dim, when it reads this config in the config.yaml, it is set to 129. I didn't realize this before.