def load(file_or_path):
<EOL>import sys<EOL>import inspect<EOL>sys.modules['<STR_LIT>'] = kern.src<EOL>for name, module in inspect.getmembers(kern.src):<EOL><INDENT>if not name.startswith('<STR_LIT:_>'):<EOL><INDENT>sys.modules['<STR_LIT>'.format(name)] = module<EOL><DEDENT><DEDENT>sys.modules['<STR_LIT>'] = inference.optimization<EOL>import paramz<EOL>return paramz.load(file_or_path)<EOL>
Load a previously pickled model, using `m.pickle('path/to/file.pickle)'

:param file_name: path/to/file.pickle