trulens.benchmark.alignment_report¶
trulens.benchmark.alignment_report
¶
Alignment diagnostics for benchmark and judge-alignment results.
Classes¶
AlignmentReport
¶
Generate alignment diagnostics for benchmark predictions.
| PARAMETER | DESCRIPTION |
|---|---|
predicted_scores
|
Predicted judge scores. This may be a one-dimensional
sequence, a pandas series, a numpy array, score-confidence pairs, or
a
TYPE:
|
true_labels
|
Ground-truth labels or scores in the same order as the predictions.
TYPE:
|
examples
|
Optional examples used only when displaying worst misses.
TYPE:
|
threshold
|
Threshold used for binary alignment metrics.
TYPE:
|
thresholds
|
Optional thresholds for confusion-matrix rows. |
n_bins
|
Number of bins for calibration and distribution data.
TYPE:
|
top_n
|
Number of worst misses to include.
TYPE:
|