get_scorer_names#
- sklearn.metrics.get_scorer_names()#
获取所有可用评分器的名称。
这些名称可以传递给
get_scorer
以 检索评分器对象。- Returns:
- list of str
所有可用评分器的名称。
Examples
>>> from sklearn.metrics import get_scorer_names >>> all_scorers = get_scorer_names() >>> type(all_scorers) <class 'list'> >>> all_scorers[:3] ['accuracy', 'adjusted_mutual_info_score', 'adjusted_rand_score'] >>> "roc_auc" in all_scorers True