Load a pickled results instance .. warning:: Loading pickled models is not secure against erroneous or maliciously constructed data. Never unpickle data received from an untrusted or unauthenticated source. Parameters ----------
(cls, fname)
| 72 | |
| 73 | @classmethod |
| 74 | def load(cls, fname): |
| 75 | """ |
| 76 | Load a pickled results instance |
| 77 | |
| 78 | .. warning:: |
| 79 | |
| 80 | Loading pickled models is not secure against erroneous or |
| 81 | maliciously constructed data. Never unpickle data received from |
| 82 | an untrusted or unauthenticated source. |
| 83 | |
| 84 | Parameters |
| 85 | ---------- |
| 86 | fname : {str, handle} |
| 87 | A string filename or a file handle. |
| 88 | |
| 89 | Returns |
| 90 | ------- |
| 91 | Results |
| 92 | The unpickled results instance. |
| 93 | """ |
| 94 | from statsmodels.iolib.smpickle import load_pickle |
| 95 | return load_pickle(fname) |
| 96 | |
| 97 | |
| 98 | def union_dicts(*dicts): |