Global AI and Data Science

 View Only
  • 1.  Party registration for Federated Learning

    Posted Mon May 02, 2022 09:33 AM
    Hi DS forum,

    I have been struggling to connect my local party for the federated learning experiment. I followed the TensorFlow UI tutorial given in IBM Federated UI experiment.

    The experiment is correctly set up, the connector script configuration / data handler / data files are configured as required, and the
    ibm_watson_machine_learning library (1.0.204) + python (3.9.10) are compatible.

    I get the following message while the aggregator is accepting connections and the process is stuck there.
    ...
    File "<IBMFedereatedLearning environment>\lib\asyncio\events.py", line 539, in add_signal_handler
        raise NotImplementedError
    NotImplementedError
    2022-04-30T11:49:05.906Z | 1.0.204 | INFO | ibmfl.party.party                                  | Party not registered yet.        
    2022-04-30T11:49:05.907Z | 1.0.204 | INFO | ibmfl.party.party                                  | Registering party...


    Could you please help me understand the issue here?

    I'm not sure if this is the correct space in the community to post my concern; if not, I would be grateful if someone could point me to the right direction :)



    ------------------------------
    Best,
    Prabesh
    ------------------------------

    #GlobalAIandDataScience
    #GlobalDataScience


  • 2.  RE: Party registration for Federated Learning

    Posted Tue February 21, 2023 09:10 AM

    In Python, NotImplementedError is an exception that is raised when a method or function is not implemented, or when a subclass does not implement an abstract method from its parent class. This exception can be raised intentionally to signal that the functionality is not yet implemented, or it can be raised accidentally due to a coding mistake.

    Check if the method or function is intentionally not implemented: If the NotImplementedError is raised intentionally, you can leave the method or function as is, or provide a placeholder implementation that raises the NotImplementedError. However, if the NotImplementedError is raised accidentally, you need to provide a proper implementation.

    If you are dealing with an python abstract method, you can either provide a concrete implementation for the method in the subclass, or mark the subclass as abstract and force its children to implement the method.



    ------------------------------
    david bill
    ------------------------------