[Q&A] Need help debugging this error: 'ValueError: Class nvflare.app_common.widgets.validation_json_generator.ValidationJsonGenerator has parameters error: TypeError: ValidationJsonGenerator.__init__() got an unexpected keyword argument 'num_rounds' #2599
-
Python version (
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
@aayush-kapoor Thanks for the question. The error message there means that, you try to pass the "num_rounds" to the component "ValidationJsonGenerator". If you want, you can share your "sag_custom" template and we can check which one is the right component that you want to pass num_rounds to |
Beta Was this translation helpful? Give feedback.
@aayush-kapoor Thanks for the question.
I see you are using our JOB CLI with your own "sag_custom" template.
The error message there means that, you try to pass the "num_rounds" to the component "ValidationJsonGenerator".
Seeing from your command, you are using
components[4].args.num_rounds=$num_rounds
I think you pass the "num_rounds" to an incorrect component.
If you want, you can share your "sag_custom" template and we can check which one is the right component that you want to pass num_rounds to