Similarity

pykeen.nn.sim Module

Similarity functions.

Classes

KG2ESimilarity([exact])

The similarity between the difference of head and tail distribution and the relation distribution.

ExpectedLikelihood([exact])

Compute the similarity based on expected likelihood.

NegativeKullbackLeiblerDivergence([exact])

Compute the negative KL divergence.

Variables

kg2e_similarity_resolver

A resolver for similarities for pykeen.nn.modules.KG2EInteraction

Class Inheritance Diagram

Inheritance diagram of pykeen.nn.sim.KG2ESimilarity, pykeen.nn.sim.ExpectedLikelihood, pykeen.nn.sim.NegativeKullbackLeiblerDivergence