用法: sklearn.metrics.precision_recall_fscore_support(y_true, y_pred, *, beta=1.0, labels=None, pos_label=1, average=None, warn_for=('precision', 'recall', 'f-score'), sample_weight=None, zero_division='warn') 计算每个类的精度、召回率、F-measure 和支持。 精度是比率tp / (tp +...
shape[1] precision, recall, f_value, support = precision_recall_fscore_support(ground_truth, prediction_indices, beta=f_beta, pos_label=M, average=avg_method) else: precision, recall, f_value, support = precision_recall_fscore_support(ground_truth, prediction_indices, beta=f_beta, average...