Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added new MSE Similarity Evaluator #2704

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

DgoMndez
Copy link

@DgoMndez DgoMndez commented Jun 2, 2024

The class EmbeddingSimilarityEvaluator is suited to score-labeled sentence pairs. It calculates Spearman and Pearson correlations between embedding similarities and gold labels. I added a new class MSESimilarityEvaluator to be able evaluate the model with the MSE metric between embedding similarities and gold labels. It is different from MSEEvaluator, as that one computes MSE between teacher and student embedding while MSESimilarityEvaluator computes MSE between the gold and embedding similarities.

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.

1 participant