Improve the formatting of model params from each node in `Strategy`
Currently model_params
in the strategy are a list of [{'node_id': {param_name: param_value}}, ...]
.
As pointed out by @paandrey , @ybouilla , it would be better to format this as a {node_id: {param_name: param_value}}
dict directly.
This requires some re-working of the Strategy
class.
Similarly, the weights
in the aggregator are a list of single-item dictionaries of the format
[{'node_id': weight}, ...]
Again, this whuold be better formatted as a dictionary {'node_id': weight}
Edited by CREMONESI Francesco