e7baa93f4f397c2955cb30c83bf483f26e67f2f8,arviz/stats/diagnostics.py,,_neff_ufunc,#Any#,107

Before Change


    `xr.apply_ufunc(_neff_ufunc, ..., input_core_dims=(("chain", "draw"),))
    
    target = np.empty(ary.shape[:-2])
    for idxs in itertools.product(*[np.arange(d) for d in target.shape]):
        idxs = list(idxs)
        idxs.append(Ellipsis)
        target[tuple(idxs)] = _get_neff(ary[tuple(idxs)])
    return target


def autocorr(x):

After Change


    `xr.apply_ufunc(_neff_ufunc, ..., input_core_dims=(("chain", "draw"),))
    
    target = np.empty(ary.shape[:-2])
    for idx in np.ndindex(target.shape):
        target[idx] = _get_neff(ary[idx])
    return target
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 9

Instances


Project Name: arviz-devs/arviz
Commit Name: e7baa93f4f397c2955cb30c83bf483f26e67f2f8
Time: 2018-10-08
Author: ahartikainen@users.noreply.github.com
File Name: arviz/stats/diagnostics.py
Class Name:
Method Name: _neff_ufunc


Project Name: dask/dask-image
Commit Name: 58e7111d89307b9a8608b4eaa6d521d8e9ce96a3
Time: 2018-10-01
Author: jakirkham@gmail.com
File Name: dask_image/ndmeasure/__init__.py
Class Name:
Method Name: labeled_comprehension


Project Name: arviz-devs/arviz
Commit Name: e7baa93f4f397c2955cb30c83bf483f26e67f2f8
Time: 2018-10-08
Author: ahartikainen@users.noreply.github.com
File Name: arviz/stats/diagnostics.py
Class Name:
Method Name: _rhat_ufunc