danf0 commited on
Commit
899e164
·
1 Parent(s): 175acee

Try dynamic value type

Browse files
Files changed (1) hide show
  1. vendiscore.py +4 -1
vendiscore.py CHANGED
@@ -76,7 +76,10 @@ def get_dtype(config_name):
76
  return datasets.Image
77
  elif config_name in ("X", "K"):
78
  return datasets.Array2D
79
- return datasets.Value("string")
 
 
 
80
 
81
 
82
  @evaluate.utils.file_utils.add_start_docstrings(
 
76
  return datasets.Image
77
  elif config_name in ("X", "K"):
78
  return datasets.Array2D
79
+ elif config_name == "default":
80
+ return datasets.Value("string")
81
+ else:
82
+ return datasets.Value(config_name)
83
 
84
 
85
  @evaluate.utils.file_utils.add_start_docstrings(