File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -250,13 +250,14 @@ def measure(
250
250
251
251
n = len (outputs )
252
252
_log .info ("computing %d listwise metrics for %d output lists" , len (lms ), n )
253
+ no_test_count = 0
253
254
with item_progress ("Measuring" , n ) as pb :
254
255
for i , (key , out ) in enumerate (outputs ):
255
256
list_test = test .lookup_projected (key )
256
257
if out is None :
257
258
pass
258
259
elif list_test is None :
259
- _log . warning ( "list %s: no test items" , key )
260
+ no_test_count += 1
260
261
else :
261
262
l_row : list [float | None ] = []
262
263
for m in lms :
@@ -272,6 +273,9 @@ def measure(
272
273
list_results .iloc [i ] = l_row # type: ignore
273
274
pb .update ()
274
275
276
+ if no_test_count :
277
+ _log .warning ("could not find test data for %d lists" , no_test_count )
278
+
275
279
_log .info ("computing %d global metrics for %d output lists" , len (gms ), n )
276
280
global_results = pd .Series (
277
281
{
You can’t perform that action at this time.
0 commit comments