repl.txt (823B)
1 2 {{alias}}() 3 Returns an accumulator function which incrementally computes the mean 4 absolute percentage error (MAPE). 5 6 If provided input values, the accumulator function returns an updated mean 7 absolute percentage error. If not provided input values, the accumulator 8 function returns the current mean absolute percentage error. 9 10 If provided `NaN` or a value which, when used in computations, results in 11 `NaN`, the accumulated value is `NaN` for all future invocations. 12 13 Returns 14 ------- 15 acc: Function 16 Accumulator function. 17 18 Examples 19 -------- 20 > var accumulator = {{alias}}(); 21 > var m = accumulator() 22 null 23 > m = accumulator( 2.0, 3.0 ) 24 ~33.33 25 > m = accumulator( 5.0, 2.0 ) 26 ~91.67 27 > m = accumulator() 28 ~91.67 29 30 See Also 31 -------- 32