How to do alignment with PyG format xyz? #9411
Unanswered
StefanIsSmart
asked this question in
Q&A
Replies: 1 comment
-
|
The recommended way to do this is to convert your matrix into a 3-dimensional tensor with a batch dimension via |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
When we are dealing with compounds, sometimes we need to predict the structure.
The question is how to align them with the batch.
For example, there are
pred_xyzandlabel_xyz, we need to use SVD to align them and then use the MAEloss to calculate the loss of prediction.In PyG, the format of
pred_xyzandlabel_xyzwith be : (N, 3).[In fact, N is the sum of nodes from G compounds (So the batch_size of compounds is G, and the batch_size of Node is N, the length of every compound is different)]We cannot directly use SVD to align de
pred_xyzandlabel_xyz, because that will lead to thecompound_(1)will consider the coordinates ofcompound_(2-G)during the alignment.I have to do that by for-loop, but it is very ineffective.
How could I do that with batch rather than for-loop?
Beta Was this translation helpful? Give feedback.
All reactions