7d11df30d7b62e47321775c3cd41fbe51a0305b2,pyemma/_base/subset.py,,globalise,#Any#Any#Any#Any#Any#,48
Before Change
if ndim == 1:
array[active_set] = data
elif ndim == 2:
array = array.reshape(-1, shape_org[1])
if axis == 0:
array[active_set, :] = data
elif axis == 1:
array[:, active_set] = data
After Change
array = _np.asarray([default_value]).repeat(n_centers)
array[active_set] = data
elif data.ndim == 2:
expanded_shape = list(data.shape)
expanded_shape[axis] = n_centers
array = _np.asarray([default_value]).repeat(
expanded_shape[0] * expanded_shape[1]).reshape(expanded_shape)
if axis == 0:
array[active_set, :] = data
elif axis == 1:
array[:, active_set] = data
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: markovmodel/PyEMMA
Commit Name: 7d11df30d7b62e47321775c3cd41fbe51a0305b2
Time: 2016-08-18
Author: christoph.wehmeyer@fu-berlin.de
File Name: pyemma/_base/subset.py
Class Name:
Method Name: globalise
Project Name: keras-team/keras
Commit Name: 45a10bc6d708fade197a37bfbc62312caf70e6a7
Time: 2017-02-17
Author: francois.chollet@gmail.com
File Name: keras/layers/convolutional_recurrent.py
Class Name: ConvLSTM2D
Method Name: get_constants
Project Name: tensorflow/models
Commit Name: 8da4857396fcedb1abd19a08cd4de40d16c7bc50
Time: 2020-08-17
Author: 30733558+plakal@users.noreply.github.com
File Name: research/audioset/yamnet/yamnet_test.py
Class Name: YAMNetTest
Method Name: clip_test