ray-project / rayfed

A multiple parties joint, distributed execution engine based on Ray, to help build your own federated learning frameworks in minutes.
https://rayfed.readthedocs.io
Apache License 2.0
91 stars 20 forks source link

Enhance the value error when missing a reqiured param. #145

Closed jovany-wang closed 1 year ago

jovany-wang commented 1 year ago

Before this PR, if you miss the party on creating a fed actor, the program will hang. In this PR, we address that by raising a necessary ValueEerror. Please see the unit test for more details.

zhouaihui commented 1 year ago

Does this problem apply to fed function without party?

jovany-wang commented 1 year ago

Does this problem apply to fed function without party?

No. But func was done for that. https://github.com/ray-project/rayfed/blob/main/fed/api.py#L305