e7baa93f4f397c2955cb30c83bf483f26e67f2f8,arviz/stats/diagnostics.py,,_rhat_ufunc,#Any#,229
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_rhat(ary[tuple(idxs)])
return target
def geweke(values, first=.1, last=.5, intervals=20):
After Change
target = np.empty(ary.shape[:-2])
for idx in np.ndindex(target.shape):
target[idx] = _get_rhat(ary[idx])
return target
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 7
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: _rhat_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: _neff_ufunc