posteriors_to_frame¶
- LinearModel.posteriors_to_frame() DataFrame
Organizes the
posteriorsin apandas.DataFrame. Each posterior is a frame column. The length of the frame is the number of sampling iterations times the number of sampling chains.Returns¶
- pandas.DataFrame
Returns posterior samples. Posteriors are organized in a
pandas.DataFrame, one for each column. The length of the frame is the number of sampling iterations times the number of sampling chains.
Raises¶
- ValueError
If
posteriorsare not available because the methodbaypy.regression.LinearRegression.sample()has not been called yet.