Skip to content

How to interpret the miner output? #435

Answered by KevinMusgrave
celsofranssa asked this question in Q&A
Discussion options

You must be logged in to vote

MultiSimilarityMiner returns pairs, so the output format is (a1, p, a2, n).

  • (a1, p) is the indices of positive pairs
  • (a2, n) is the indices the negative pairs

In your case:

  • a1 = tensor([0, 1, 2, 3])
  • p = tensor([1, 0, 3, 2])
  • a2 = tensor([0, 0, 1, 1, 2, 2, 3, 3])
  • n = tensor([3, 2, 3, 2, 1, 0, 1, 0]))

So there are 4 positive pairs and 8 negative pairs.

For example:

The 1st positive pair is (a1[0], p[0]), which is (0, 1), which corresponds with (embeddings[0], embeddings[1]).

The 5th negative pair is (a2[4], n[4]), which is (2, 1), which corresponds with (embeddings[2], embeddings[1]).

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@celsofranssa
Comment options

Answer selected by celsofranssa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants