docstr: Generate predictions for predictions_params
docstr_tok: ["Generate","predictions","for","predictions_params"]
code: def predictions_data(self, data, predictions_params):
      """Generate predictions for predictions_params"""
      posterior_samples = data.obj.get_samples()
      model = data.obj.kernel.model
      predictions = Predictive(model, posterior_samples)(
          predictions_params["J"],
          torch.from_numpy(predictions_params["sigma"]).float(),
      )
      return predictions
  
file_path: arviz/arviz/tests/external_tests/test_data_pyro.py
imports: import numpy
  import packaging
  import pytest
  from ...data.io_pyro import from_pyro
  from ..helpers import chains, check_multiple_attrs, draws, eight_schools_params, importorskip, load_cached_models
label_desc: Use image node_id 3 for calling the TestDataPyro obj's underlying member method code with example usage: obj.predictions_data(data, predictions_params) and returns: predictions