neuralib.persistence.persistence

field

Cache class's exported field.

autoinc_field

make a field as auto increment, which can be used to save and distinguish between same source data but different random/shuffle persistence result.

persistence_class

A class decorator.

ensure_persistence_class

ensure data is a persistence class.

as_dict

transform persistence data into dictionary, which field as key.

from_dict

transform dictionary

load

Load data as data_cls from path.

save

save persistence data under path.

filename

Get data persistence filename.

AutoIncFieldNotResolvedError

Raised when a persistence's autoinc field is not resolved, and it is unable to do following operations.

auto_generated_content

It is used to mark the function which its function body is auto generated.

PersistenceHandler

The handler for loading and saving persistence instance.

PickleHandler

Support field type: all python objects.

GzipHandler

Support field type: all python objects.