templates.MultipolarImageTextComparatorTemplateSchema
- class templates.MultipolarImageTextComparatorTemplateSchema(*args, **kwargs)
Multipolar Image Text Comparator template
- Parameters:
image_embedding_field (str) – Field containing the image embedding
text_query (str) – Text query
label (str) – Label
pos_threshold (float, default 0.5) – Positive threshold similarity. Datapoints with similarity greater than or equal are voted positive
neg_threshold (float, default -0.5) – Negative threshold similarity. Datapoints with similarity less than or equal are voted negative
invert_votes (bool) – Whether to invert the votes.