nvflare.app_common.abstract.learnable module

class Learnable[source]

Bases: dict

classmethod from_bytes(data: bytes)[source]

Method to convert the object bytes into Learnable object.

Parameters:

data – a bytes object

Returns:

an object loaded by FOBS from data

is_empty()[source]
to_bytes() bytes[source]

Method to serialize the Learnable object into bytes.

Returns:

object serialized in bytes.