Skip to content

Conversation

@edyoshikun
Copy link
Member

@edyoshikun edyoshikun commented Oct 30, 2025

This PR adds:

  • Logs the cosine and Euclidean distance between the anchor and the negatives.
  • Logs the margin between the cosine similarity between anchor-positive sample and the mean of anchor-negative sample.
  • Tests for the _valid_anchors() to ensure we are getting the right anchor+positive.

@edyoshikun edyoshikun changed the title Log the similarity of anchor and negatives Log the similarity between anchor and negatives Oct 31, 2025
@edyoshikun edyoshikun marked this pull request as ready for review October 31, 2025 16:17
Copy link
Member

@mattersoflight mattersoflight left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM on reading the files and can do "integration test" with other PRs later.

@edyoshikun edyoshikun merged commit b56dc9f into main Nov 3, 2025
4 checks passed
@edyoshikun edyoshikun deleted the log_negative branch November 3, 2025 17:54
edyoshikun added a commit that referenced this pull request Nov 3, 2025
* log the negative

* add tests for the triplet anchor and positive

* add also the euclidean
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants