MCPcopy Create free account
hub / github.com/OpenDriveLab/OpenLane / get_precision

Method get_precision

eval/LANE_evaluation/lane2d/src/counter.cpp:26–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24#include "counter.hpp"
25
26double Counter::get_precision(void)
27{
28 cerr<<"tp: "<<tp<<" fp: "<<fp<<" fn: "<<fn<<endl;
29 if(tp+fp == 0)
30 {
31 cerr<<"no positive detection"<<endl;
32 return -1;
33 }
34 return tp/double(tp + fp);
35}
36
37double Counter::get_recall(void)
38{

Callers 1

mainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected