QuestionQ31

VerifiedValidation Testing

A Machine Learning Engineer has trained a credit-scoring model and must assess fairness metrics across distinct customer segments while retaining different levels of granularity for business reporting. They need to calculate metrics such as precision, recall, and demographic parity at the individual-feature level (credit_score_range, income_bracket) and for intersectional slices (feature combinations). The model outputs reside in a Delta table containing prediction probabilities and actual default labels. The engineer wants to systematically assess model performance across these feature slices and granularities.

Which approach accomplishes this?

Explanation

Databricks Lakehouse Monitoring can monitor a Delta inference table with prediction and label columns and calculate metrics for the full table and configured slices. Slicing expressions support a feature-level slice or a predicate; therefore, expressions for individual attributes and combined predicates can produce the required individual and intersectional customer segments. Custom monitor metrics can be used for fairness measurements such as demographic parity.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!