Skip to content

Function: addPredVsActual()

ts
function addPredVsActual(plot, opts): PredVsActualHandle;

Defined in: ml/charts.ts:594

Predicted against actual, with the y = x line a perfect model would sit on. The gap between the cloud and that line is the error, which is why this reads better than a lone R² number.

Parameters

ParameterType
plotPlot
optsPredVsActualOptions

Returns

PredVsActualHandle

MIT licensed. WebGL2 required.