Models and result instances have a save and load method, so you don't need to use the brine module directly.
Edit to add an example:
import statsmodels.api as sm data = sm.datasets.longley.load_pandas() data.exog['constant'] = 1 results = sm.OLS(data.endog, data.exog).fit() results.save("longley_results.pickle")
Edit 2 Now we have added the load method to the main statsmodels APIs in master, so you can just do
new_results = sm.load('longley_results.pickle')
jseabold
source share