toGraphvizDot

fun toGraphvizDot(rankdir: String = "LR"): String(source)

Produce a minimal Graphviz/DOT visualization of this tiny pretrained KAN. This does not depend on any external Graphviz library — it just returns a DOT string that you can render with the dot tool or any Graphviz viewer.

The graph shows a single input feeding into the fixed KAN layer node, and annotates that node with concise parameter summaries (counts).

Example usage:

  • Save to file: println(SineKanPretrained.toGraphvizDot()) > sine_kan.dot

  • Render PNG: dot -Tpng sine_kan.dot -o sine_kan.png