Jump to content

Connect Leeroopedia MCP: Equip your AI agents to search best practices, build plans, verify code, diagnose failures, and look up hyperparameter defaults.

Principle:Interpretml Interpret EBM Prediction

From Leeroopedia


Metadata
Sources InterpretML
Domains Machine_Learning, Interpretability
Last Updated 2026-02-07 12:00 GMT

Overview

A prediction mechanism that computes model outputs by summing per-term score lookups from discretized feature values.

Description

EBM Prediction generates predictions by discretizing each input sample's features into bin indices, looking up the corresponding score in each term's score tensor, and summing all term contributions plus the intercept. The result is a raw score in link-function space. For classification, an inverse link function (logit/softmax) converts scores to probabilities. For regression, the identity or log link is applied. The additive structure enables decomposition of predictions into per-term contributions for local explanations.

Usage

Use this principle whenever you need to generate predictions from a trained EBM. It applies to both batch prediction (predict/predict_proba) and per-sample explanation (explain_local).

Theoretical Basis

For a trained EBM with T terms:

F(x)=β0+t=1Tft(xSt)

where β0 is the intercept, ft is the learned shape function for term t, and St is the set of feature indices for that term.

The predicted output:

y^=g1(F(x))

where g is the link function.

  • Classification (binary): g = logit, so y^=σ(F(x))
  • Regression: g = identity, so y^=F(x)

Related Pages

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment