-
Notifications
You must be signed in to change notification settings - Fork 216
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add tests for Fed EVal #1296
Add tests for Fed EVal #1296
Conversation
Signed-off-by: Chaurasiya, Payal <[email protected]>
Signed-off-by: Chaurasiya, Payal <[email protected]>
Signed-off-by: Chaurasiya, Payal <[email protected]>
Signed-off-by: Chaurasiya, Payal <[email protected]>
Signed-off-by: Chaurasiya, Payal <[email protected]>
Signed-off-by: Chaurasiya, Payal <[email protected]>
Signed-off-by: Chaurasiya, Payal <[email protected]>
Signed-off-by: Chaurasiya, Payal <[email protected]>
Signed-off-by: Chaurasiya, Payal <[email protected]>
Signed-off-by: Chaurasiya, Payal <[email protected]>
Signed-off-by: Chaurasiya, Payal <[email protected]>
Signed-off-by: Chaurasiya, Payal <[email protected]>
Signed-off-by: Chaurasiya, Payal <[email protected]>
Signed-off-by: Chaurasiya, Payal <[email protected]>
Signed-off-by: Chaurasiya, Payal <[email protected]>
Signed-off-by: Chaurasiya, Payal <[email protected]>
Signed-off-by: Chaurasiya, Payal <[email protected]>
assert fed_helper.verify_federation_run_completion( | ||
fx_federation_tr, |
Check notice
Code scanning / Bandit
Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
assert fed_helper.verify_federation_run_completion( | ||
new_fed_obj, |
Check notice
Code scanning / Bandit
Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
log.info(f"Model accuracy during evaluation only on prev trained model is : {model_accuracy_eval})") | ||
|
||
# verify that the model accuracy is similar to the previous model accuracy max of 1% difference | ||
assert abs(model_accuracy - model_accuracy_eval) <= 0.01, "Model accuracy is not similar to the previous model accuracy" |
Check notice
Code scanning / Bandit
Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
assert fed_helper.verify_federation_run_completion( | ||
fx_federation_tr_dws, |
Check notice
Code scanning / Bandit
Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
assert fed_helper.verify_federation_run_completion( | ||
new_fed_obj, |
Check notice
Code scanning / Bandit
Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
log.info(f"Model accuracy during evaluation only on prev trained model is : {model_accuracy_eval})") | ||
|
||
# verify that the model accuracy is similar to the previous model accuracy max of 1% difference | ||
assert abs(model_accuracy - model_accuracy_eval) <= 0.01, "Model accuracy is not similar to the previous model accuracy" |
Check notice
Code scanning / Bandit
Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some minor changes requested - rest LGTM 👍
Signed-off-by: Chaurasiya, Payal <[email protected]>
Signed-off-by: Chaurasiya, Payal <[email protected]>
Add tests for FedEval
Steps -
Also change the mounting process of dockerize job
Create workflow file for the tests
Jobs -
Regression -
https://github.com/payalcha/openfl/actions/runs/12926470885
https://github.com/payalcha/openfl/actions/runs/12926488973
Added tests -
https://github.com/payalcha/openfl/actions/runs/12943482432
https://github.com/payalcha/openfl/actions/runs/12943483520