IBM / federated-learning-lib

A library for federated learning (a distributed machine learning process) in an enterprise environment.
Other
499 stars 135 forks source link

AttributeError: “Party” object has no attribute "connection". #102

Closed jiang121381 closed 2 years ago

jiang121381 commented 2 years ago

It's in party.py . I have tried to add the attribute "connection" to it.But it seems that it doedn't work.

Yi-Zoey commented 2 years ago

Hi @jiang121381 can you provide more details about when you encountered this issue? And can you also share your party's config file?

jiang121381 commented 2 years ago

It happened when i run the project in "sklearn_logclassification_rw_p0.ipynb". The code " File "examples/rw_p0.py", line 64, in party_new.register_party(is_active=False) " File "/home/jiang/anaconda3/envs/ibmfl/lib/python3.6/site-packages/ibmfl/party/party.py", line 158, in register_party 'connection': self.connection.get_connection_config(), AttributeError: 'Party' object has no attribute 'connection' And i have checked the party.py.There is no attribute "connection".the code is below: self.data_handler = None self.fl_model = None self.evidencia = None

Then i try to add the attribute "connection"to it.But it shows that "NonetypeError"

Yi-Zoey commented 2 years ago

@jiang121381 thanks for providing this information. We are working on fixing this notebook.

jiang121381 commented 2 years ago

Thank you for your help!

Yi-Zoey commented 2 years ago

@jiang121381 if you pull from the current main, and run the new notebook, it should resolve the issue you've seen.