Wrong EXCEPTION_MESSAGE_WRONG_RETURN_TYPE_FIT message #3948
Labels
bug
Something isn't working
part: misc framework
Issue/PR for general applications for Flower framework.
state: under review
Currently reviewing issue/PR
Describe the bug
In client/numpy_client.py the EXCEPTION_MESSAGE_WRONG_RETURN_TYPE_FIT constant is set to:
However, function _fit(...), that checks returned value type wants a Tuple[List, int, Dict[str,Scalar]]
Therefore, the error message printed is misleading for the users.
Steps/Code to Reproduce
To reproduce you simply need to implements a fit(...) function inside the numpy_client that returns a tuple with signature Tuple[NDArrays, int, Dict[str, Scalar]] as indicated in the error string.
For example:
Expected Results
Returning Tuple[NDArrays, int, Dict[str, Scalar]] should work as written in the error message, or the string should be fixed.
Actual Results
Returning a Tuple[NDArrays, int, Dict[str, Scalar]] in the fit function results in a raised exception and then an error.
The text was updated successfully, but these errors were encountered: