cb89711536f566f3ed7d121520fe32ad41ca83bc,finetune/association.py,Association,predict,#Association#Any#,136
Before Change
print("probs shape is ", pred["association_probs"].shape)
most_likely_associations = np.argmax(pred["association"], 0)
most_likely_class_id = pred["association"][range(len(most_likely_associations)), tuple(most_likely_associations)]
print([prob[idx, cls] for prob, idx, cls in zip(pred["association_probs"], most_likely_associations, most_likely_class_id)])
associations.append((
most_likely_associations,
After Change
labels.append(pred_labels)
batch_probas.append(pred["sequence_probs"])
pred["association_probs"] = self.prune_probs(pred["association_probs"], pred_labels)
most_likely_associations, most_likely_class_id = zip(*[np.unravel_index(np.argmax(a, axis=None), a.shape) for a in pred["association_probs"]])
associations.append((
most_likely_associations,
self.input_pipeline.association_encoder.inverse_transform(most_likely_class_id),
[prob[idx, cls] for prob, idx, cls in zip(pred["association_probs"], most_likely_associations, most_likely_class_id)]
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: IndicoDataSolutions/finetune
Commit Name: cb89711536f566f3ed7d121520fe32ad41ca83bc
Time: 2019-01-11
Author: benlt@hotmail.co.uk
File Name: finetune/association.py
Class Name: Association
Method Name: predict
Project Name: biocore/scikit-bio
Commit Name: c6a0d9f127ba7cac43e2bc3ab09549712ecc08f6
Time: 2014-06-23
Author: gregcaporaso@gmail.com
File Name: skbio/core/alignment/pairwise.py
Class Name:
Method Name: local_pairwise_align
Project Name: scikit-image/scikit-image
Commit Name: 96c15a18423d911654eaae3aa9c69896e523147d
Time: 2019-11-09
Author: rfezzani@gmail.com
File Name: skimage/measure/tests/test_marching_cubes.py
Class Name:
Method Name: test_both_algs_same_result_donut