9a00ddb56e2f3e1e0142f5c3675fc6d9ea7ec017,dbn/tensorflow/models.py,SupervisedDBNClassification,_transform_network_format_to_labels,#SupervisedDBNClassification#,454

Before Change


        :param indexes: array-like, shape = (n_samples, )
        :return:
        
        return map(lambda idx: self.idx_to_label_map[idx], indexes)

    def predict(self, X):
        probs = self.predict_proba(X)
        indexes = np.argmax(probs, axis=1)

After Change


        :param indexes: array-like, shape = (n_samples, )
        :return:
        
        return list(map(lambda idx: self.idx_to_label_map[idx], indexes))

    def predict(self, X):
        probs = self.predict_proba(X)
        indexes = np.argmax(probs, axis=1)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 6

Non-data size: 3

Instances


Project Name: albertbup/deep-belief-network
Commit Name: 9a00ddb56e2f3e1e0142f5c3675fc6d9ea7ec017
Time: 2017-06-01
Author: luwei.yang.qm@gmail.com
File Name: dbn/tensorflow/models.py
Class Name: SupervisedDBNClassification
Method Name: _transform_network_format_to_labels


Project Name: dit/dit
Commit Name: dd50fef86998d9449bc8c6a8f9a06828bef8537d
Time: 2014-11-07
Author: chebee7i@gmail.com
File Name: dit/tests/test_distcont.py
Class Name:
Method Name: test_rvfunctions_toolarge


Project Name: YerevaNN/mimic3-benchmarks
Commit Name: ff7dda80bc0b721ee7e51e8fa14c758636416f76
Time: 2018-03-30
Author: harhro@gmail.com
File Name: mimic3benchmark/readers.py
Class Name: PhenotypingReader
Method Name: __init__


Project Name: YerevaNN/mimic3-benchmarks
Commit Name: e3b3317413e66e0dcfcbf594385446064cad62c4
Time: 2018-03-29
Author: harhro@gmail.com
File Name: mimic3models/common_utils.py
Class Name:
Method Name: convert_to_dict


Project Name: jazzband/django-debug-toolbar
Commit Name: 1decd62909db750f86b5437bc96ff941f4acd756
Time: 2013-10-17
Author: aymeric.augustin@m4x.org
File Name: debug_toolbar/utils/tracking/db.py
Class Name: NormalCursorWrapper
Method Name: _quote_params


Project Name: dgasmith/opt_einsum
Commit Name: bd214284c9e612910a73084d3976b09e48f76c12
Time: 2016-03-22
Author: mail@faroit.com
File Name: opt_einsum/__init__.py
Class Name:
Method Name: contract