posteriors_to_frame

LinearModel.posteriors_to_frame() DataFrame

Organizes the posteriors in a pandas.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 posteriors are not available because the method baypy.regression.LinearRegression.sample() has not been called yet.