handle_train_message#
- fedcausal.flower.fedges.handle_train_message(msg, context, loader, make_site=<class 'fedcausal.fedges.site.Site'>)[source]#
Handle one
trainmessage, a site’s whole part of a round, and reply.- Parameters:
- msgMessage
The incoming message; its control record names the phase.
- contextContext
The node’s context. The site’s model persists in
context.state.- loaderPartitionLoader
Resolves the node’s data.
- make_sitecallable, default=Site
Builds the node’s site from its data, e.g.
functools.partial(Site, refinement="both").
- Returns:
- Message
The site’s DAG, its score and its schema.
- Raises:
- ClientFailureError
On an unknown phase, or a fuse message before any build.