5e5c5374283ebbe1d32c10cbab271b893c03cdd7,chainercv/evaluations/eval_detection_voc.py,,_voc_ap,#Any#Any#Any#,173
Before Change
mpre = np.concatenate(([0.], prec, [0.]))
// compute the precision envelope
for i in six.moves.range(mpre.size - 1, 0, -1):
mpre[i - 1] = np.maximum(mpre[i - 1], mpre[i])
// to calculate area under PR curve, look for points
// where X axis (recall) changes value
i = np.where(mrec[1:] != mrec[:-1])[0]
// and sum (\Delta recall) * prec
ap = np.sum((mrec[i + 1] - mrec[i]) * mpre[i + 1])
After Change
mrec = np.concatenate(([0.], rec, [1.]))
mpre = np.concatenate(([0.], prec, [0.]))
mpre = np.maximum.accumulate(mpre[::-1])[::-1]
// to calculate area under PR curve, look for points
// where X axis (recall) changes value
i = np.where(mrec[1:] != mrec[:-1])[0]
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances Project Name: chainer/chainercv
Commit Name: 5e5c5374283ebbe1d32c10cbab271b893c03cdd7
Time: 2017-05-31
Author: Hakuyume@users.noreply.github.com
File Name: chainercv/evaluations/eval_detection_voc.py
Class Name:
Method Name: _voc_ap
Project Name: pfnet/optuna
Commit Name: 10efd7b636ca896b390406b760029d24d5916e88
Time: 2021-02-25
Author: contact@c-bata.link
File Name: optuna/visualization/matplotlib/_optimization_history.py
Class Name:
Method Name: _get_optimization_history_plot
Project Name: pfnet/optuna
Commit Name: 10efd7b636ca896b390406b760029d24d5916e88
Time: 2021-02-25
Author: contact@c-bata.link
File Name: optuna/visualization/_optimization_history.py
Class Name:
Method Name: _get_optimization_history_plot