class_docstr: Encapsulate NumPyro specific logic.
class_docstr_tok: ["Encapsulate","NumPyro","specific","logic","."]
docstr: Convert the posterior to an xarray dataset.
docstr_tok: ["Convert","the","posterior","to","an","xarray","dataset","."]
code: def posterior_to_xarray(self):
      """Convert the posterior to an xarray dataset."""
      data = self._samples
      return dict_to_dataset(
          data,
          library=self.numpyro,
          coords=self.coords,
          dims=self.dims,
          index_origin=self.index_origin,
      )
  
imports: import logging
  from typing import Callable, Optional
  import numpy
  from ..None import utils
  from ..rcparams import rcParams
  from .base import dict_to_dataset, requires
  from .inference_data import InferenceData
label_desc: Use image node_id 2 for calling the NumPyroConverter obj's underlying member method code with example usage: obj.posterior_to_xarray() and returns: dict_to_dataset