1a4afd3eb200e41706b67497bdc94261263147ee,berrynet/engine/movidius.py,,process_inceptionv3_output,#Any#Any#,85

Before Change



def process_inceptionv3_output(output, labels):
    top_inds = output.argsort()[::-1][:5]
    return [(labels[top_inds[i]], output[top_inds[i]]) for i in range(5)]


def print_inceptionv3_output(output, labels):

After Change


    top_inds = output.argsort()[::-1][:top_k]
    for i in range(top_k):
        human_string = labels[top_inds[i]]
        score = round(float(output[top_inds[i]]), decimal_digits)
        anno = {
            "type": "classification",
            "label": human_string,
            "confidence": score
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: DT42/BerryNet
Commit Name: 1a4afd3eb200e41706b67497bdc94261263147ee
Time: 2018-02-19
Author: bofu@dt42.io
File Name: berrynet/engine/movidius.py
Class Name:
Method Name: process_inceptionv3_output


Project Name: deepmipt/DeepPavlov
Commit Name: c672738b39c8f739551da0d88991a2fedfba3e14
Time: 2018-10-04
Author: puleon@mail.ru
File Name: deeppavlov/models/ranking/metrics.py
Class Name:
Method Name: rank_response


Project Name: deepmipt/DeepPavlov
Commit Name: c672738b39c8f739551da0d88991a2fedfba3e14
Time: 2018-10-04
Author: puleon@mail.ru
File Name: deeppavlov/models/ranking/metrics.py
Class Name:
Method Name: recall_at_k