masashitsubaki / CPI_prediction

This is a code for compound-protein interaction (CPI) prediction based on a graph neural network (GNN) for compounds and a convolutional neural network (CNN) for proteins.
Apache License 2.0
159 stars 36 forks source link

a question about the "tanh" in "attention_cnn" module #12

Open koyurion opened 3 years ago

koyurion commented 3 years ago

Hi, I have a question about the "attention_cnn" module. In general, it uses "softmax" rather than "tanh" to get the weights. But as below, your code it uses "tanh", so I am a little confused. Are there some reasons to use like that? thanks! image