πŸ“„ 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.