Skip to content

Function: addResiduals()

ts
function addResiduals(plot, opts): ResidualsHandle;

Defined in: ml/charts.ts:644

Residuals (actual − predicted) against the prediction or the sample order, with a zero line. Structure here — a curve, a fan, a drift — means the model is missing something, which no single score will tell you.

Parameters

ParameterType
plotPlot
optsResidualsOptions

Returns

ResidualsHandle

MIT licensed. WebGL2 required.