You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and the centers are [0.25, 0.75, ..., 30.5, 31.5, 32.5], according to:
def_calculate_bin_centers(breaks: np.ndarray):
"""Gets the bin centers from the bin edges. Args: breaks: [num_bins - 1] the error bin edges. Returns: bin_centers: [num_bins] the error bin centers. """step= (breaks[1] -breaks[0])
# Add half-step to get the centerbin_centers=breaks+step/2# Add a catch-all bin at the end.bin_centers=np.concatenate([bin_centers, [bin_centers[-1] +step]],
axis=0)
returnbin_centers
Then the 64 bins are [0, 0.5], [0.5, 1] ..., [31, 31.5], [31.5, +inf].
But the bins defined in the PAE-loss are [-inf, 0], [0, 0.5], ...[31, +inf], which are left shifted for one bin, based on the definition in alphafold/alphafold/model/modules.py line 1200:
For example, for error_dist=0.75, which should fall into the second bin [0.5, 1], but (0.75>breaks).sum() is 2, the one_hot values are [0, 0, 1, 0, ..., 0] with the third entry being 1, which is incorrect.
The text was updated successfully, but these errors were encountered:
xiergo
changed the title
The bin edges defined in
The definition of bins in Predicted Aligned Error Head(PAE) may be wrong
Apr 17, 2024
I am confused about the definition of bins in Predicted Aligned Error Head(PAE). The
breaks
is defined as [0, 0.5, 1, ..., 31]and the centers are [0.25, 0.75, ..., 30.5, 31.5, 32.5], according to:
Then the 64 bins are [0, 0.5], [0.5, 1] ..., [31, 31.5], [31.5, +inf].
But the bins defined in the PAE-loss are [-inf, 0], [0, 0.5], ...[31, +inf], which are left shifted for one bin, based on the definition in
alphafold/alphafold/model/modules.py line 1200
:For example, for error_dist=0.75, which should fall into the second bin [0.5, 1], but
(0.75>breaks).sum()
is 2, the one_hot values are [0, 0, 1, 0, ..., 0] with the third entry being 1, which is incorrect.The text was updated successfully, but these errors were encountered: