dataeval.shift.ChunkResult

class dataeval.shift.ChunkResult

Result for a single chunk in chunked drift detection.

key

Human-readable identifier for this chunk.

Type:

str

index

Sequential chunk index.

Type:

int

start_index

Start index in the original array (-1 for non-contiguous chunks).

Type:

int

end_index

End index (inclusive) in the original array (-1 for non-contiguous chunks).

Type:

int

value

Raw metric value for this chunk (e.g., mean distance, MMD^2, AUROC).

Type:

float

upper_threshold

Upper threshold bound. Exceeding this indicates drift.

Type:

float or None

lower_threshold

Lower threshold bound. Falling below this indicates anomaly.

Type:

float or None

drifted

Whether this chunk’s metric exceeds the threshold bounds.

Type:

bool

data()

Return 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