Click here to Skip to main content
15,885,435 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,
I have a problem
please guide me
thank you

from keras.layers import Input, LSTM, concatenate, Dense, Lambda
from keras.models import Model

input_ = Input(shape=(30, 6), name='input')
input_1 = Lambda(lambda x: x[:, :15, :])(input)
input_2 = Lambda(lambda x: x[:, 15:, :])(input)
lstm1 = LSTM(256, name='lstm1')(input_1)
lstm2 = LSTM(256, name='lstm2')(input_2)
concat = concatenate([lstm1, lstm2]) 
output = Dense(6, activation='tanh', name='dense')(concat)
model = Model(inputs=input_, outputs=output)


What I have tried:

Hi,
I have a problem
please guide me

How to train this code with Federated Averaging (FedAvg)?
Posted
Updated 11-Jun-21 2:37am
Comments
Patrice T 10-Jun-21 17:53pm    
Describe the problem.
amir elmjamili 11-Jun-21 7:37am    
How to train this code with federated averaging (fedavg)?
Richard MacCutchan 11-Jun-21 5:26am    
"I have a problem"
Well why are you keeping it a secret?
amir elmjamili 11-Jun-21 7:35am    
How to train this code with Federated Averaging (FedAvg)?
Richard MacCutchan 11-Jun-21 8:10am    
Probably by studying whatever you are interested in. This forum is named Quick Answers as it is for answering actual coding questions. There is neither the time nor the space to provide tutorials on obscure subjects.

1 solution

 
Share this answer
 
Comments
amir elmjamili 11-Jun-21 10:20am    
thank you.
Of course, there are more important resources than this site, such as
www.tensorflow.org
https://github.com/mikemikezhu/federated-learning-facial-expression-recognition
https://github.com/topics/fedavg
https://github.com/pliang279/LG-FedAvg
https://github.com/katsura-jp/fedavg.pytorch
https://towardsdatascience.com/federated-learning-a-simple-implementation-of-fedavg-federated-averaging-with-pytorch-90187c9c9577
https://arxiv.org/pdf/1812.06127.pdf
https://medium.com/disassembly/federated-learning-aggregate-method-1-c2f96bc03f59
,...
I did not understand how to train a system parallel to fedavg
It seems that there are no experts in this field on this site


Community Verified icon
Richard MacCutchan 11-Jun-21 11:02am    
As I said, this is the Quick Answers forum, please read https://www.codeproject.com/KB/FAQs/QuickAnswersFAQ.aspx[^].

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900