825d58e2bbbe234019898e414fb9129af1f17014,keras/initializers.py,Orthogonal,__call__,#Orthogonal#Any#Any#,231

Before Change


        self.seed = seed

    def __call__(self, shape, dtype=None):
        flat_shape = (shape[0], np.prod(shape[1:]))
        if self.seed is not None:
            np.random.seed(self.seed)
        a = np.random.normal(0.0, 1.0, flat_shape)

After Change


        num_rows = 1
        for dim in shape[:-1]:
            num_rows *= dim
        num_cols = shape[-1]
        flat_shape = (num_rows, num_cols)
        if self.seed is not None:
            np.random.seed(self.seed)
        a = np.random.normal(0.0, 1.0, flat_shape)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: keras-team/keras
Commit Name: 825d58e2bbbe234019898e414fb9129af1f17014
Time: 2017-02-24
Author: francois.chollet@gmail.com
File Name: keras/initializers.py
Class Name: Orthogonal
Method Name: __call__


Project Name: raghakot/keras-vis
Commit Name: 1cb6edf4c090461a7e43bfd1b866aaba4b02cabe
Time: 2017-05-07
Author: ragha@outlook.com
File Name: vis/regularizers.py
Class Name:
Method Name: normalize


Project Name: chainer/chainercv
Commit Name: 95019f66fa70766e78a949bddd336305be4918b8
Time: 2017-05-22
Author: yuyuniitani@gmail.com
File Name: chainercv/evaluations/eval_detection_voc.py
Class Name:
Method Name: _pred_and_rec_cls