correlation
correlation
¶
Classes:
| Name | Description |
|---|---|
Correlation |
Column Correlation Stability metric. |
Correlation
pydantic-model
¶
Bases: Component
Column Correlation Stability metric.
Computes per-column-pair correlations (Pearson, Theil's U, Correlation Ratio) for both reference and output dataframes, then scores the mean absolute difference.
Config:
arbitrary_types_allowed:True
Fields:
-
score(EvaluationScore) -
name(str) -
reference_correlation(DataFrame | None) -
output_correlation(DataFrame | None) -
correlation_difference(DataFrame | None)
reference_correlation = None
pydantic-field
¶
Correlation matrix for the reference data.
output_correlation = None
pydantic-field
¶
Correlation matrix for the output data.
correlation_difference = None
pydantic-field
¶
Element-wise absolute difference of the two matrices.
jinja_context
cached
property
¶
Template context with combined correlation heatmap figure.
from_evaluation_dataset(evaluation_dataset, config=None)
staticmethod
¶
Compute correlation matrices and the correlation stability score.