evaluation.metrics.Metric
evaluation.metrics.Metric()Base class for all classification metrics.
Methods
| Name | Description |
|---|---|
| evaluate | Evaluate the metric on the provided evaluation data. |
evaluate
evaluation.metrics.Metric.evaluate(eval_data)Evaluate the metric on the provided evaluation data.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| eval_data | pd.DataFrame | DataFrame with ‘doc_label’ and ‘ground_truth_label’ columns. | required |
Returns
| Name | Type | Description |
|---|---|---|
| MetricResult | MetricResult containing the metric name and computed value. |