```interact
slider lr range=0.02..0.35 step=0.01 default=0.08 label="学习率"
timer t range=0..6 step=0.04 speed=40 label="下降"
computed s = floor(t / 0.4)
computed fx = 1 - 2 * lr
computed fy = 1 - 8 * lr
computed bx = 350 - 160 * pow(fx, s)
computed by = 150 + 65 * pow(fy, s)
computed t1x = 350 - 160 * pow(fx, max(s - 1, 0))
computed t1y = 150 + 65 * pow(fy, max(s - 1, 0))
computed t2x = 350 - 160 * pow(fx, max(s - 2, 0))
computed t2y = 150 + 65 * pow(fy, max(s - 2, 0))
computed t3x = 350 - 160 * pow(fx, max(s - 3, 0))
computed t3y = 150 + 65 * pow(fy, max(s - 3, 0))
computed t4x = 350 - 160 * pow(fx, max(s - 4, 0))
computed t4y = 150 + 65 * pow(fy, max(s - 4, 0))
computed o1 = s >= 1 ? 0.4 : 0
computed o2 = s >= 2 ? 0.3 : 0
computed o3 = s >= 3 ? 0.22 : 0
computed o4 = s >= 4 ? 0.15 : 0
computed Ld = min(round((pow(bx - 350, 2) + 4 * pow(by - 150, 2)) / 100), 9999)
computed mg = lr < 0.125 ? 1 : 0
computed mo = lr >= 0.125 && lr < 0.25 ? 1 : 0
computed mx = lr >= 0.25 ? 1 : 0
template svg: <svg viewBox="0 0 560 300" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="损失碗面上的梯度下降">
  <defs><linearGradient id="gdbg" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#12112a"/><stop offset="1" stop-color="#0c0b1d"/></linearGradient></defs>
  <rect x="0" y="0" width="560" height="300" rx="14" fill="url(#gdbg)"/>
  <text x="280" y="30" text-anchor="middle" font-size="13" fill="#7fe0b2" opacity="{mg}">收敛中——小步稳走</text>
  <text x="280" y="30" text-anchor="middle" font-size="13" fill="#ffd98a" opacity="{mo}">震荡——在陡峭轴上过冲</text>
  <text x="280" y="30" text-anchor="middle" font-size="13" fill="#e0838f" opacity="{mx}">发散了——学习率压过了曲率</text>
  <text x="30" y="30" font-size="10" fill="#7c82a3">第 {s} 步</text>
  <text x="530" y="30" text-anchor="end" font-size="10" fill="#7c82a3">损失 ≈ {Ld}</text>
  <ellipse cx="350" cy="150" rx="206" ry="103" fill="none" stroke="#3f4a78" stroke-width="1" opacity="0.5"/>
  <ellipse cx="350" cy="150" rx="150" ry="75" fill="none" stroke="#3f4a78" stroke-width="1" opacity="0.6"/>
  <ellipse cx="350" cy="150" rx="100" ry="50" fill="none" stroke="#3f4a78" stroke-width="1" opacity="0.7"/>
  <ellipse cx="350" cy="150" rx="50" ry="25" fill="none" stroke="#3f4a78" stroke-width="1" opacity="0.8"/>
  <circle cx="350" cy="150" r="4" fill="#ffd98a"/>
  <circle cx="350" cy="150" r="9" fill="#ffd98a" opacity="0.25"/>
  <circle cx="190" cy="215" r="3" fill="none" stroke="#8a93b8" stroke-width="1.2" opacity="0.7"/>
  <text x="190" y="234" text-anchor="middle" font-size="8" fill="#6f7ba3">起点</text>
  <circle cx="{t4x}" cy="{t4y}" r="3.2" fill="#a795fb" opacity="{o4}"/>
  <circle cx="{t3x}" cy="{t3y}" r="3.6" fill="#a795fb" opacity="{o3}"/>
  <circle cx="{t2x}" cy="{t2y}" r="4" fill="#a795fb" opacity="{o2}"/>
  <circle cx="{t1x}" cy="{t1y}" r="4.5" fill="#a795fb" opacity="{o1}"/>
  <circle cx="{bx}" cy="{by}" r="11" fill="#8b7cf8" opacity="0.2"/>
  <circle cx="{bx}" cy="{by}" r="5.5" fill="#cfc6ff"/>
  <text x="280" y="284" text-anchor="middle" font-size="9" fill="#6f7ba3">碗面纵向陡 4 倍——先爆炸的总是陡的那根轴</text>
</svg>
```
