posteriors¶
- property LinearModel.posteriors: dict[str, ndarray]
Posteriors of the regressors’ and variance parameters. Posteriors and relative samples are key-value pairs. Each sample is a
numpy.ndarraywith a number of rows equals to the number of iterations and a number of columns equal to the number of Markov chains.Returns¶
dictPosterior samples. Posteriors and relative samples are key-value pairs. Each sample is a
numpy.ndarraywith a number of rows equals to the number of iterations and a number of columns equal to the number of Markov chains.
Raises
TypeErrorIf
posteriorsis not adict,if a posterior sample is not a
numpy.ndarray.
KeyErrorIf
posteriorsdoes not contain both'intercept'and'variance'keys.ValueErrorIf a posterior sample is an empty
numpy.ndarray.