ソースを参照

Precision-Recall Curve feature update #1206

5.0
Glenn Jocher GitHub 3年前
コミット
8e9b3d0205
この署名に対応する既知のキーがデータベースに存在しません GPGキーID: 4AEE18F83AFDEB23
1個のファイルの変更1行の追加1行の削除
  1. +1
    -1
      utils/general.py

+ 1
- 1
utils/general.py ファイルの表示

@@ -337,7 +337,7 @@ def compute_ap(recall, precision):
# Integrate area under curve
method = 'interp' # methods: 'continuous', 'interp'
if method == 'interp':
x = np.linspace(0, 1, 1001) # 101-point interp (COCO)
x = np.linspace(0, 1, 101) # 101-point interp (COCO)
ap = np.trapz(np.interp(x, mrec, mpre), x) # integrate
else: # 'continuous'
i = np.where(mrec[1:] != mrec[:-1])[0] # points where x axis (recall) changes

読み込み中…
キャンセル
保存