Eval_Task

triple_classification

neuralkg_ind.eval_task.triple_classification.classification(batch, model)[source]

Calculating triple classification score.

Parameters:
  • batch – Positive sample and negative sample.

  • model – The model for testing.

Returns:

The positive sample score and the negative sample score.

Return type:

score