d55bad55b6a9e97f800c97c73038bc5ed8d4b31f,arviz/data/io_pystan.py,PyStanConverter,observed_data_to_xarray,#PyStanConverter#,219
Before Change
dims = self.dims
if isinstance(self.observed_data, dict):
observed_data = {}
for key, vals in self.observed_data.items():
vals = np.atleast_1d(vals)
val_dims = dims.get(key)
val_dims, coords = generate_dims_coords(
vals.shape, key, dims=val_dims, coords=self.coords
)
observed_data[key] = xr.DataArray(vals, dims=val_dims, coords=coords)
else:
if isinstance(self.observed_data, str):
observed_names = [self.observed_data]
else:
After Change
observed_names = self.observed_data
if isinstance(observed_names, str):
observed_names = [observed_names]
observed_data = OrderedDict()
for key in observed_names:
vals = np.atleast_1d(posterior.data[key])
val_dims = dims.get(key)
val_dims, coords = generate_dims_coords(
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 6
Instances
Project Name: arviz-devs/arviz
Commit Name: d55bad55b6a9e97f800c97c73038bc5ed8d4b31f
Time: 2018-11-03
Author: ahartikainen@users.noreply.github.com
File Name: arviz/data/io_pystan.py
Class Name: PyStanConverter
Method Name: observed_data_to_xarray
Project Name: etal/cnvkit
Commit Name: 08ac416593f765c6c91fef3dfe7538acdb588041
Time: 2016-02-10
Author: eric.talevich@gmail.com
File Name: cnvlib/commands.py
Class Name:
Method Name: do_heatmap
Project Name: matplotlib/matplotlib
Commit Name: cbc060c8fe914bb3c75f42f3af4fc40b0eadba52
Time: 2018-02-25
Author: anntzer.lee@gmail.com
File Name: lib/matplotlib/artist.py
Class Name:
Method Name: setp
Project Name: pfnet/optuna
Commit Name: 6165fc267993ef3b58ca918f623a7e344729e6dd
Time: 2020-02-27
Author: hiroyuki.vincent.yamazaki@gmail.com
File Name: optuna/importance/_fanova.py
Class Name:
Method Name: _get_distributions