filter_unseen_entities

ampligraph.evaluation.filter_unseen_entities(X, model, verbose=False)

Filter unseen entities in the test set.

Parameters:
  • X (ndarray, shape (n, 3)) – An array of test triples.

  • model (ampligraph.latent_features.EmbeddingModel) – A knowledge graph embedding model.

  • verbose (bool) – Verbose mode.

Returns:

filtered X – An array of test triples containing no unseen entities.

Return type:

ndarray, shape (n, 3)