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,
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
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: keras-team/keras
Commit Name: b938b91b527760cef3af29031e74ab181f2fc2b9
Time: 2019-07-07
Author: psv@google.com
File Name: keras/engine/training_generator.py
Class Name:
Method Name: evaluate_generator
Project Name: PetrochukM/PyTorch-NLP
Commit Name: e58e5a994ab596edfa81e167ac34c829b0fddbca
Time: 2019-02-26
Author: zbyte64@gmail.com
File Name: torchnlp/word_to_vector/pretrained_word_vectors.py
Class Name: _PretrainedWordVectors
Method Name: cache