dataeval.outputs.CoverageOutput

class dataeval.outputs.CoverageOutput

Output class for coverage() bias metric.

uncovered_indices

Array of uncovered indices

Type:

NDArray[np.intp]

critical_value_radii

Array of critical value radii

Type:

NDArray[np.float64]

coverage_radius

Radius for coverage

Type:

float

data()

The output data as a dictionary.

Return type:

dict[str, Any]

meta()

Metadata about the execution of the function or method for the Output class.

Return type:

ExecutionMetadata

plot(images, top_k=6)

Plot the top k images together for visualization.

Parameters:
images : Images or Dataset

Original images (not embeddings) in (N, C, H, W) or (N, H, W) format

top_k : int, default 6

Number of images to plot (plotting assumes groups of 3)

Return type:

matplotlib.figure.Figure

Notes

This method requires matplotlib to be installed.