AG
数据与复现
agent-browser
Browse the web for any task — research topics, read articles, interact with web apps, fill forms, take screenshots, extr…
FreedomIntelligence/OpenClaw-Medical-Skills查看
维护者 FreedomIntelligence · 最近更新 2026年4月1日
Explain omics ML predictions with SHAP and feature importance.
原始来源
https://github.com/FreedomIntelligence/OpenClaw-Medical-Skills/tree/main/skills/bio-machine-learning-prediction-explanation
技能摘要
原始文档
import shap
from sklearn.ensemble import RandomForestClassifier
model = RandomForestClassifier(n_estimators=100, random_state=42)
model.fit(X_train, y_train)
explainer = shap.TreeExplainer(model)
## Summary Plot (Global Feature Importance)
```python
import shap
import matplotlib.pyplot as plt
## Beeswarm plot: shows impact direction and magnitude
shap.plots.beeswarm(shap_values, max_display=20, show=False)
plt.tight_layout()
plt.savefig('shap_summary.png', dpi=150, bbox_inches='tight')
plt.close()
相关技能
Browse the web for any task — research topics, read articles, interact with web apps, fill forms, take screenshots, extr…
Access 20+ years of global financial data: equities, options, forex, crypto, commodities, economic indicators, and 50+ t…
Filter alignments by flag, quality, region, or paired status.
Index BAM/CRAM files with samtools index for random access.