ModelRankBasedEvaluator

class mowl.evaluation.ModelRankBasedEvaluator(model, device='cpu', eval_method=None)[source]

Bases: RankBasedEvaluator

This class corresponds to evaluation based on ranking, where the embedding information of an entity is enclosed in some model.

Parameters:
  • model (mowl.base_models.EmbeddingModel) – The model to be evaluated.

  • device (str, optional) – The device to be used for evaluation. Defaults to ‘cpu’.

  • eval_method (callable, optional) – The method used for the evaluation. If None, the method will be set to self.eval_method. Defaults to None.