stable_learning_control.utils.serialization_utils
Module used for serializing json objects.
Note
This module was based on spinningup repository.
Functions
|
Convert obj to a version which can be serialised with JSON. |
Check if object can be serialised with JSON. |
|
|
Save python object to Json file. This method will serialize the object to |
|
Load data from json file. |
Module Contents
- stable_learning_control.utils.serialization_utils.convert_json(obj)[source]
Convert obj to a version which can be serialised with JSON.
- stable_learning_control.utils.serialization_utils.is_json_serializable(v)[source]
Check if object can be serialised with JSON.
- stable_learning_control.utils.serialization_utils.save_to_json(input_object, output_filename, output_path)[source]
Save python object to Json file. This method will serialize the object to JSON, while handling anything which can’t be serialized in a graceful way (writing as informative a string as possible).