计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
bbvi_stochastic_optimizer【效率与协作】Apply stochastic ascent and AdaGrad updates to black-box variational inference gradient estimates while recording parameter-change evidence.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this skill to update variational parameters with BBVI gradient estimates. It supports fixed Robbins-Monro-style scalar ascent and diagonal AdaGrad updates from the paper.
Do not use it to compute BBVI gradients or to evaluate predictive likelihood.
params: current variational parameters as a numeric list.gradient: gradient estimate with the same shape.method: scalar or adagrad.learning_rate: scalar base learning rate.state: optional AdaGrad accumulator.params_before and params_after.gradient and step.state_before and state_after.optimizer_step_executed boolean.scalar, apply params + learning_rate * gradient.adagrad, update the squared-gradient accumulator and apply learning_rate / sqrt(accumulator + epsilon) per parameter.Run:
python tests/test_optimizer.py
This skill performs ascent. If minimizing a loss, negate the gradient before calling it.