fff2b2fcaad05ad7fd020e3cf96a8edd49d62084,arviz/wrappers/base.py,SamplingWrapper,log_likelihood__i,#SamplingWrapper#,135

Before Change


            stored in ``idata__i``.
        
        ndraws = idata__i.posterior.dims["draw"]
        nchains = idata__i.posterior.dims["chain"]
        log_like_idx = _wrap_xarray_ufunc(
            lambda pars: self.point_log_likelihood(excluded_obs, pars),
            idata__i.posterior.to_array(),
            func_kwargs={"out": np.empty((nchains, ndraws))},

After Change


            Log likelihood of ``excluded_obs`` evaluated at each of the posterior samples
            stored in ``idata__i``.
        
        if self.log_lik_fun is None:
            raise NotImplementedError(
                "When `log_like_fun` is not set during class initialization "
                "log_likelihood__i method must be overwritten"
            )
        posterior = idata__i.posterior
        arys = (*excluded_obs, *[posterior[var_name] for var_name in self.posterior_vars])
        if self.is_ufunc:
            ufunc_applier = apply_ufunc
        else:
            ufunc_applier = _wrap_xarray_ufunc
        log_lik_idx = ufunc_applier(
            self.log_lik_fun,
            *arys,
            kwargs=self.log_lik_kwargs,
            **self.apply_ufunc_kwargs,
        )
        return log_lik_idx
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 11

Instances


Project Name: arviz-devs/arviz
Commit Name: fff2b2fcaad05ad7fd020e3cf96a8edd49d62084
Time: 2021-01-13
Author: oriol.abril.pla@gmail.com
File Name: arviz/wrappers/base.py
Class Name: SamplingWrapper
Method Name: log_likelihood__i


Project Name: arviz-devs/arviz
Commit Name: fff2b2fcaad05ad7fd020e3cf96a8edd49d62084
Time: 2021-01-13
Author: oriol.abril.pla@gmail.com
File Name: arviz/wrappers/base.py
Class Name: SamplingWrapper
Method Name: log_likelihood__i


Project Name: Esri/raster-functions
Commit Name: 9d8f5baf55b4ebe2bd8c389383dff17bd77cc6b9
Time: 2014-09-25
Author: akferoz@esri.com
File Name: functions/SelectByPixelSize.py
Class Name: SelectByPixelSize
Method Name: updatePixels


Project Name: Esri/raster-functions
Commit Name: ff4623e804d49ae25411595eafb43b64c90ff75c
Time: 2014-09-25
Author: akferoz@esri.com
File Name: functions/SelectByPixelSize.py
Class Name: SelectByPixelSize
Method Name: updatePixels