kirineko/dsh-function-plot0

dsh-function-plot

2D teaching plots for DeepSeek Harness: activations, distributions, and classroom curves

AI 分析

核心用途是通过对话直接生成 2D 函数图像(如对比激活函数、正态分布等)并输出为 SVG。适合教学、算法演示或需要直观可视化数学函数的用户,免去模型调用图像读取的步骤。

パッケージ
dsh-function-plot
バージョン
0.1.5
ライセンス
MIT
最終更新
2026/08/17

インストール

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:kirineko/dsh-function-plot

ドキュメント

README 全文を読む ↗

使用

打开 http://127.0.0.1:3080,直接说要画什么。图会出现在 plot_function 卡片里:可切换远景 / 近景 / 对照,查看完整函数信息,或下载 SVG。不必再让模型调用 read_image。例如:

  • 对比 ReLU 和 GELU
  • 画标准正态密度
  • 画线性需求和供给
  • 画 sigmoid 的导数
  • 画 y = x^2 / 2,x 从 -3 到 3

画完后打开工作区里的 .dsh-plots/*.svg。不要让模型对 SVG 调用 read_image(只接受 PNG/JPEG/WebP/GIF,且 DeepSeek 官方模型不接收图像)。

同图画需求和供给时会标均衡点。改主题或采样数,编辑 ~/.dsh/profiles/web/cordis.patch.yml,按 id 整行覆盖:

- id: function-plot
  name: dsh-function-plot
  config:
    outputDir: .dsh-plots
    samples: 400
    width: 960
    height: 540
    theme: light