dcase_util.files.Serializer

class dcase_util.files.Serializer[source]

Data serialization class

__init__(*args, **kwargs)

Methods

__init__(*args, **kwargs)

file_exists(filename)

File exists

load_cpickle(filename)

Load CPICKLE file

load_json(filename)

Load JSON file

load_marshal(filename)

Load MARSHAL file

load_msgpack(filename)

Load MSGPACK file

load_yaml(filename)

Load YAML file

logger()

save_cpickle(filename, data)

Save data into CPICKLE file

save_json(filename, data)

Save data into JSON file

save_marshal(filename, data)

Save data into MARSHAL file

save_msgpack(filename, data)

Save data into MSGPACK file

save_yaml(filename, data)

Save data into YAML file