-
Notifications
You must be signed in to change notification settings - Fork 283
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
Evaluators ambiguity: class/module #1124
Comments
I agree that this is a general problem within mteb. Ideally, we should have the modules in lowercase to avoid confusing the module with the object. I believe this is also the pep8 recommendation. We also have quite a high usage of
I would love a fix for this. Will just check in with @Muennighoff and @isaac-chung as well to make sure that everyone agrees |
Thanks for bringing this up! I think it's great if we can follow something like pep8. This would lead to a breaking change that might not be backwards compatible, so this would trigger a major version bump. We should consider this for perhaps for 2.0. |
But there is no other definition within Note that we also name all task & abstask files in this style e.g. https://github.com/embeddings-benchmark/mteb/blob/main/mteb/tasks/Classification/ara/TweetEmotionClassification.py - I think if we change it for evaluators we should also change it there but still unsure if the change is needed. 🤔 |
Thanks @KennethEnevoldsen and @isaac-chung, +1 that following pep8 standards is a good path forward. I think that @Muennighoff brings up a valid point and this is my bad as |
There is ambiguity between classes and modules under the
evalutors
module. Specifically, evaluators objects under mteb/evaluation/evaluators are named the same as the modules which contain them. For example:mteb.evaluation.evaluators.RerankingEvaluator
references the classRerankingEvaluator
inmteb/evaluation/evaluators/RerankingEvaluator.py
.This is problematic because it does not allow to reference the
mteb/evaluation/evaluators/RerankingEvaluator.py
module and therefore referencing any other definition within it.The text was updated successfully, but these errors were encountered: