contribution-analysis

Measure feature contributions to output variables using TreeSHAP.

Updated Jun 19, 2026
One-click install
npx skills add https://github.com/Li-Bai-GOAT/intelligent-analysis-agent --skill contribution-analysis-li-bai-goat
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: contribution-analysis
Source: https://github.com/Li-Bai-GOAT/intelligent-analysis-agent/tree/main/sandbox_skills/contribution-analysis
Command: npx skills add https://github.com/Li-Bai-GOAT/intelligent-analysis-agent --skill contribution-analysis-li-bai-goat

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires python>=3.8, pandas>=2.0.0, numpy>=1.20.0, scikit-learn>=1.0.0, shap>=0.42.0, and includes scripts (resource) components.

What problem does it solve?

This Skill provides a fast, lightweight way to conduct feature contribution analysis with TreeSHAP, helping to identify key factors affecting performance without the need for a GPU.

Core Features & Use Cases

  • TreeSHAP for Contribution Analysis: Utilizes TreeSHAP to calculate the contribution of each factor to the target variable with high precision and without GPU requirements.
  • Real-world Application: Helps to identify critical factors in financial analysis and predictive modeling scenarios.
  • Use Case: In a sales data set, you can use this Skill to determine which product features most significantly contribute to sales performance.

Quick Start

Analyze feature contribution in a dataset to understand how various product features impact sales performance.

Frequently Asked Questions about contribution-analysis

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I identify key factors impacting sales performance using feature contribution analysis?▼

You can identify key factors impacting sales performance by applying the TreeSHAP algorithm to tree-based models, calculating the precise contribution of each product feature to the target variable without requiring a GPU.

How does TreeSHAP work for feature importance in financial analysis?▼

TreeSHAP works for feature importance in financial analysis by measuring the marginal contribution of each factor to the model output, providing a detailed breakdown of how specific variables drive performance evaluation results.

Do I need a GPU to run TreeSHAP for tree model performance evaluation?▼

You do not need a GPU to run TreeSHAP for tree model performance evaluation, as this approach provides a fast and lightweight way to calculate feature contributions using only standard CPU resources.

Can I use scikit-learn and pandas data to measure feature contributions?▼

You can use scikit-learn and pandas data to measure feature contributions, as the calculation requires a Python environment with dependencies including pandas, numpy, scikit-learn, and the shap library.

What is the best way to calculate feature importance without GPU requirements?▼

The best way to calculate feature importance without GPU requirements is using the TreeSHAP algorithm on tree-based models, which delivers high-precision contribution analysis for predictive modeling scenarios on a lightweight setup.

When should I not use TreeSHAP for contribution analysis?▼

You should not use TreeSHAP for contribution analysis if your underlying model is not tree-based, as the algorithm is specifically designed to measure feature contributions within tree model architectures for tasks like sales forecasting.