0ee3c26c470c57bd5516a7f936b2d8991835da26,arviz/data/io_dict.py,DictConverter,predictions_to_xarray,#DictConverter#,98
Before Change
if not isinstance(data, dict):
raise TypeError("DictConverter.predictions is not a dictionary")
return dict_to_dataset(data, library=None, coords=self.coords, dims=self.dims)
@requires("prior")
def prior_to_xarray(self):
Convert prior samples to xarray.
After Change
def predictions_to_xarray(self):
Convert predictions to xarray.
data = self.predictions
data_warmup = self.warmup_predictions if self.warmup_predictions is not None else {}
if not isinstance(data, dict):
raise TypeError("DictConverter.predictions is not a dictionary")
if not isinstance(data_warmup, dict):
raise TypeError("DictConverter.warmup_predictions is not a dictionary")
return (
dict_to_dataset(
data, library=None, coords=self.coords, dims=self.pred_dims, attrs=self.attrs
),
dict_to_dataset(
data_warmup, library=None, coords=self.coords, dims=self.pred_dims, attrs=self.attrs
),
)
@requires("prior")
def prior_to_xarray(self):
Convert prior samples to xarray.
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 19
Instances
Project Name: arviz-devs/arviz
Commit Name: 0ee3c26c470c57bd5516a7f936b2d8991835da26
Time: 2020-08-13
Author: gautampiyus@gmail.com
File Name: arviz/data/io_dict.py
Class Name: DictConverter
Method Name: predictions_to_xarray
Project Name: arviz-devs/arviz
Commit Name: 0ee3c26c470c57bd5516a7f936b2d8991835da26
Time: 2020-08-13
Author: gautampiyus@gmail.com
File Name: arviz/data/io_dict.py
Class Name: DictConverter
Method Name: posterior_predictive_to_xarray
Project Name: arviz-devs/arviz
Commit Name: 0ee3c26c470c57bd5516a7f936b2d8991835da26
Time: 2020-08-13
Author: gautampiyus@gmail.com
File Name: arviz/data/io_dict.py
Class Name: DictConverter
Method Name: posterior_to_xarray
Project Name: arviz-devs/arviz
Commit Name: 0ee3c26c470c57bd5516a7f936b2d8991835da26
Time: 2020-08-13
Author: gautampiyus@gmail.com
File Name: arviz/data/io_dict.py
Class Name: DictConverter
Method Name: sample_stats_to_xarray
Project Name: arviz-devs/arviz
Commit Name: 0ee3c26c470c57bd5516a7f936b2d8991835da26
Time: 2020-08-13
Author: gautampiyus@gmail.com
File Name: arviz/data/io_dict.py
Class Name: DictConverter
Method Name: log_likelihood_to_xarray
Project Name: arviz-devs/arviz
Commit Name: 0ee3c26c470c57bd5516a7f936b2d8991835da26
Time: 2020-08-13
Author: gautampiyus@gmail.com
File Name: arviz/data/io_dict.py
Class Name: DictConverter
Method Name: predictions_to_xarray