Local explanations
Local explanations describe the prediction from an Umnai model for a query or batch of queries.
They answer the question:
Why did the model produce this prediction?
A local explanation focuses on a specific data point while keeping a connection to the global structure of the XNN. It shows the prediction, the attributions that built it, the partitions and rules that activated, and the confidence-related signals associated with the prediction.
Local explanation components
Local explanations include several components.
Predictions and attributions
Predictions are built from attributions.
For regression problems, the prediction is the sum of module attributions plus the model intercept. For classification problems, that sum is compared with a threshold to determine the predicted class.
Module attributions explain how much each module contributed to the prediction. Feature attributions group those contributions by individual feature, including decomposed contributions from interaction modules.
Activations
Activations show the path taken by a query through the model.
For a given query, activation data identifies which partition and embedded rule were activated in each module.
This connects the prediction to the model structure that produced it.
Decision action table
The Decision Action Table, or DAT, brings key parts of a local explanation into a single table.
It includes module attributions, feature attributions, decompositions, activation data, and activated rules. It can be used to analyse conditions, contributions, and actions for a query.
Strengths and weaknesses
Strengths and weaknesses, or SAW, provide confidence-related measures for a prediction.
Strength reflects the amount of training data in the activated partitions and the quality of the partition model fit. Uncertainty reflects estimator variance and partition prediction variance. For a prediction, these measures are calculated by aggregating across the activated partitions.
Context explanations
Context explanations make local explanations richer by adding comparison or scenario context.
Examples include:
These comparisons help explain how a prediction changes, or why it is similar to or different from other cases.

