tree
GitHub基于决策树识别影响目标变量的关键规则。通过获取Schema和查询数据确认字段、分布及泄漏风险,执行训练验证后输出性能指标、特征重要性及可解释规则,严禁将相关性表述为因果。
Trigger Scenarios
用户要求使用决策树分析数据
需要识别影响目标变量的关键规则或特征重要性
需要进行分类或回归任务的可解释性分析
Install
npx skills add Zafer-Liu/Data-Analysis-Agent --skill tree -g -y
SKILL.md
Frontmatter
{
"icon": "🌳",
"name": "tree",
"description": "使用决策树识别影响目标变量的关键规则(decision tree 决策树)",
"allowedTools": [
"get_schema",
"query_data",
"run_analysis",
"generate_chart"
]
}
决策树分析
确认目标变量和任务类型,排除泄漏字段,合理处理缺失值与类别变量。执行训练验证并报告性能、重要特征和可解释规则;避免把相关性表述为因果。
Tool routing
- Use
get_schemato identify the target, candidate features, task type, and source table. - Use
query_datato verify field names, target distribution, missingness, and leakage risks. - Use
run_analysiswithanalysis_name="Decision_Tree"for the actual tree computation. - Use
generate_charton tree, feature importance, or validation result tables afterrun_analysissucceeds.
Implementation reference
- Tool entry:
agent/tools/business/data.py::_tool_run_analysis - Analysis registry:
Function/Analyze/registry.py - Analysis implementation:
Function/Analyze/Decision_Tree/analyze.py - Chart implementation:
Function/Charts_generation/chart_generate.py
Version History
- d6a2c3e Current 2026-07-24 12:13


