跳转到主要内容
此内容尚未提供您的语言版本,正在以英文显示。

AlterLab SHAP

技能 已验证 活跃

Part of the AlterLab Academic Skills suite. Model interpretability and explainability using SHAP (SHapley Additive exPlanations). Use this skill when explaining machine learning model predictions, computing feature importance, generating SHAP plots (waterfall, beeswarm, bar, scatter, force, heatmap), debugging models, analyzing model bias or fairness, comparing models, or implementing explainable AI. Works with tree-based models (XGBoost, LightGBM, Random Forest), deep learning (TensorFlow, PyTorch), linear models, and any black-box model.

目的

To empower users to understand and explain their machine learning model predictions using the SHAP framework, enabling better debugging, fairness analysis, and model deployment.

功能

  • Compute SHAP values for diverse model types (tree, deep learning, linear, black-box)
  • Generate a wide range of SHAP plots (waterfall, beeswarm, bar, scatter, force, heatmap)
  • Provide detailed workflows for model explanation, debugging, feature engineering, and fairness analysis
  • Offer comprehensive reference documentation for explainers, plots, theory, and advanced techniques
  • Guidance on production deployment and performance optimization

使用场景

  • Explaining individual model predictions to stakeholders
  • Debugging why a model made a specific incorrect prediction
  • Identifying and quantifying feature importance across a dataset
  • Analyzing model bias and fairness across different demographic groups
  • Understanding feature interactions and nonlinear relationships

非目标

  • Training machine learning models
  • Performing hyperparameter tuning
  • Deploying models directly to production environments (guidance provided, not direct deployment)
  • Replacing the need for domain expertise in interpreting results

工作流

  1. Select the appropriate SHAP explainer based on model type.
  2. Compute SHAP values for the model's predictions using background data.
  3. Visualize results using plots like waterfall, beeswarm, bar, or scatter plots.
  4. Interpret feature contributions to understand global importance and individual predictions.
  5. Debug model behavior, analyze fairness, or engineer features based on insights.
  6. Integrate explanations into production systems or workflows.

实践

  • Model Interpretability
  • Explainable AI
  • Machine Learning Workflow

先决条件

  • Python 3.7+
  • numpy
  • pandas
  • scikit-learn
  • matplotlib
  • shap
  • xgboost, lightgbm, tensorflow, torch (depending on model type)

Execution

  • info:Pinned dependenciesDependencies are listed, and installation instructions suggest standard package managers, but explicit lockfiles for pinning are not evident.

安装

npx skills add AlterLab-IEU/AlterLab-Academic-Skills

通过 npx 运行 Vercel skills CLI(skills.sh)— 需要本地安装 Node.js,以及至少一个兼容 skills 的智能体(Claude Code、Cursor、Codex 等)。前提是仓库遵循 agentskills.io 格式。

质量评分

已验证
99 /100
1 day ago 分析

信任信号

最近提交17 days ago
星标15
许可证MIT
状态
查看源代码

类似扩展

SHAP Model Interpretability

100

Model interpretability and explainability using SHAP (SHapley Additive exPlanations). Use this skill when explaining machine learning model predictions, computing feature importance, generating SHAP plots (waterfall, beeswarm, bar, scatter, force, heatmap), debugging models, analyzing model bias or fairness, comparing models, or implementing explainable AI. Works with tree-based models (XGBoost, LightGBM, Random Forest), deep learning (TensorFlow, PyTorch), linear models, and any black-box model.

技能
K-Dense-AI

TimesFM Forecasting

100

Zero-shot time series forecasting with Google's TimesFM foundation model. Use for any univariate time series (sales, sensors, energy, vitals, weather) without training a custom model. Supports CSV/DataFrame/array inputs with point forecasts and prediction intervals. Includes a preflight system checker script to verify RAM/GPU before first use.

技能
K-Dense-AI

Molfeat

99

Molecular featurization for ML (100+ featurizers). ECFP, MACCS, descriptors, pretrained models (ChemBERTa), convert SMILES to features, for QSAR and molecular ML.

技能
K-Dense-AI

OraClaw Forecast

100

AI 代理的时间序列预测。ARIMA 和 Holt-Winters 预测(含置信区间)。预测收入、流量、价格或任何序列数据。推理延迟低于 5 毫秒。

技能
Whatsonyourmind

Arize Evaluator

100

Handles LLM-as-judge evaluation workflows on Arize including creating/updating evaluators, running evaluations on spans or experiments, managing tasks, trigger-run operations, column mapping, and continuous monitoring. Use when the user mentions create evaluator, LLM judge, hallucination, faithfulness, correctness, relevance, run eval, score spans, score experiment, trigger-run, column mapping, continuous monitoring, or improve evaluator prompt.

技能
github

PyTorch Lightning

100

Deep learning framework (PyTorch Lightning). Organize PyTorch code into LightningModules, configure Trainers for multi-GPU/TPU, implement data pipelines, callbacks, logging (W&B, TensorBoard), distributed training (DDP, FSDP, DeepSpeed), for scalable neural network training.

技能
K-Dense-AI