fedn.utils package¶
Submodules¶
fedn.utils.checksum module¶
fedn.utils.dispatcher module¶
fedn.utils.helpers module¶
- class fedn.utils.helpers.HelperBase[source]¶
Bases:
ABC
Abstract class defining helpers.
- abstract get_tmp_path()[source]¶
Return a temporary output path compatible with save_model, load_model.
- abstract increment_average(model, model_next, n)[source]¶
Compute one increment of incremental averaging. n: the iteration index 1…N in the sequence.
- abstract load_model_from_BytesIO(model_bytesio)[source]¶
Load a model from a BytesIO buffered object.
fedn.utils.kerashelper module¶
- class fedn.utils.kerashelper.KerasHelper[source]¶
Bases:
HelperBase
FEDn helper class for keras.Sequential.
fedn.utils.logger module¶
fedn.utils.numpyarrayhelper module¶
- class fedn.utils.numpyarrayhelper.NumpyArrayHelper[source]¶
Bases:
HelperBase
FEDn helper class for numpy arrays.
fedn.utils.process module¶
fedn.utils.pytorchhelper module¶
- class fedn.utils.pytorchhelper.PytorchHelper[source]¶
Bases:
HelperBase