posteriors_to_frame¶
- LinearModel.posteriors_to_frame() DataFrame
It 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.DataFrameReturns 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
ValueErrorIf
posteriorsare not available because the methodLinearRegression.samplehas not been called yet.