run_analysis
Explain model predictions by running SHAP analysis on datasets from local files, URLs, or inline JSON.
Instructions
Run SHAP explainer against a dataset.
Note: Ask the user for local file paths, public URLs (data_url), or use the Web GUI at http://localhost:8765/ui/. For small CSVs (< 500 rows), you may read the table from chat and pass the rows directly in data.
Parameters
data_path : str | None Path to a local CSV file. data_url : str | None Public URL to download a CSV dataset file. data : list[dict] | None Inline dataset passed as a JSON array. sample_size : int | None Override default auto-cap for dataset row sampling.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | No | ||
| data_url | No | ||
| data_path | No | ||
| sample_size | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||