Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
OpenFold
Commits
515b082d
Commit
515b082d
authored
Mar 21, 2024
by
Geoffrey Yu
Committed by
Jennifer Wei
May 13, 2024
Browse files
added comments
parent
9597368d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
openfold/utils/multi_chain_permutation.py
openfold/utils/multi_chain_permutation.py
+5
-2
No files found.
openfold/utils/multi_chain_permutation.py
View file @
515b082d
...
...
@@ -424,8 +424,11 @@ def compute_permutation_alignment(out: Dict[str,torch.Tensor],
features
:
Dict
[
str
,
torch
.
Tensor
],
ground_truth
:
List
[
Dict
[
str
,
torch
.
Tensor
]])
->
Tuple
[
List
[
Tuple
[
int
,
int
]],
Dict
[
int
,
List
[
int
]]]:
"""
A method that permutes chains in ground truth
before calculating the loss.
A method that permutes chains in ground truth before calculating the loss
because the mapping between the predicted and ground-truth will become arbitrary.
The model cannot be assumed to predict chains in the same order as the ground truth.
Thus, this function pick the optimal permutaion of predicted chains that best matches the ground truth,
by minimising the RMSD.
Args:
out: a dictionary of output tensors from model.forward()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment