fedn.network package

The statestore package is responsible for storing various states of the federated network. Such as announced combiners and assigned clients. It also stores metadata about models, rounds, sessions, compute packages and model validations.

Subpackages

Submodules

fedn.network.config module

class fedn.network.config.Config[source]

Bases: ABC

class fedn.network.config.ReducerConfig[source]

Bases: Config

Configuration for the Reducer component.

compute_bundle_dir = None
initial_model = None
models_dir = None
storage_backend = {'settings': {'bucket': 'models'}, 'type': 's3'}

fedn.network.state module

class fedn.network.state.ReducerState(value)[source]

Bases: Enum

Enum for representing the state of a reducer.

idle = 2
instructing = 3
monitoring = 4
setup = 1
fedn.network.state.ReducerStateToString(state)[source]

Convert ReducerState to string.

Parameters:

state (fedn.network.state.ReducerState) – The state.

Returns:

The state as string.

Return type:

str

fedn.network.state.StringToReducerState(state)[source]

Convert string to ReducerState.

Parameters:

state (str) – The state as string.

Returns:

The state.

Return type:

fedn.network.state.ReducerState