besskge.metric.HitsAtK

class besskge.metric.HitsAtK(k)[source]

Hits@K metric.

Returns the count of triples where the ground truth is among the K most-likely predicted entities.

Parameters:

k (int) – Maximum acceptable rank.