[Fix] Fix potential unexcepted behaviors if `metric_options` is not specified in multi-label evaluation. (#647)
* Update multi_label.py * Fix lint Co-authored-by: mzr1996 <mzr1996@163.com>pull/679/head
parent
94eb3ff83e
commit
8488a784f0
|
@ -47,7 +47,7 @@ class MultiLabelDataset(BaseDataset):
|
|||
Returns:
|
||||
dict: evaluation results
|
||||
"""
|
||||
if metric_options is None:
|
||||
if metric_options is None or metric_options == {}:
|
||||
metric_options = {'thr': 0.5}
|
||||
|
||||
if deprecated_kwargs != {}:
|
||||
|
|
Loading…
Reference in New Issue