Function: emaSmooth()
ts
function emaSmooth(values, weight?): Float64Array;Defined in: ml/metrics.ts:189
TensorBoard-style debiased EMA smoothing of a noisy training curve. weight in [0,1) is the momentum (0 = raw, →1 = very smooth). Non-finite inputs pass through untouched and don't advance the average.
Parameters
| Parameter | Type | Default value |
|---|---|---|
values | ArrayLike<number> | undefined |
weight | number | 0.6 |
Returns
Float64Array