Skip to main content
Glama
florenciakabas

xai-toolkit

get_partial_dependence

Analyze how a single feature influences model predictions across its range, revealing average and individual effects through partial dependence plots and ICE visualizations.

Instructions

Show how a single feature affects predictions across its range.

Returns a narrative describing the relationship between the feature
and the model's predicted probability. Optionally includes a PDP + ICE
plot (model-agnostic visualization, not SHAP-based).

PDP (bold line) shows the average effect. ICE (gray lines) show individual
sample effects, revealing heterogeneity the average hides.

Args:
    model_id: ID of a registered model (e.g., "gbc_lubricant_quality").
    feature_name: Name of the feature to analyze (e.g., "mean radius").
    include_plot: If True, include a PDP+ICE plot as base64 PNG (default: True).

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
model_idYes
feature_nameYes
include_plotNo

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/florenciakabas/xai-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server