-
Notifications
You must be signed in to change notification settings - Fork 60
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
can we train bidirectional model? #6
Comments
Hi, Yes you can train the bi-LSTM model with whatever neural network toolbox you like (Tensorflow, Pytorch, Keras, Dynet...). Then you just need to save the trained model's weights as numpy arrays to use the LRP code (and check the ordering of the gates in your weights to make them compatible with the LRP code, here are some hints how to do this). |
Also what happens if I think of changing the classes to binary intstead of multiclass? |
Binary classification is just a special case of multiclass classification. So there is nothing you need to care about or change in the code if you want to apply it to a binary prediction task (the number of classes is not hard coded). Just save your weights in a python dict of numpy arrays (akin Typically, the only places where you need to adapt the code, will be the |
is it possible to train the bilsmt mode, does it require changing the model file with new weights?
The text was updated successfully, but these errors were encountered: