Skip to content

[data_info]

Tools to write 'data_info' metadata fields specifications.

The 'data_info' dictionaries are a discrete yet important component of declearn's federated learning API. They convey aggregated information about clients' data to the server, which in turns validates, combines and passes the values to tools that require them - e.g. to initialize a Model or parametrize an Optimizer's OptiModule plug-ins.

This module implements a small API and a pair of functions that enable writing specifications for expected 'data_info' fields, and automating their use to validate and combine individual 'data_info' dicts into an aggregated one.

DataInfoField API tools

Field specifications

Deprecated field specifications