recall
Description
API
recall([initialState={truePositives: 0, falseNegatives: 0}])Since
Parameters
Options
Returns
Examples
Last updated
recall([initialState={truePositives: 0, falseNegatives: 0}])Last updated
import { from } from 'rxjs';
import { recall } from '@buccaneer/rxjs-stats';
const items = [
[0, 1], // [trueLabel, prediction]
[0, 1],
[0, 1],
[0, 0],
[0, 0],
[1, 1],
[1, 1],
[1, 1],
[1, 1],
[1, 0],
];
const recall$ = from(items).pipe(
recall()
);
recall$.subscribe(console.log);
// Output
// 0
// 0
// 0
// 0
// 0
// 0.25
// 0.40
// 0.50
// 0.5714285714
// 0.5714285714