π String Containment RatioΒΆ
metrics.string_containment_ratio
type: StringContainmentRatio
field: entities
[source]Explanation about StringContainmentRatioΒΆ
Metric that returns the ratio of values from a specific field contained in the prediction.
- Attributes:
- field: The field from the task_data that contains the values to be checked for containment.
- Example task:
- Task(
input_fields={βquestionβ: str}, reference_fields={βentitiesβ: str}, prediction_type=str, metrics=[βstring_containment_ratio[field=entities]β],
)
Read more about catalog usage here.