Ray AIR Checkpoint#

See also

See this API reference section for framework-specific checkpoints used with AIR’s library integrations.

Constructor Options#

Checkpoint([local_path, data_dict, uri])

Ray AIR Checkpoint.

Checkpoint.from_dict(data)

Create checkpoint object from dictionary.

Checkpoint.from_bytes(data)

Create a checkpoint from the given byte string.

Checkpoint.from_directory(path)

Create checkpoint object from directory.

Checkpoint.from_uri(uri)

Create checkpoint object from location URI (e.g.

Checkpoint.from_checkpoint(other)

Create a checkpoint from a generic Checkpoint.

Checkpoint Properties#

Checkpoint.uri

Return checkpoint URI, if available.

Checkpoint.get_internal_representation()

Return tuple of (type, data) for the internal representation.

Checkpoint.get_preprocessor()

Return the saved preprocessor, if one exists.

Checkpoint.set_preprocessor(preprocessor)

Saves the provided preprocessor to this Checkpoint.

Checkpoint Format Conversions#

Checkpoint.to_dict()

Return checkpoint data as dictionary.

Checkpoint.to_bytes()

Return Checkpoint serialized as bytes object.

Checkpoint.to_directory([path])

Write checkpoint data to directory.

Checkpoint.as_directory()

Return checkpoint directory path in a context.

Checkpoint.to_uri(uri)

Write checkpoint data to location URI (e.g.