cbbcea8795e8da754a5b3ffb1a08ef66afd84eef,dask_image/ndmeasure/__init__.py,,center_of_mass,#Any#Any#Any#,23
Before Change
input.shape, chunks=input.chunks
)
input_i_wt = input[None] * input_i
input_i_wt_mtch_sum = []
for i in _pycompat.irange(len(input_i_wt)):
input_i_wt_mtch_sum.append(sum(input_i_wt[i], labels, index))
input_i_wt_mtch_sum = dask.array.stack(input_i_wt_mtch_sum, axis=-1)
After Change
input_wt_mtch_sum = []
for i in _pycompat.irange(input.ndim):
sl = input.ndim * [None]
sl[i] = slice(None)
sl = tuple(sl)
input_i = dask.array.arange(input.shape[i], chunks=input.chunks[i])
input_wt = input * input_i[sl]
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 4
Instances
Project Name: dask/dask-image
Commit Name: cbbcea8795e8da754a5b3ffb1a08ef66afd84eef
Time: 2018-09-02
Author: jakirkham@gmail.com
File Name: dask_image/ndmeasure/__init__.py
Class Name:
Method Name: center_of_mass
Project Name: mne-tools/mne-python
Commit Name: 2dd49058dba6cf1527e2414221d4b08b127f96d5
Time: 2019-04-24
Author: larson.eric.d@gmail.com
File Name: mne/forward/forward.py
Class Name:
Method Name: _restrict_gain_matrix
Project Name: dask/dask-image
Commit Name: cbbcea8795e8da754a5b3ffb1a08ef66afd84eef
Time: 2018-09-02
Author: jakirkham@gmail.com
File Name: dask_image/ndmeasure/_utils.py
Class Name:
Method Name: _ravel_shape_indices
Project Name: geomstats/geomstats
Commit Name: b7efa1f037f8adc94a28fc421dd7934b63b3043e
Time: 2020-04-22
Author: 62605255+pchauchat@users.noreply.github.com
File Name: geomstats/_backend/numpy/__init__.py
Class Name:
Method Name: assignment