minko186 commited on
Commit
f22250e
1 Parent(s): 075be7c

add edge case if models to check is empty

Browse files
Files changed (1) hide show
  1. predictors.py +3 -0
predictors.py CHANGED
@@ -273,6 +273,9 @@ def predict_1on1_single(input, model):
273
 
274
  def predict_1on1_scores(input, models):
275
 
 
 
 
276
  print(f"Models to Test: {models}")
277
  # BC SCORE
278
  bc_scores = []
 
273
 
274
  def predict_1on1_scores(input, models):
275
 
276
+ if len(models) == 0:
277
+ return {}
278
+
279
  print(f"Models to Test: {models}")
280
  # BC SCORE
281
  bc_scores = []