Skip to content

Metrics configurable through yaml#50

Merged
vdplasthijs merged 11 commits intodevelopfrom
feature/contrastive_setup
Feb 26, 2026
Merged

Metrics configurable through yaml#50
vdplasthijs merged 11 commits intodevelopfrom
feature/contrastive_setup

Conversation

@gabrieletijunaityte
Copy link
Contributor

@gabrieletijunaityte gabrieletijunaityte commented Feb 24, 2026

What does this PR do?

Fixes #49 by introducing metrics wrapper class which intakes loss and metric class objects. This removes the need for separate need of UC/task-specific model classes.

Before submitting

  • Did you make sure title is self-explanatory and the description concisely explains the PR?
  • Did you make sure your PR does only one thing, instead of bundling different changes together?
  • Did you list all the breaking changes introduced by this pull request?
  • Did you test your PR locally with pytest command?

@gabrieletijunaityte gabrieletijunaityte added the duplicate This issue or pull request already exists label Feb 24, 2026
Copy link
Collaborator

@vdplasthijs vdplasthijs left a comment

Choose a reason for hiding this comment

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

Fantastic, really nice setup. Just have one very minor suggestion re including a check when computing cosine sim. What do you think?

@vdplasthijs vdplasthijs merged commit dde2e32 into develop Feb 26, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

duplicate This issue or pull request already exists

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants