Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/dbolya/yolact
/ is_empty
Method
is_empty
eval.py:530–531 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
528
self.num_gt_positives += num_positives
529
530
def
is_empty(self) -> bool:
531
return
len(self.data_points) == 0 and self.num_gt_positives == 0
532
533
def
get_ap(self) -> float:
534
""
" Warning: result not cached. "
""
Callers
1
calc_map
Function · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected