server-json/node_modules/tfjs-image-recognition-base/build/es6/metrics/averagePrecision.d.ts
2024-11-01 08:00:42 +00:00

13 lines
533 B
TypeScript

import { GroundTruthsAndPredictions } from './types';
/**
* Calculates the average precision (AP) over 11 recall levels between [0, 1].
*
* @param inputs Array of ground truth and predicted boxes of each image.
* @param iouThreshold IOU threshold at which a predicted box is considered to be a true positive.
* @returns AP
*/
export declare function averagePrecision(inputs: GroundTruthsAndPredictions[], iouThreshold: number): {
averagePrec: number;
accumulatedTps: number;
accumulatedFps: number;
};