cf7ed441052a1514bc7747661011944043d95206,inferno/extensions/metrics/arand.py,,adapted_rand,#Any#Any#,39

Before Change


    gt_zeros = np.all(gt == 0)
    if  seg_zeros or gt_zeros:
        if seg_zeros:
            logger.error("Segmentation is all zeros.")
        else:
            print(gt.shape)
            print(np.unique(gt))
            logger.error("Groundtruth is all zeros.")

After Change


    gt_zeros = np.all(gt == 0)
    if  seg_zeros or gt_zeros:
        if seg_zeros:
            logger.warn("Segmentation is all zeros, ignoring for eval.")
            return None
        else:
            print(gt.shape)
            print(np.unique(gt))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: inferno-pytorch/inferno
Commit Name: cf7ed441052a1514bc7747661011944043d95206
Time: 2018-08-14
Author: constantin.pape@iwr.uni-heidelberg.de
File Name: inferno/extensions/metrics/arand.py
Class Name:
Method Name: adapted_rand


Project Name: HazyResearch/fonduer
Commit Name: 6caf962ceb9bee46ef7dc17c789207bd00666761
Time: 2018-08-17
Author: lwhsiao@stanford.edu
File Name: fonduer/parser/parser.py
Class Name: ParserUDF
Method Name: apply


Project Name: pyinstaller/pyinstaller
Commit Name: 2c5e9cf15a523b23d6a98f632b2efd374de85058
Time: 2015-11-22
Author: dustin@virtualroadside.com
File Name: PyInstaller/utils/hooks/__init__.py
Class Name:
Method Name: get_typelibs