angle_emb.evaluation
Classes
Module Contents
- class angle_emb.evaluation.CorrelationEvaluator(text1: List[str], text2: List[str], labels: List[float], batch_size: int = 32)[source]
Bases:
object- __call__(model: angle_emb.base.AngleBase, show_progress: bool = True, **kwargs) dict[source]
Evaluate the model on the given dataset.
- Parameters:
model – AnglE, the model to evaluate.
show_progress – bool, whether to show a progress bar during evaluation.
kwargs – Additional keyword arguments to pass to the encode method of the model.
- Returns:
dict, The evaluation results.