How to send two separated data to two different collaborators? #778
Replies: 2 comments
-
Hi @amin-kaveh, welcome to OpenFL! In general, federated learning assumes that the collaborators are data owners so they already have a copy of the local/private dataset with them. Do you mean that in your case, the collaborators cannot access data? |
Beta Was this translation helpful? Give feedback.
-
hi amin Initialize an OpenFL workspaceworkspace = fx.workspace() Run the federated learning planworkspace.run_plan(federated_learning_plan) Evaluate the global model on the test setglobal_model = workspace.get_model() |
Beta Was this translation helpful? Give feedback.
-
Hi,
I am new in federated learning and openfl. I have two separated (let's call them private) datasets and I want to send them to each collaborators separately. When I review tutorials, it seems that
FederatedDataSet
gets all the data together and split them into multiple sets and thenFederatedModel
function sends the same model and splits of data to each collaborators.This is the code that have have from tutorials:
But suppose I have private data that I want to sent to each collaborators:
data for collaborator 1:
train_data_1, train_label_1, valid_data_1, valid_label_1
data for collaborator 2:
train_data_2, train_label_2, valid_data_2, valid_label_2
Now, I want to send the model and data to each collaborators separately and then train them. Something like this:
And then start training them.
What are those commands and how can I train the model?
I really appreciate any help and insight.
Beta Was this translation helpful? Give feedback.
All reactions