kgof/kernel.py
def eval(self, X, Y):
        """
        Evaluate the kernel on data X and Y
        X: nx x d where each row represents one point
        Y: ny x d
        return nx x ny Gram matrix
        """
        return sum(w * k.eval(X, Y) for w, k in zip(self.wts, self.ks))

        Evaluate the kernel on data X and Y
        X: nx x d where each row represents one point
        Y: ny x d
        return nx x ny Gram matrix
        
Evaluate the kernel on data X and Y
X: nx x d where each row represents one point
Y: ny x d
return nx x ny Gram matrix
Evaluate the kernel on data X and Y X : nx x d where each row represents one point Y : ny x d return nx x ny Gram matrix
def eval(self, X, Y):
        return sum(w * k.eval(X, Y) for w, k in zip(self.wts, self.ks))
def eval ( self , X , Y ) : return sum ( w * k . eval ( X , Y ) for w , k in zip ( self . wts , self . ks ) )
Evaluate the kernel on data X and Y
X: nx x d where each row represents one point
Y: ny x d
return nx x ny Gram matrix
Evaluate the kernel on data X and Y X : nx x d where each row represents one point Y : ny x d return nx x ny Gram matrix
"""
        Evaluate the kernel on data X and Y
        X: nx x d where each row represents one point
        Y: ny x d
        return nx x ny Gram matrix
        """
self
X
Y