-
Notifications
You must be signed in to change notification settings - Fork 181
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
Enable run cross-validation without training workflow and examples #2035
Conversation
…xample for demonstration.
...ples/advanced/cross-validation-without-training/cifar10_fedavg/config/config_fed_server.json
Outdated
Show resolved
Hide resolved
...anced/cross-validation-without-training/cifar10_fedavg/custom/pt/learners/cifar10_learner.py
Outdated
Show resolved
Hide resolved
...cross-validation-without-training/cifar10_fedavg/custom/pt/learners/cifar10_model_learner.py
Outdated
Show resolved
Hide resolved
...ed/cross-validation-without-training/cifar10_fedavg/custom/pt/utils/cifar10_data_splitter.py
Outdated
Show resolved
Hide resolved
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.
the example seems duplicate the CIFAR10 examples with a lot details that is not needed.
Can we simplify this
I will explain in the meeting what's the point to make the cross-site validation re-run without training workflow work. And how is this example built. (exact the same as the cifar10_fedavg) |
…el_file_name and best_global_model_file_name, setting to the abosolute model paths.
examples/advanced/cross-validation-without-training/models/server/best_FL_global_model.pt
Outdated
Show resolved
Hide resolved
examples/advanced/cross-validation-without-training/models/server/FL_global_model.pt
Outdated
Show resolved
Hide resolved
examples/advanced/cross-validation-without-training/models/client/local_model.pt
Outdated
Show resolved
Hide resolved
examples/advanced/cross-validation-without-training/models/client/best_local_model.pt
Outdated
Show resolved
Hide resolved
...anced/cross-validation-without-training/cifar10_fedavg/custom/pt/learners/cifar10_learner.py
Outdated
Show resolved
Hide resolved
...ss-validation-without-training/cifar10_fedavg/custom/pt/learners/cifar10_scaffold_learner.py
Outdated
Show resolved
Hide resolved
...cross-validation-without-training/cifar10_fedavg/custom/pt/learners/cifar10_model_learner.py
Outdated
Show resolved
Hide resolved
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.
I unresolved some issues raised before.
|
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 additional changes needed in np_model_locator. See comments.
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.
LGTM
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.
Overall LGTM.
My only concern is those binary files.
Could it be possible we have some scripts to generate this?
For example:
mock_train.py
import numpy as np
result = np.array(
[1,2,3]
)
np.save(result)
This way it might be clearer for the users.
We can do this in another PR as well.
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.
We can address the data preparation in next PR.
Changed to use a script to generate the pre-trained models. Removed the binary model files. |
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.
LGTM with minor readme wording changes
/build |
/build |
…xample for demonstration.
Fixes # .
Description
To enable re-run cross-site validation without the training workflow. Also include an cifar10_fedavg example to demonstrate how to configure and run cross-site validation indepentelty.
Types of changes
./runtest.sh
.