9f67a534bce1063693d7716df11311e7584b6786,libraries/python/classification_compare.py,OutputCompare,getData,#OutputCompare#Any#,47

Before Change


    def getData(self, filename):
        with open(filename, "r") as f:
            content = f.read()
            batches = content.strip().split("\n")
        data = [[float(item) for item in batch.strip().split(",")]
                for batch in batches]
        return data

After Change


            content_list = [float(entry.strip()) for entry in line.split(",")]
        dims = np.asarray(dims_list)
        content = np.asarray(content_list)
        data = np.reshape(content, dims)
        return data.tolist()

    def writeOneResult(self, values, data, metric, unit):
        entry = {
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: facebook/FAI-PEP
Commit Name: 9f67a534bce1063693d7716df11311e7584b6786
Time: 2018-12-11
Author: feisun@fb.com
File Name: libraries/python/classification_compare.py
Class Name: OutputCompare
Method Name: getData


Project Name: facebook/FAI-PEP
Commit Name: ef00242112458c4e5d5ba8c4c8c15e02c22ca105
Time: 2018-12-21
Author: feisun@fb.com
File Name: libraries/python/classification_compare.py
Class Name: OutputCompare
Method Name: getData


Project Name: ultralytics/yolov3
Commit Name: 5a9fb2411d89749c9afad21bee50c67b1b2afc1e
Time: 2019-08-15
Author: glenn.jocher@ultralytics.com
File Name: utils/parse_config.py
Class Name:
Method Name: parse_model_cfg