liveBook · Manning

Black box

As explained in Outlier Detection in Python

A black-box model is a predictive model whose internal decision process is not readily understandable from its inputs and outputs.

A black-box model produces predictions or outlier scores whose specific decision process is not readily understandable from the inputs and outputs. The algorithms may be known, while the reasons for individual results remain unclear. section 13.1

Black-box behavior creates practical questions about robustness and fairness. A model may reflect gender or racial bias, use unrepresentative training data, or be underfit or overfit, making future behavior difficult to assess and correct. section 13.1

Interpretability and explainability address the problem differently:

  • Prefer an interpretable detector when it provides sufficient accuracy, speed, and understanding. section 13.1.1
  • Use post hoc explanations when a more accurate black-box detector is necessary; these explanations approximate why the model assigned a particular score. section 13.1.1
  • Distinguish global explanations of overall model behavior from local explanations of individual predictions or outlier scores. section 13.1.1

Outlier detection

Isolation Forest, k-nearest neighbors, Radius, one-class support vector machines, principal component analysis, and related detectors can assign outlier scores without making their specific decisions readily interpretable. A two-dimensional plot may offer useful intuition, but it cannot fully explain outliers in three or more dimensions. section 13.1.1

How Outlier Detection in Python covers it

How deep it goes
Distinguishes interpretable models from post hoc explanations and notes that approximate explanations cannot fully recover model reasoning.
Examples
Uses neural networks, boosted models, random forests, and multiple outlier detectors as examples of largely uninterpretable models.
What you can do after
Evaluate when interpretability is sufficient and when to seek approximate global or local explanations for black-box outputs.
How it connects
Connects black boxes with explainable AI, outlier detection, interpretability, post hoc explanations, robustness, and fairness.

Also explained in

Compare how 6 books explain black box →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Outlier Detection in Python. The section links point to the parts of the book it draws on.