MCPcopy Create free account
hub / github.com/RosettaCommons/RFdiffusion / rbf

Function rbf

rfdiffusion/util_module.py:84–92  ·  view source on GitHub ↗
(D)

Source from the content-addressed store, hash-verified

82 return x
83
84def rbf(D):
85 # Distance radial basis function
86 D_min, D_max, D_count = 0., 20., 36
87 D_mu = torch.linspace(D_min, D_max, D_count).to(D.device)
88 D_mu = D_mu[None,:]
89 D_sigma = (D_max - D_min) / D_count
90 D_expand = torch.unsqueeze(D, -1)
91 RBF = torch.exp(-((D_expand - D_mu) / D_sigma)**2)
92 return RBF
93
94def get_seqsep(idx):
95 '''

Callers 4

forwardMethod · 0.90
forwardMethod · 0.90
forwardMethod · 0.85
forwardMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected