计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
integrated_gradient_computation【效率与协作】Compute Integrated Gradients with Riemann-summed path gradients and completeness diagnostics for attribution recovery.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this skill to compute feature attributions from a differentiable scalar function or from an injected gradient callable. Do not use plain input gradients as a substitute for Integrated Gradients when the function may be saturated at the input.
gradient_fn(point): returns one gradient value per feature.input_vector and baseline_vector: equal-length numeric vectors.steps: Riemann approximation count, typically 20 to 300 for real models.output_fn for completeness diagnostics.attributions: one attribution per input feature.attribution_sum: sum of feature attributions.output_difference and completeness_error.F(x)-F(baseline).Run python tests/test_integrated_gradients.py or the Distiller skill-tree validator with tests enabled.
The script expects deterministic Python callables. Framework-specific autograd wrappers should adapt their tensors to this callable interface.