Skip to content

Added new MSE Similarity Evaluator#2704

Open
DgoMndez wants to merge 4 commits into
huggingface:mainfrom
DgoMndez:add-new-MSESimilarityEvaluator
Open

Added new MSE Similarity Evaluator#2704
DgoMndez wants to merge 4 commits into
huggingface:mainfrom
DgoMndez:add-new-MSESimilarityEvaluator

Conversation

@DgoMndez
Copy link
Copy Markdown

@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