Function: addModelGraph3D()
ts
function addModelGraph3D(plot, opts): ModelGraph3DHandle;Defined in: ml/model-chart.ts:602
Draw a model as a chain of cuboids sized from each layer's output tensor: the visible face is the last two dims (H×W) and the thickness is everything before them (channels) — so a CNN reads as feature maps shrinking while depth grows. Blocks flow along +x, branches spread along z, and hovering one shows its shape and parameter count.
Build the plot with new Plot3D(el, { aspectMode: "data", showAxes: false }) — the default cube fit would stretch a long chain until the blocks lose their proportions, and a diagram has no axes to label.
Parameters
| Parameter | Type |
|---|---|
plot | Plot3D |
opts | ModelGraph3DOptions |