load_env#

load_env(filename)[source]#

Load environment in Python pickle format.

Parameters:

filename (str) – Filename to read. Filenames ending in .gz or .bz2 will be uncompressed.

Returns:

W – NeuGym environment object.

Return type:

environment object

Examples

>>> W = GridWorld()
>>> ng.save_env(W, "test.pkl")
>>> W = ng.load_env("test.pkl")

References