a46f7616fc81eabeded8f3c5ce0a16d51cbec942,examples/segnet/eval_camvid.py,,main,#,43

Before Change


    confusion = calc_semantic_segmentation_confusion(pred_labels, gt_labels)
    ious = calc_semantic_segmentation_iou(confusion)

    pixel_accuracy = np.diag(confusion).sum() / confusion.sum()
    mean_pixel_accuracy = np.mean(
        np.diag(confusion) / np.sum(confusion, axis=1))

    for iou, label_name in zip(ious, camvid_label_names):

After Change


    print("=" * 34)
    print("{:>23} : {:.4f}".format("mean IoU", result["miou"]))
    print("{:>23} : {:.4f}".format(
        "Class average accuracy", result["mean_accuracy"]))
    print("{:>23} : {:.4f}".format(
        "Global average accuracy", result["pixel_accuracy"]))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 4

Instances


Project Name: chainer/chainercv
Commit Name: a46f7616fc81eabeded8f3c5ce0a16d51cbec942
Time: 2017-06-13
Author: yuyuniitani@gmail.com
File Name: examples/segnet/eval_camvid.py
Class Name:
Method Name: main


Project Name: geomstats/geomstats
Commit Name: 39c16df4d13f716bd6e1c4702e32890cb5944917
Time: 2020-11-19
Author: alice.le-brigant@enac.fr
File Name: geomstats/geometry/dirichlet_distributions.py
Class Name: DirichletMetric
Method Name: metric_matrix


Project Name: BindsNET/bindsnet
Commit Name: c0a89cb46b840905674f932b5f7aa0d7d607e090
Time: 2018-05-08
Author: djsaunde@umass.edu
File Name: examples/space_invaders/et_space_invaders.py
Class Name:
Method Name:


Project Name: ellisdg/3DUnetCNN
Commit Name: 26572a6f569dbe13d3b707ae103d089c8c425933
Time: 2018-03-14
Author: david.ellis@unmc.edu
File Name: unet3d/utils/utils.py
Class Name:
Method Name: resize


Project Name: uber/pyro
Commit Name: d7148f390db12a3f7e4b43ab584648b2e4a1882d
Time: 2020-11-07
Author: fritz.obermeyer@gmail.com
File Name: pyro/distributions/spanning_tree.py
Class Name: SpanningTree
Method Name: log_partition_function