save_env#
- save_env(env, filename, protocol=5)[source]#
Save environment in Python pickle format.
- Parameters:
env (environment object) – NeuGym environment object.
filename (str) – Filename to write. Filenames ending in .gz or .bz2 will be compressed.
protocol (integer) – Pickling protocol to use. Default value:
pickle.HIGHEST_PROTOCOL.
Examples
>>> W = GridWorld() >>> ng.save_env(W, "test.pkl")
References