-
Notifications
You must be signed in to change notification settings - Fork 7
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
Traing #3
Comments
I recommend you to run Think of it as a function that returns a Keras model. And a Keras model can be used interchangeably with Keras layer. It means you can think of it as something similar to Dense() function. a=Input(...)
b=Input(...)
c=Input(...)
module = PermutationalModule(...) # create the keras model
out = module([a,b,c]) # use the keras model with 3 inputs (specify number of inputs in arguments of PermutationalModule()
out = Dense(NUMBER_OF_CLASSES, activation='softmax')(out)
model = keras.models.Model(inputs=[a,b,c], outputs=out)
model.compile('adam', loss='categorical_crossentropy', metrics=['accuracy']) which is about using functional API of keras (because there are multiple inputs). I'm not sure if the code prototype I gave you will work out of the box. But try fix it. The idea will be something like that. |
Thanks for your reply. I think I got the points. And I found the output of the By the way, can I consider this Thanks, |
I have never tried PermutationalModule with LSTM before so I'm not sure how to go about it. I think it's doable but you will have to experiment with it. |
Dear off99555:
If I want to use this code for classification, can you show me how to train your permutation model?
Thanks
The text was updated successfully, but these errors were encountered: