Computational_Biolgy/Fout_2017/driver.py
def merge(self, xnr, xnl):
        """Merge ligand and receptor (residue pairwise combinations)."""
        xmerge = torch.empty((xnr.shape[0] * xnl.shape[0], xnr.shape[1]))
        row = 0
        for ii in range(xnr.shape[0]):
            for jj in range(xnl.shape[0]):
                # Note: This could be some other operation
                xmerge[row, :] = 0.5 * (xnr[ii] + xnl[jj])
                row += 1
        return xmerge
Merge ligand and receptor (residue pairwise combinations).
Merge ligand and receptor (residue pairwise combinations).
Merge ligand and receptor ( residue pairwise combinations ) .
def merge(self, xnr, xnl):
        xmerge = torch.empty((xnr.shape[0] * xnl.shape[0], xnr.shape[1]))
        row = 0
        for ii in range(xnr.shape[0]):
            for jj in range(xnl.shape[0]):
                xmerge[row, :] = 0.5 * (xnr[ii] + xnl[jj])
                row += 1
        return xmerge
def merge ( self , xnr , xnl ) : xmerge = torch . empty ( ( xnr . shape [ 0 ] * xnl . shape [ 0 ] , xnr . shape [ 1 ] ) ) row = 0 for ii in range ( xnr . shape [ 0 ] ) : for jj in range ( xnl . shape [ 0 ] ) : xmerge [ row , : ] = 0.5 * ( xnr [ ii ] + xnl [ jj ] ) row += 1 return xmerge
Merge ligand and receptor (residue pairwise combinations).
Merge ligand and receptor ( residue pairwise combinations ) .
"""Merge ligand and receptor (residue pairwise combinations).""" # Note: This could be some other operation
self
xnr
xnl